forked from mozilla/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
87 lines (87 loc) · 4.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "kitsune",
"description": "Platform for Mozilla Support",
"repository": {
"type": "git",
"url": "git://github.com/mozilla/kitsune.git"
},
"scripts": {
"install-dev": "npm install",
"install-prod": "npm ci",
"postinstall": "node prepare_django_assets.js",
"development": "npm run install-dev",
"stylelint": "onchange 'kitsune/sumo/static/sumo/scss/**/*' -- npm run stylelint",
"copy:protocol": "mkdir -p assets/protocol assets/sumo/css && cp -r node_modules/@mozilla-protocol/core/protocol/* assets/protocol",
"build:scss": "sass kitsune/sumo/static/sumo/scss/screen.scss assets/sumo/css/screen-noprefixes.css --source-map --load-path 'assets' --load-path 'kitsune/sumo/static/sumo/scss'",
"build:postcss": "npx postcss assets/sumo/css/screen-noprefixes.css --map --use autoprefixer --use cssnano --use postcss-custom-properties -o assets/sumo/css/screen.css",
"build:styles": "npm run build:scss && npm run build:postcss",
"build:docs:copyfonts": "cp -r node_modules/@mozilla-protocol/core/protocol/fonts styleguide/build/static",
"build:docs:copyprotocol": "cp -r node_modules/@mozilla-protocol/core/protocol styleguide/build/static",
"build:docs:copyprotocolimgs": "mkdir -p styleguide/build/static && cp -r node_modules/@mozilla-protocol/core/protocol/img styleguide/build/static",
"build:docs:copysumoimgs": "mkdir -p styleguide/build/static/sumo && cp -r kitsune/sumo/static/sumo/img styleguide/build/static/sumo",
"build:docs:copyproductimgs": "mkdir -p styleguide/build/static/products/img && cp -r kitsune/products/static/products/img styleguide/build/static/products",
"build:docs:copyjs": "cp -r kitsune/sumo/static/sumo/js styleguide/build/static/sumo",
"build:docs:copystyles": "mkdir -p styleguide/build/static/css && cp assets/sumo/css/screen.css styleguide/build/static/css/screen.css && cp assets/sumo/css/screen.css.map styleguide/build/static/css/screen.css.map",
"build:docs:styles": "sass styleguide/kss-template/kss-assets/scss/kss.scss styleguide/build/css/kss.css",
"build:docs:kss": "kss --config styleguide/kss-config.json --custom full",
"build": "concurrently --raw npm:build:*",
"watch:styles": "onchange 'kitsune/sumo/static/sumo/scss/**/*' -- npm run build:styles",
"watch:docs": "onchange 'styleguide/styleguide-examples/*.njk' 'styleguide/kss-template/**/*' -- npm run build:docs:kss",
"watch:docstyles": "onchange 'assets/sumo/css/screen.css' -- npm run build:docs:copystyles",
"watch:docjs": "onchange 'kitsune/sumo/static/sumo/js/**/*.js' -- npm run build:docs:copyjs",
"watch": "npm run build && concurrently --raw npm:watch:*",
"browser-sync": "browser-sync start --no-open --files \"kitsune/**/*.html\" \"assets/sumo/css/screen.css\" \"kitsune/**/.py\" \"kitsune/**/.js\" \"kitsune/**/.json\" --proxy 127.0.0.1:8000 --reload-delay=300",
"browser-sync:docs": "browser-sync start --no-open --serveStatic \"styleguide/build\" --files \"styleguide/build/**/*\" --port 4000 --reload-delay=300",
"start": "concurrently --raw --kill-others \"make run\" \"npm run watch\" \"npm run browser-sync\"",
"start-in-container": "concurrently --raw --kill-others \"npm run watch\" \"npm run browser-sync\"",
"production": "npm run install-prod && npm run copy:protocol && npm run postinstall && npm run build:scss && npm run build:postcss"
},
"license": "MPL-2.0",
"dependencies": {
"codemirror": "5.3.0",
"d3": "^3.1.5",
"es6-promise": "2.3.0",
"fetch": "1.0.0",
"flux": "~2.0.2",
"fontawesome": "^4.3.0",
"jquery": "1.11.3",
"jquery-ui": "~1.10.2",
"mailcheck": "1.1.0",
"modernizr": "3.3.1",
"moment": "2.8.3",
"nunjucks": "^1.3.4",
"react": "0.13.3",
"underscore": "1.8.2"
},
"devDependencies": {
"@mozilla-protocol/core": "10.0.1",
"autoprefixer": "^9.7.1",
"babel": "5.8.23",
"babelify": "5.0.4",
"browser-sync": "^2.26.7",
"browserify": "9.0.3",
"chai": "3.2.0",
"chai-lint": "0.1.1",
"concurrently": "^5.0.0",
"cpx": "~1.5.0",
"cssnano": "^4.1.10",
"eslint": "1.10.3",
"jsdom": "7.0.2",
"kss": "^3.0.0-beta.25",
"mocha": "2.3.2",
"mocha-jsdom": "1.1.0",
"nunjucks": "^1.3.4",
"onchange": "^6.1.0",
"postcss-cli": "^6.1.3",
"postcss-custom-properties": "^9.1.1",
"sass": "^1.23.2",
"sinon": "1.16.1",
"sinon-chai": "2.8.0",
"stylelint": "^11.1.1",
"stylelint-config-recommended-scss": "^3.3.0",
"stylelint-order": "^1.0.0",
"stylelint-scss": "^3.12.0",
"svgo": "^1.3.2",
"uglify-es": "^3.3.9"
}
}