Add website package.json and fix gitignore

This commit is contained in:
ines 2017-10-04 00:18:41 +02:00
parent 80a2fb6193
commit bfb512f45a
2 changed files with 20 additions and 2 deletions

2
.gitignore vendored
View File

@ -7,8 +7,6 @@ keys/
# Website
website/www/
website/_deploy.sh
website/package.json
website/announcement.jade
website/.gitignore
# Cython / C extensions

20
website/package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "spacy.io",
"private": true,
"version": "2.0.0",
"description": "spacy.io website",
"author": "Explosion AI",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.14.0",
"harp": "^0.24.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"
}
}