Last active
June 10, 2019 16:29
-
-
Save pyrsmk/c2353e9688e8c2e78a21e806ffdca13d to your computer and use it in GitHub Desktop.
Systèmes de build : scripts NPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "yarn lint && yarn bundle && yarn minify && yarn minify-dev", | |
"lint": "eslint 'src/**'", | |
"bundle": "rollup -c", | |
"minify": "uglifyjs dist/toast.js -o dist/toast.min.js", | |
"minify-dev": "uglifyjs dist/toast.js -o tests/lib/toast.min.js --source-map filename=toast.js,url=inline && rm tests/lib/toast.min.js.map", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment