|
80 | 80 | "@types/node": "^12.7.2", |
81 | 81 | "autoprefixer": "^9.6.1", |
82 | 82 | "babel-loader": "^8.0.6", |
| 83 | + "cheerio": "^1.0.0-rc.3", |
83 | 84 | "clean-webpack-plugin": "^3.0.0", |
84 | 85 | "concurrently": "^4.1.2", |
85 | 86 | "eslint": "^5.16.0", |
|
119 | 120 | }, |
120 | 121 | "scripts": { |
121 | 122 | "browser-sync": "./node_modules/browser-sync/bin/browser-sync.js start --config bs-config.js", |
122 | | - "build-all": "npm run build-at; npm run build-cm; npm run build-vle; npm run build-site", |
123 | | - "build-site": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build site --configuration=production", |
| 123 | + "build-dev-all": "node node_modules/concurrently/bin/concurrently.js \"npm run build-dev-site\" \"npm run build-dev-at\" \"npm run build-dev-cm\" \"npm run build-dev-vle\"", |
| 124 | + "build-dev-at": "node node_modules/concurrently/bin/concurrently.js \"node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build at --watch\" \"while node scripts/afterBuild.js at; do sleep 5; done\"", |
| 125 | + "build-dev-cm": "node node_modules/concurrently/bin/concurrently.js \"node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build cm --watch\" \"while node scripts/afterBuild.js cm; do sleep 5; done\"", |
| 126 | + "build-dev-site": "node node_modules/concurrently/bin/concurrently.js \"ng build site --watch\" \"ng test --source-map=false --karma-config src/main/webapp/site/karma.conf.js --browsers ChromeHeadlessNoSandbox\" \"while node scripts/afterBuild.js site; do sleep 5; done\"", |
| 127 | + "build-dev-vle": "node node_modules/concurrently/bin/concurrently.js \"node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build vle --watch\" \"while node scripts/afterBuild.js vle; do sleep 5; done\"", |
| 128 | + "build-prod-all": "npm run build-prod-at; npm run build-prod-cm; npm run build-prod-vle; npm run build-prod-site", |
| 129 | + "build-prod-at": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build at --configuration=production; node scripts/afterBuild.js at", |
| 130 | + "build-prod-cm": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build cm --configuration=production; node scripts/afterBuild.js cm", |
| 131 | + "build-prod-vle": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build vle --configuration=production; node scripts/afterBuild.js vle", |
| 132 | + "build-prod-site": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build site --configuration=production; node scripts/afterBuild.js site", |
124 | 133 | "bundle-report": "node ./node_modules/webpack-bundle-analyzer/lib/bin/analyzer.js src/main/webapp/site/dist/stats.json", |
125 | 134 | "watch-all-wise5": "node node_modules/concurrently/bin/concurrently.js \"node ./node_modules/gulp/bin/gulp.js\" \"npm run test-wise5-watch\"", |
126 | | - "watch-all-site": "node node_modules/concurrently/bin/concurrently.js \"ng build site --watch\" \"ng test --source-map=false --karma-config src/main/webapp/site/karma.conf.js --browsers ChromeHeadlessNoSandbox\"", |
127 | 135 | "watch-sass": "npm rebuild node-sass && node ./node_modules/gulp/bin/gulp.js", |
128 | 136 | "update-i18n": "node ./node_modules/gulp/bin/gulp.js update-i18n", |
129 | 137 | "compile-sass": "node ./node_modules/gulp/bin/gulp.js compile-sass", |
|
135 | 143 | "test-e2e-all-comment": "test-e2e-all assumes wise is not running yet.", |
136 | 144 | "test-e2e-all": "./wise.sh run & sleep 20; ./node_modules/protractor/bin/webdriver-manager update; ./node_modules/protractor/bin/webdriver-manager start & ./node_modules/protractor/bin/protractor src/main/webapp/wise5/test-e2e/conf.js; for pid in $(ps -ef | awk '/tomcat7:run/ {print $2}'); do kill -9 $pid; done", |
137 | 145 | "ngx-extractor": "./node_modules/.bin/ngx-extractor -i \"src/main/webapp/site/**/*.ts\" -o src/main/webapp/site/src/messages.xlf", |
138 | | - "build-prod-at": "cd ./src/main/webapp/wise5/authoringTool; webpack --config webpack.prod.js", |
139 | | - "build-prod-cm": "cd ./src/main/webapp/wise5/classroomMonitor; webpack --config webpack.prod.js", |
140 | | - "build-prod-vle": "cd ./src/main/webapp/wise5/vle; webpack --config webpack.prod.js", |
141 | | - "build-dev-all": "node node_modules/concurrently/bin/concurrently.js \"npm run watch-all-site\" \"npm run build-dev-at\" \"npm run build-dev-cm\" \"npm run build-dev-vle\"", |
142 | | - "build-dev-at": "ng build at --watch", |
143 | | - "build-dev-cm": "ng build cm --watch", |
144 | | - "build-dev-vle": "ng build vle --watch", |
145 | 146 | "standalone-server-at": "cd ./src/main/webapp/wise5/authoringTool; webpack-dev-server --open --config webpack.dev.js --history-api-fallback --inline --progress", |
146 | 147 | "standalone-server-cm": "cd ./src/main/webapp/wise5/classroomMonitor; webpack-dev-server --open --config webpack.dev.js --history-api-fallback --inline --progress", |
147 | 148 | "standalone-server-vle": "cd ./src/main/webapp/wise5/vle; webpack-dev-server --open --config webpack.dev.js --history-api-fallback --inline --progress" |
|
0 commit comments