Skip to content

Commit

Permalink
Improved npm scripts
Browse files Browse the repository at this point in the history
Added a lint check before the publishing step to make to ensure that all rules for code quality are followed.
  • Loading branch information
PKief committed Mar 14, 2019
1 parent 41d7125 commit 036971a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
"vscode": "^1.22.1"
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "webpack --mode none",
"watch": "webpack --mode none --watch",
"test-compile": "tsc -p ./",
"build": "npm run compile:dev",
"compile": "webpack --mode production",
"compile:dev": "webpack --mode none",
"compile:watch": "webpack --mode none --watch",
"lint": "tslint ./src/**/*.ts -t stylish",
"postinstall": "node ./node_modules/vscode/bin/install",
"pretest": "npm run test-compile",
"test": "node ./node_modules/vscode/bin/test",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "tslint ./src/**/*.ts -t stylish"
"test-compile": "tsc -p ./",
"vscode:prepublish": "npm run lint && npm run compile"
},
"categories": [
"Other"
Expand Down Expand Up @@ -143,11 +145,12 @@
"devDependencies": {
"@types/mocha": "^5.2.6",
"@types/node": "^11.10.4",
"clean-webpack-plugin": "^2.0.1",
"ts-loader": "^5.3.3",
"tslint": "^5.13.1",
"typescript": "^3.3.3333",
"vscode": "^1.1.30",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
}
}
}

0 comments on commit 036971a

Please sign in to comment.