Skip to content

Commit

Permalink
Chore: Update scripts and ignore patterns to improve developement exp…
Browse files Browse the repository at this point in the history
…erience
  • Loading branch information
WilsonZiweiWang committed Apr 22, 2024
1 parent 9b434d3 commit d25dd9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ server/parser.info
**/tsconfig.*
**/.gitignore
**/.eslint*
**/jest.config.js
**/jest.config.js
**/*.vsix
**/*.tgz
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -845,17 +845,19 @@
"watch": "tsc -b -w && npm run postcompile",
"vscode:prepublish": "cd server && npm install --omit=dev && cd ../client && npm install --omit=dev && cd ..",
"package": "vsce package",
"clean:server": "rm -fr ./server/node_modules ./client/server ./server/out ./server/resources server/tsconfig.tsbuildinfo server/.vscode-test server/*.tgz",
"clean:client": "rm -fr ./client/node_modules ./client/out client/tsconfig.tsbuildinfo client/.vscode-test client/*.vsix",
"clean:server": "rm -fr ./server/node_modules ./server/out ./server/resources server/tsconfig.tsbuildinfo server/.vscode-test server/*.tgz",
"clean:client": "rm -fr ./client/node_modules ./client/out client/tsconfig.tsbuildinfo client/.vscode-test",
"clean:lib": "rm -fr ./lib/node_modules",
"clean": "npm run clean:lib && npm run clean:server && npm run clean:client && rm -fr node_modules integration-tests/out integration-tests/project-folder/build* .vscode-test .eslintcache resources coverage ./out",
"clean": "npm run clean:lib && npm run clean:server && npm run clean:client && rm -fr node_modules integration-tests/out integration-tests/project-folder/build* .vscode-test .eslintcache resources coverage ./out *.vsix",
"lint": "eslint . --ext js,ts --cache",
"jest": "jest",
"test": "npm run jest && npm run test:integration && npm run test:grammar",
"test:integration": "xvfb-run node ./integration-tests/out/runTest.js",
"test:watch": "jest --watchAll",
"test:grammar": "vscode-tmgrammar-test ./client/test/grammars/test-cases/*.bb",
"snap-grammar": "vscode-tmgrammar-snap ./client/test/grammars/snaps/*.bb -u"
"snap-grammar": "vscode-tmgrammar-snap ./client/test/grammars/snaps/*.bb -u",
"dev:vsix": "npm run clean && npm install && npm run fetch:docs && npm run compile && npm run package",
"dev:npm": "npm run clean && npm install && npm run fetch:docs && cd server && npm pack"
},
"devDependencies": {
"@types/glob": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion server/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
!tree-sitter-bitbake.wasm
*.map
**/__tests__/

**/*.tgz
*.tsbuildinfo

0 comments on commit d25dd9d

Please sign in to comment.