summaryrefslogtreecommitdiff
path: root/web-ui/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/package.json')
-rw-r--r--web-ui/package.json54
1 files changed, 38 insertions, 16 deletions
diff --git a/web-ui/package.json b/web-ui/package.json
index 2a0056e4..3d1720e1 100644
--- a/web-ui/package.json
+++ b/web-ui/package.json
@@ -5,41 +5,63 @@
"repository": "https://github.com/pixelated-project/pixelated-user-agent",
"private": true,
"devDependencies": {
+ "babel": "^6.5.2",
+ "babel-core": "^6.21.0",
+ "babel-loader": "^6.2.10",
+ "babel-preset-es2015": "^6.18.0",
"bower": "1.7.9",
- "handlebars": "4.0.5",
+ "copy-webpack-plugin": "^4.0.1",
+ "dompurify": "^0.8.4",
+ "font-awesome": "^4.7.0",
+ "handlebars": "^4.0.5",
+ "he": "^1.1.0",
"html-minifier": "2.1.6",
+ "i18next": "^4.1.4",
+ "i18next-browser-languagedetector": "^1.0.1",
+ "i18next-xhr-backend": "^1.2.1",
+ "iframe-resizer": "^3.5.7",
"imagemin": "5.2.1",
+ "jasmine-flight": "^4.0.0",
+ "jasmine-jquery": "^2.1.1",
+ "jquery": "^3.1.1",
+ "jquery-file-upload": "^4.0.5",
+ "jquery-ui": "^1.12.1",
"jshint": "2.9.2",
"karma": "0.13.19",
"karma-chrome-launcher": "0.2.2",
+ "karma-coverage": "0.2.7",
"karma-firefox-launcher": "0.1.7",
"karma-jasmine": "0.2.2",
"karma-jasmine-ajax": "0.1.13",
"karma-junit-reporter": "0.2.2",
"karma-phantomjs-launcher": "1.0.1",
"karma-requirejs": "1.0.0",
- "karma-coverage": "0.2.7",
- "minify": "2.0.9",
+ "minify": "^2.0.13",
+ "modernizr": "^3.3.1",
+ "quoted-printable": "^1.0.1",
"requirejs": "2.2.0",
- "watch": "0.19.1"
+ "typeahead.js": "^0.11.1",
+ "utf8": "^2.1.2",
+ "watch": "0.19.1",
+ "webpack": "^1.14.0"
},
"scripts": {
- "test": "npm run jshint --silent && npm run build --silent && node_modules/karma/bin/karma start --single-run $GRUNT_OPTS",
- "debug": "npm run build && node_modules/karma/bin/karma start --browsers Chrome $GRUNT_OPTS",
+ "test": "npm run jshint --silent && npm run build --silent && karma start --single-run $GRUNT_OPTS",
+ "debug": "npm run build && karma start --browsers Chrome $GRUNT_OPTS",
"watch": "npm run compass-watch & npm run handlebars-watch",
- "watch-test": "node_modules/karma/bin/karma start",
- "handlebars": "mkdir -p app/js/generated/hbs/ && node_modules/handlebars/bin/handlebars app/templates/**/*.hbs > app/js/generated/hbs/templates.js --namespace=window.Pixelated --root .",
- "handlebars-watch": "node_modules/.bin/watch 'npm run handlebars' app/templates",
+ "watch-test": "karma start",
+ "handlebars": "mkdir -p app/js/generated/hbs/ && handlebars app/templates/**/*.hbs > app/js/generated/hbs/templates.js --namespace=window.Pixelated --root .",
+ "handlebars-watch": "watch 'npm run handlebars' app/templates",
"compass": "compass compile",
"compass-watch": "compass watch",
- "build": "npm run clean && npm run handlebars && npm run add_git_version && npm run compass",
- "jshint": "node_modules/jshint/bin/jshint --config=.jshintrc app test",
- "clean": "rm -rf .tmp/ 'dist/*' app/js/generated/hbs/* app/css/*",
- "buildmain": "node_modules/requirejs/bin/r.js -o config/buildoptions.js",
- "package": "/bin/bash config/package.sh",
+ "build": "npm run build-statics && npm run build-js",
+ "build-statics": "npm run clean && npm run handlebars && npm run add_git_version && npm run compass",
+ "build-prod": "npm run build-statics && webpack -p --config ./webpack.production.config.js",
+ "build-js": "webpack --colors --progress",
+ "jshint": "jshint --config=.jshintrc app test",
+ "clean": "rm -rf dist/ app/js/generated/hbs/* app/css/*",
+ "package": "PIXELATED_BUILD='package' npm run build-prod && npm run imagemin",
"imagemin": "node config/imagemin.js",
- "minify_html": "node_modules/.bin/html-minifier app/index.html --collapse-whitespace | sed 's|<!--usemin_start-->.*<!--usemin_end-->|<script src=\"assets/app.min.js\" type=\"text/javascript\"></script>|' > dist/index.html",
- "minify_sandbox": "node_modules/.bin/html-minifier app/sandbox.html --collapse-whitespace | sed 's|<!--usemin_start-->.*<!--usemin_end-->|<script src=\"sandbox.min.js\" type=\"text/javascript\"></script>|' > dist/sandbox.html",
"add_git_version": "/bin/bash config/add_git_version.sh"
}
}