Add a "build" and "clean" NPM script (#1548)

This commit is contained in:
Eric Cornelissen 2019-07-22 17:58:51 +01:00 committed by David Klebanoff
parent 1978e05c5d
commit 11cdbd7073
2 changed files with 4 additions and 2 deletions

View file

@ -26,11 +26,13 @@
"uglify-js": "^3.6.0"
},
"scripts": {
"build": "node scripts/build-package.js",
"clean": "rm icons/*.js index.js",
"jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema",
"svglint": "svglint icons/* --ci",
"wslint": "editorconfig-checker --ignore",
"prepublishOnly": "node scripts/prepublish.js",
"postpublish": "rm icons/*.js index.js",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean",
"test": "jest",
"pretest": "npm run prepublishOnly",
"posttest": "npm run postpublish",

0
scripts/prepublish.js → scripts/build-package.js Executable file → Normal file
View file