-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
88 lines (88 loc) · 3.66 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
88
{
"name": "frau-angular-seed",
"appId": "urn:d2l:fra:id:seed",
"appClass": "urn:d2l:fra:class:seed",
"version": "1.0.0",
"description": "seed for angular and frau",
"main": "src/app.js",
"private": true,
"scripts": {
"prebuild": "npm run clean -s",
"build:appconfig": "gulp appconfig",
"build:css": "node-sass ./src/app.scss | cleancss -o ./dist/app.css",
"build:js": "browserify -x d2l-locale -x d2l-orgunit -x jquery -x angular -x requirejs -s frau-angular-seed ./src/app.js | uglifyjs > ./dist/app.js",
"build:html": "gulp html2js",
"build:resources": "gulp copy-resources-to-dist",
"build": "npm run build:js && npm run build:css && npm run build:html && npm run build:resources && npm run build:appconfig",
"clean": "rimraf dist && mkdir dist && rimraf test/coverage",
"postinstall": "bower install",
"publish-release": "npm run build -s && gulp publish-release",
"resolver": "gulp appresolver",
"test:lint": "jshint --exclude test/coverage/**/*.js* src test gulpfile.js",
"test:js": "karma start ./karma.conf.js --single-run",
"test": "npm run test:lint -s && npm run test:js -s",
"prewatch": "npm run build -s",
"prewatch:win": "npm run build -s",
"postbuild": "",
"run:js": "npm run build:js -s && gulp replace-flags",
"run:html": "npm run build:html -s && gulp replace-flags",
"run:css": "npm run build:css -s && gulp replace-flags",
"watch:appconfig": "onchange 'package.json' -- npm run build:appconfig -s",
"watch:appconfig:win": "chokidar package.json -c \"npm.cmd run-script build:appconfig -s\"",
"watch:css": "onchange 'src/**/*.scss' -- npm run run:css -s",
"watch:css:win": "chokidar src\\**\\*.scss -c \"npm.cmd run-script run:css -s\"",
"watch:html": "onchange 'src/**/*.html' -- npm run run:html -s",
"watch:html:win": "chokidar src\\**\\*.html -c \"npm.cmd run-script run:html -s\"",
"watch:js": "onchange 'src/**/*.js' -- npm run run:js -s && npm run postbuild -s",
"watch:js:win": "chokidar src\\**\\*.js -c \"npm.cmd run-script run:js -s\"",
"watch": "parallelshell 'npm run resolver' 'npm run watch:js' 'npm run watch:appconfig' 'npm run watch:css' 'npm run watch:html'",
"watch:win": "parallelshell \"npm run resolver\" \"npm run watch:js:win\" \"npm run watch:appconfig:win\" \"npm run watch:css:win\" \"npm run watch:html:win\""
},
"devDependencies": {
"bower": "^1.4.1",
"browserify": "^10.2.4",
"browserify-istanbul": "^0.2.1",
"browserify-shim": "^3.8.9",
"chokidar-cli": "^0.3.0",
"clean-css": "^3.3.4",
"define": "^1.0.1",
"free-range-app-utils": "^0.7.0",
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-filter": "^2.0.2",
"gulp-frau-publisher": "^2.2.0",
"gulp-minify-html": "^1.0.3",
"gulp-ng-html2js": "^0.2.0",
"gulp-replace": "^0.5.3",
"gulp-streamify": "0.0.5",
"gulp-uglify": "^1.2.0",
"jasmine-core": "^2.3.4",
"jshint": "^2.8.0",
"karma": "^0.12.37",
"karma-browserify": "^4.2.1",
"karma-cli": "0.0.4",
"karma-coverage": "^0.4.2",
"karma-jasmine": "^0.3.5",
"karma-jasmine-ajax": "^0.1.12",
"karma-phantomjs-launcher": "^0.2.0",
"node-sass": "^3.2.0",
"onchange": "^1.1.0",
"parallelshell": "^1.2.0",
"peanut-gallery": "^1.0.0",
"phantomjs": "^1.9.17",
"q": "^1.4.1",
"requirejs": "^2.1.18",
"rimraf": "^2.4.0",
"uglify-js": "^2.4.23"
},
"browser": {},
"browserify-shim": {
"requirejs": "global:requirejs",
"define": "global:define",
"d2lContext": "global:d2lContext",
"d2lLocale": "global:d2lLocale",
"d2l-locale": "global:d2lLocale",
"angular": "global:angular",
"jquery": "global:$"
}
}