Skip to content

Commit

Permalink
chore: cleanup vscode extension bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Dec 24, 2023
1 parent b0ef221 commit 2d48c7f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 97 deletions.
3 changes: 3 additions & 0 deletions packages/schema/.vscodeignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
.vscode/**
.vscode-test/**
.gitignore
Expand All @@ -8,3 +9,5 @@ bin
build
jest.config.ts
tsconfig.json
dist
README-global.md
14 changes: 1 addition & 13 deletions packages/schema/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,7 @@ require('esbuild')
})
.then(() => {
fs.cpSync('./src/res', 'bundle/res', { force: true, recursive: true });
fs.cpSync('./asset', 'bundle/asset', {
force: true,
recursive: true,
});
fs.cpSync('./README.md', 'bundle/README.md', {
force: true,
});
fs.cpSync('../../LICENSE', 'bundle/LICENSE', {
force: true,
});
fs.cpSync('./package.json', 'bundle/package.json', {
force: true,
});
fs.cpSync('../language/syntaxes', 'bundle/syntaxes', { force: true, recursive: true });
})
.then(() => console.log(success))
.catch((err) => {
Expand Down
60 changes: 0 additions & 60 deletions packages/schema/build/env-plugin.js

This file was deleted.

8 changes: 4 additions & 4 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
{
"language": "zmodel",
"scopeName": "source.zmodel",
"path": "./syntaxes/zmodel.tmLanguage.json"
"path": "./bundle/syntaxes/zmodel.tmLanguage.json"
}
]
},
Expand All @@ -67,10 +67,10 @@
"scripts": {
"vscode:publish": "vsce publish --no-dependencies",
"vscode:prepublish": "pnpm bundle",
"vscode:package": "vsce package --no-dependencies",
"clean": "rimraf bundle dist",
"vscode:package": "pnpm bundle && vsce package --no-dependencies",
"clean": "rimraf dist",
"build": "pnpm clean && pnpm lint --max-warnings=0 && tsc && copyfiles -F \"bin/*\" dist && copyfiles ./README-global.md ./LICENSE ./package.json dist && renamer --replace \"README.md\" dist/README-global.md && copyfiles -u 1 \"src/res/*\" dist && node build/post-build.js && pnpm pack dist --pack-destination '../../../.build'",
"bundle": "pnpm clean && pnpm lint --max-warnings=0 && node build/bundle.js --minify",
"bundle": "rimraf bundle && pnpm lint --max-warnings=0 && node build/bundle.js --minify",
"watch": "tsc --watch",
"lint": "eslint src tests --ext ts",
"test": "ZENSTACK_TEST=1 jest",
Expand Down
20 changes: 0 additions & 20 deletions packages/schema/src/res/prism-zmodel.js

This file was deleted.

0 comments on commit 2d48c7f

Please sign in to comment.