61 строка
2.3 KiB
JSON
61 строка
2.3 KiB
JSON
{
|
|
"name": "curriculum-localization",
|
|
"version": "1.0.0",
|
|
"description": "Website that hosts curriculum localization campaign information",
|
|
"engines": {
|
|
"node": "^6.9.0",
|
|
"npm": "^3.0.0"
|
|
},
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"prebuild": "shx rm -rf dist && shx mkdir -p dist/about dist/curriculum dist/contact dist/tools && shx cp -r src/assets dist/assets && shx cp src/index.html dist/index.html && shx cp src/pages.html dist/about/index.html && shx cp src/pages.html dist/curriculum/index.html && shx cp src/pages.html dist/contact/index.html && shx cp src/pages.html dist/tools/index.html",
|
|
"build": "npm run build:css && npm run build:js",
|
|
"build:css": "node-sass src/index.scss dist/compiled.css --output-style=compressed && postcss --use autoprefixer --autoprefixer.browsers 'last 3 versions' -o dist/compiled.css dist/compiled.css",
|
|
"build:js": "webpack --optimize-minimize",
|
|
"deploy": "WEBSITE_ROOT=curriculum-localization node scripts/deploy.js",
|
|
"server": "live-server ./dist --port=8002",
|
|
"start": "npm run prebuild && npm run build:css && npm-run-all --parallel watch:** server",
|
|
"test": "echo \"Error: no test specified\"",
|
|
"watch:css": "chokidar 'src/**/*.scss' -c 'npm run build:css'",
|
|
"watch:js": "npm run build:js -- --watch"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/mozilla/curriculum-localization.git"
|
|
},
|
|
"author": "Mozilla",
|
|
"license": "MPL-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/mozilla/curriculum-localization/issues"
|
|
},
|
|
"homepage": "https://github.com/mozilla/curriculum-localization#readme",
|
|
"dependencies": {
|
|
"mofo-bootstrap": "^2.0.0",
|
|
"mofo-style": "^2.4.0",
|
|
"mofo-ui": "^1.6.0",
|
|
"react": "^15.3.2",
|
|
"react-dom": "^15.3.2",
|
|
"react-router": "^2.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^6.5.1",
|
|
"babel-core": "^6.17.0",
|
|
"babel-loader": "^6.2.5",
|
|
"babel-preset-es2015": "^6.16.0",
|
|
"babel-preset-react": "^6.16.0",
|
|
"chokidar": "^1.6.1",
|
|
"chokidar-cli": "^1.2.0",
|
|
"eslint": "^3.8.1",
|
|
"eslint-plugin-react": "^6.4.1",
|
|
"json-loader": "^0.5.4",
|
|
"live-server": "^1.1.0",
|
|
"node-sass": "^3.10.1",
|
|
"nodegit": "^0.16.0",
|
|
"npm-run-all": "^3.1.1",
|
|
"postcss-cli-simple": "^1.0.1",
|
|
"shelljs": "^0.7.4",
|
|
"shx": "^0.1.4",
|
|
"webpack": "^1.13.2"
|
|
}
|
|
}
|