mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Integrate rollup into website build process
This commit is contained in:
parent
38ef4274b6
commit
fb2710211b
|
@ -8,13 +8,15 @@
|
|||
"devDependencies": {
|
||||
"babel-cli": "^6.14.0",
|
||||
"harp": "^0.24.0",
|
||||
"rollup": "^0.50.0",
|
||||
"uglify-js": "^2.7.3"
|
||||
},
|
||||
"dependencies": {},
|
||||
"scripts": {
|
||||
"compile": "NODE_ENV=deploy harp compile",
|
||||
"compile_js": "babel www/assets/js/main.js --out-file www/assets/js/main.js --presets=es2015",
|
||||
"uglify": "uglifyjs www/assets/js/main.js --output www/assets/js/main.js",
|
||||
"build": "npm run compile && npm run compile_js && npm run uglify"
|
||||
"rollup_js": "rollup www/assets/js/rollup.js --output.format iife --output.file www/assets/js/rollup.js",
|
||||
"compile_rollup": "babel www/assets/js/rollup.js --out-file www/assets/js/rollup.js --presets=es2015",
|
||||
"uglify": "uglifyjs www/assets/js/rollup.js --output www/assets/js/rollup.js",
|
||||
"build": "npm run compile && echo 'Compiled website' && npm run rollup_js && echo 'Bundled rollup.js' && npm run compile_rollup && echo 'Compiled rollup.js' && npm run uglify && echo 'Uglified rollup.js'"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user