1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

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" "uglify-js": "^3.6.0"
}, },
"scripts": { "scripts": {
"build": "node scripts/build-package.js",
"clean": "rm icons/*.js index.js",
"jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema", "jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema",
"svglint": "svglint icons/* --ci", "svglint": "svglint icons/* --ci",
"wslint": "editorconfig-checker --ignore", "wslint": "editorconfig-checker --ignore",
"prepublishOnly": "node scripts/prepublish.js", "prepublishOnly": "npm run build",
"postpublish": "rm icons/*.js index.js", "postpublish": "npm run clean",
"test": "jest", "test": "jest",
"pretest": "npm run prepublishOnly", "pretest": "npm run prepublishOnly",
"posttest": "npm run postpublish", "posttest": "npm run postpublish",

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