Skip to content

Commit

Permalink
Rebased branch once more and contained smaller changes due to further…
Browse files Browse the repository at this point in the history
… review comments
  • Loading branch information
kaisalmen committed Aug 8, 2024
1 parent 782a12e commit cff11ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/generator-langium/templates/gitignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ out/
**/src/generated
syntaxes/
*.tsbuildinfo
*.vsix
2 changes: 1 addition & 1 deletion packages/generator-langium/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"watch": "tsc -b tsconfig.build.json --watch",
"build": "tsc -b tsconfig.build.json && npm run build --workspaces",
"build:clean": "npm run clean && npm run build",
"lint": "eslint src --ext ts",
"lint": "eslint {**/src/**/*.ts,**/src/**/*.tsx,**/test/**/*.ts,**/test/**/*.tsx}",
"langium:generate": "npm run --workspace packages/language langium:generate",
"langium:watch": "npm run --workspace packages/language langium:watch"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"main": "./out/extension/main.cjs",
"scripts": {
"clean": "shx rm -fr *.tsbuildinfo out syntaxes",
"vscode:prepublish": "npm run build && npm run lint",
"vscode:prepublish": "npm run build && npm run --prefix ../.. lint",
"build:prepare": "shx mkdir -p ./syntaxes/ && shx cp -f ../language/syntaxes/<%= language-id %>.tmLanguage.json ./syntaxes/<%= language-id %>.tmLanguage.json",
"build": "npm run build:prepare && tsc -b tsconfig.json && node esbuild.mjs",
"build:clean": "npm run clean && npm run build",
Expand All @@ -43,5 +43,8 @@
"@types/vscode": "~1.67.0",
"concurrently": "~8.2.2",
"esbuild": "~0.23.0"
},
"vsce": {
"dependencies": false
}
}
4 changes: 2 additions & 2 deletions packages/generator-langium/test/yeoman-generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const PACKAGE_JSON_EXPECTATION: Record<string, any> = {
'watch': 'tsc -b tsconfig.build.json --watch',
'build': 'tsc -b tsconfig.build.json && npm run build --workspaces',
'build:clean': 'npm run clean && npm run build',
'lint': 'eslint src --ext ts',
'lint': 'eslint {**/src/**/*.ts,**/src/**/*.tsx,**/test/**/*.ts,**/test/**/*.tsx}',
'langium:generate': 'npm run --workspace packages/language langium:generate',
'langium:watch': 'npm run --workspace packages/language langium:watch'
},
Expand Down Expand Up @@ -366,7 +366,7 @@ const PACKAGE_JSON_EXPECTATION_EXTENSION: Record<string, any> = {
main: './out/extension/main.cjs',
scripts: {
'clean': 'shx rm -fr *.tsbuildinfo out syntaxes',
'vscode:prepublish': 'npm run build && npm run lint',
'vscode:prepublish': 'npm run build && npm run --prefix ../.. lint',
'build:prepare': 'shx mkdir -p ./syntaxes/ && shx cp -f ../language/syntaxes/hello-world.tmLanguage.json ./syntaxes/hello-world.tmLanguage.json',
'build': 'npm run build:prepare && tsc -b tsconfig.json && node esbuild.mjs',
'build:clean': 'npm run clean && npm run build',
Expand Down

0 comments on commit cff11ba

Please sign in to comment.