chore: reorganize npm script (#884)
The goal is every package should be responsible to `lint`, `build` and `test` commands. This modification helps to easier add new package to the repository.
This commit is contained in:
committed by
László Monda
parent
c9f052b8c7
commit
1eb8720305
@@ -19,6 +19,7 @@
|
||||
"devDependencies": {
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jasmine-ts --config=jasmine.json"
|
||||
"test": "jasmine-ts --config=jasmine.json",
|
||||
"lint": "tslint --project tsconfig.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"electron:spe": "electron ./dist/electron-main.js --spe",
|
||||
"build": "webpack && npm run install:build-deps && npm run build:usb && npm run download-firmware && npm run copy-to-tmp-folder",
|
||||
"build:usb": "electron-rebuild -w node-hid -p -m ./dist",
|
||||
"lint": "tslint --project tsconfig.json",
|
||||
"install:build-deps": "cd ./dist && npm i",
|
||||
"download-firmware": "node ../../scripts/download-firmware.js",
|
||||
"copy-to-tmp-folder": "node ../../scripts/copy-to-tmp-folder.js"
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
"copy:scancodes": "copyfiles ./src/config-serializer/config-items/scancodes.json dist",
|
||||
"copy:secondary-roles": "copyfiles ./src/config-serializer/config-items/secondaryRole.json dist",
|
||||
"test": "jasmine-ts --config=jasmine.json",
|
||||
"coverage": "nyc jasmine-ts --config=jasmine.json"
|
||||
"coverage": "nyc jasmine-ts --config=jasmine.json",
|
||||
"lint": "tslint --project tsconfig.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "1.9.3"
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"main": "dist/index.js",
|
||||
"license": "GPL-3.0",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
"build": "tsc",
|
||||
"lint": "tslint --project tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "8.0.28"
|
||||
|
||||
@@ -5,13 +5,17 @@
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build --prod --aot --base-href=\"\"",
|
||||
"test": "ng test --watch false",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e",
|
||||
"build:renderer": "webpack --config webpack.config.js",
|
||||
"build": "run-p -sn build:*",
|
||||
"build:web": "ng build --prod --aot --base-href=\"\"",
|
||||
"build:renderer": "cross-env AOT_BUILD=true webpack --config webpack.config.js",
|
||||
"server:renderer": "webpack --config webpack.config.js --watch",
|
||||
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet"
|
||||
"test-skip": "ng test --watch false",
|
||||
"lint": "run-p -snc lint:*",
|
||||
"lint:ng": "ng lint",
|
||||
"lint:renderer": "tslint --project src/tsconfig.renderer.json",
|
||||
"lint:style": "stylelint \"src/**/*.scss\" --syntax scss",
|
||||
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet",
|
||||
"e2e": "ng e2e"
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user