mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
chore: make scripts windows compatible
This commit is contained in:
@ -29,12 +29,11 @@
|
|||||||
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
|
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "npx rimraf -- node_modules package-lock.json && npm i --ignore-scripts",
|
"clean": "git clean -f -X -d",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"postinstall": "node postinstall.js",
|
"postinstall": "node postinstall.js",
|
||||||
"preuninstall": "node preuninstall.js",
|
"preuninstall": "node preuninstall.js",
|
||||||
"postpack": "rm -rf node_modules",
|
"setup": "npm run clean && npm i --ignore-scripts && npm run build",
|
||||||
"setup": "npm run clean && npm run build",
|
|
||||||
"build": "npm run tsc && npm run jasmine",
|
"build": "npm run tsc && npm run jasmine",
|
||||||
"test": "npm run build",
|
"test": "npm run build",
|
||||||
"jasmine": "jasmine --config=jasmine-config/jasmine.json",
|
"jasmine": "jasmine --config=jasmine-config/jasmine.json",
|
||||||
|
@ -237,7 +237,7 @@
|
|||||||
"test": {
|
"test": {
|
||||||
"builder": "@nrwl/workspace:run-commands",
|
"builder": "@nrwl/workspace:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
"commands": ["npm run tsc", "npm run jasmine"],
|
"commands": ["npm run test"],
|
||||||
"cwd": "packages/webpack",
|
"cwd": "packages/webpack",
|
||||||
"parallel": false
|
"parallel": false
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@
|
|||||||
"builder": "@nrwl/workspace:run-commands",
|
"builder": "@nrwl/workspace:run-commands",
|
||||||
"outputs": ["dist/packages"],
|
"outputs": ["dist/packages"],
|
||||||
"options": {
|
"options": {
|
||||||
"commands": ["npm run setup", "mkdir -p ../../dist/packages", "mv \"$(npm pack | tail -n 1)\" ../../dist/packages/nativescript-webpack.tgz"],
|
"commands": ["npm run setup", "npx mkdirp ../../dist/packages", "npm pack", "mv *.tgz ../../dist/packages/nativescript-webpack.tgz"],
|
||||||
"cwd": "packages/webpack",
|
"cwd": "packages/webpack",
|
||||||
"parallel": false
|
"parallel": false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user