Merge pull request #588 from devchat-ai/parameterize-packaging

Fix scripts
This commit is contained in:
Tim 2024-08-27 23:17:42 +08:00 committed by GitHub
commit a5e7230c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
{ {
"name": "${EXTENSION_NAME}", "name": "devchat",
"displayName": "${ASSISTANT_NAME_ZH}", "displayName": "${ASSISTANT_NAME_ZH}",
"description": "Write prompts, not code", "description": "Write prompts, not code",
"version": "0.1.74", "version": "0.1.74",
@ -344,24 +344,21 @@
} }
}, },
"scripts": { "scripts": {
"build:gui": "cd ./gui && yarn && yarn vscode",
"vscode:uninstall": "node ./dist/uninstall", "vscode:uninstall": "node ./dist/uninstall",
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "node prebuild.js && webpack --watch",
"prebuild": "node prebuild.js", "prebuild": "node prebuild.js",
"postbuild": "git checkout -- assets package.json", "postbuild": "git checkout -- assets package.json",
"build:gui": "cd ./gui && yarn && yarn vscode",
"build": "webpack --config webpack.config.js && npm run build:gui",
"prepackage": "node prebuild.js", "prepackage": "node prebuild.js",
"postpackage": "git checkout -- assets package.json", "postpackage": "git checkout -- assets package.json",
"package": "webpack --mode production --devtool hidden-source-map", "package": "webpack --mode production --devtool hidden-source-map && vsce package",
"compile-tests": "tsc -p . --outDir out", "dev": "webpack serve --config webpack.config.js --open",
"watch-tests": "npm run prebuild && tsc -p . -w --outDir out", "watch": "npm run prebuild && webpack --watch",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts", "lint": "eslint src --ext ts",
"test": "mocha", "test": "mocha",
"build": "webpack --config webpack.config.js && cd ./gui && yarn && yarn vscode", "pretest": "npm run compile-tests && npm run compile && npm run lint",
"dev": "webpack serve --config webpack.config.js --open", "compile-tests": "tsc -p . --outDir out",
"idea": "webpack --config webpack.idea.config.js && mv dist/main.js dist/main.html ../devchat-intellij/src/main/resources/static && echo '🎆done'" "watch-tests": "npm run prebuild && tsc -p . -w --outDir out"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.21.8", "@babel/core": "^7.21.8",