-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
35 lines (35 loc) · 1.85 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "activities-learn-the-web",
"version": "2.3.1",
"private": true,
"devDependencies": {
"cssnano": "^3.7.3",
"npm-run-all": "^4.0.2",
"onchange": "^2.5.0",
"postcss-assets": "^4.1.0",
"postcss-cli": "^2.5.2",
"postcss-cssnext": "^2.7.0",
"postcss-import": "^7.1.3",
"uglify-js": "^3.0.28"
},
"config": {
"js_main": "js/activity-runner.js js/code-compare.js js/form-validator.js js/multiple-choice.js js/timed-callback.js"
},
"scripts": {
"start": "npm-run-all --parallel start-server watch-*",
"start-server": "bundle exec jekyll serve --incremental --port=4001 --ssl-key=localhost-key.pem --ssl-cert=localhost.pem",
"build-site": "bundle exec jekyll build",
"postcss": "postcss --no-map -u postcss-import -u postcss-cssnext --postcss-cssnext.browsers 'last 2 versions' -u postcss-assets -u cssnano --cssnano.safe",
"build-css-main": "npm run postcss -- -o main.min.css css/main.css",
"build-css-prism": "npm run postcss -- -o common/prism.min.css common/prism.css",
"build-css": "npm-run-all --parallel build-css-*",
"watch-css": "onchange 'css/*.css' -- npm run build-css",
"build-js-prism": "touch common/prism.min.js && cat common/prism.js > common/prism.min.js && cat common/prism-config.js >> common/prism.min.js",
"minifiy-js": "npm run build-js-prism && uglifyjs $npm_package_config_js_main -c -m --lint -o activities.min.js",
"concat-js": "npm run build-js-prism && uglifyjs $npm_package_config_js_main -b -o activities.min.js",
"watch-js": "onchange 'js/*.js' -- npm run concat-js",
"build": "npm run build-css && npm run minifiy-js && npm run build-site",
"deploy": "rsync --recursive --checksum --delete --delete-excluded --verbose --compress --exclude-from=rsync-exclude.txt ./_site/ keycdn:activities/",
"build-n-deploy": "npm run build && npm run deploy"
}
}