-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
56 lines (56 loc) · 2.73 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"repository": {
"type": "git",
"url": "https://github.com/pinax/pinax-project"
},
"scripts": {
"clean": "rm -rf static/dist && mkdir -p static/dist/js && mkdir -p static/dist/css && mkdir -p static/dist/images",
"build:js": "browserify -t [ babelify --presets [ env ] ] -t envify -o static/dist/js/site.js static/src/js/index.js",
"build:css": "node-sass static/src/scss/index.scss static/dist/css/app.css",
"copy:images": "cp -r static/src/images/* static/dist/images/ 2>/dev/null || :",
"optimize:js": "uglifyjs static/dist/js/site.js -m -c warnings=false -o static/dist/js/site.js",
"optimize:css": "cssnano static/dist/css/app.css static/dist/css/app.css",
"optimize": "npm run optimize:js && npm run optimize:css",
"watch:test": "onchange static/src/js/**/*.js -- npm run test",
"watch:lint": "onchange static/src/js/**/*.js -- npm run lint",
"watch:js": "watchify -t [ babelify --presets [ env ] ] -t envify static/src/js/index.js -o 'exorcist static/dist/js/site.js.map > static/dist/js/site.js' -dv",
"watch:css": "node-sass static/src/scss/index.scss static/dist/css/app.css --watch -r",
"build": "npm run clean && concurrently \"npm run build:js\" \"npm run build:css\" \"npm run copy:images\" && npm run optimize",
"watch": "npm run clean && npm run copy:images && npm run build:css && concurrently --raw \"npm run watch:lint\" \"npm run watch:js\" \"npm run watch:css\"",
"dev:browser-sync": "browser-sync start --no-open --proxy localhost:8000 --files \"static/dist/js/*.js, static/dist/css/*.css\"",
"dev": "concurrently --raw \"./manage.py runserver\" \"npm run watch\" \"npm run dev:browser-sync\"",
"lint": "eslint static/src/**/**/*.js",
"test": "mocha --recursive --compilers js:babel-register static/src/tests/index.js",
"compile": "NODE_ENV=production npm run clean && concurrently \"npm run copy:images\" \"npm run build:js\" \"npm run build:css\"",
"heroku-postbuild": "npm run compile && npm run optimize"
},
"license": "UNLICENSED",
"dependencies": {
"babel-preset-env": "1.6.0",
"babelify": "7.3.0",
"bootstrap": "4.0.0-beta",
"bootstrap-daterangepicker": "2.1.25",
"browser-sync": "2.18.13",
"browserify": "14.4.0",
"chai": "4.1.2",
"concurrently": "3.5.0",
"cssnano": "3.10.0",
"cssnano-cli": "1.0.5",
"eldarion-ajax": "0.16.0",
"envify": "4.1.0",
"eslint": "4.8.0",
"eslint-plugin-babel": "4.1.2",
"exorcist": "1.0.0",
"font-awesome": "4.7.0",
"jquery": "3.2.1",
"jsdom": "11.2.0",
"jsdom-global": "3.0.2",
"mocha": "3.5.3",
"node-sass": "4.5.3",
"onchange": "3.2.1",
"popper.js": "1.12.5",
"sortablejs": "1.6.1",
"uglify-js": "3.1.2",
"watchify": "3.9.0"
}
}