|
@@ -4,15 +4,15 @@
|
|
|
"description": "Threema Webclient",
|
|
|
"scripts": {
|
|
|
"build": "npm run build:js && npm run build:css",
|
|
|
- "build:js": "browserify -p tsify src/app.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -p [ browserify-header --file header.js ] -o dist/app.js",
|
|
|
+ "build:js": "node dist/browserify.js app",
|
|
|
"build:css": "node-sass -o public/css/ --output-style compressed src/sass/",
|
|
|
"build:css:watch": "node-sass -w -r --source-map true --source-map-embed true -o public/css/ --output-style compressed src/sass/",
|
|
|
"build:tests": "echo -e 'NOTE: Use either \"npm build:unittests\" or \"npm build:uitests\"\n' && exit 1",
|
|
|
- "build:unittests": "browserify -p tsify tests/ts/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ts-tests.js",
|
|
|
- "build:uitests": "npm run build:css && browserify -p tsify tests/ui/main.ts -t [ babelify --presets [ es2015 ] --extensions .ts ] -o dist/ui-tests.js",
|
|
|
+ "build:unittests": "node dist/browserify.js test:unit",
|
|
|
+ "build:uitests": "npm run build:css && node dist/browserify.js test:ui",
|
|
|
"dist": "npm run build && echo \"\" && node dist/build-package.js",
|
|
|
"serve:live": "echo 'NOTE: serve:live command has been renamed to devserver'",
|
|
|
- "devserver": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"budo src/app.ts:dist/app.js -d public -d . -d src --live -- -d -p tsify -t [ babelify --presets [ es2015 ] --extensions .ts ]\"",
|
|
|
+ "devserver": "npm run build:css && concurrently --kill-others --names \"css,server\" -p name \"npm run build:css:watch\" \"node dist/devserver.js\"",
|
|
|
"testserver": "budo -d public -d . -d src -p 7777",
|
|
|
"test": "echo -e 'NOTE: Use either \"npm run test:unit\" or \"npm run test:ui\"\n' && exit 1",
|
|
|
"test:unit": "npm run build:unittests && karma start --single-run --log-level=debug --colors",
|
|
@@ -31,6 +31,9 @@
|
|
|
"private": true,
|
|
|
"homepage": "https://threema.ch/",
|
|
|
"dependencies": {
|
|
|
+ "@babel/core": "^7.2.2",
|
|
|
+ "@babel/polyfill": "^7.2.5",
|
|
|
+ "@babel/preset-env": "^7.2.3",
|
|
|
"@saltyrtc/client": "^0.13.2",
|
|
|
"@saltyrtc/task-relayed-data": "^0.3.1",
|
|
|
"@saltyrtc/task-webrtc": "^0.13.0",
|
|
@@ -54,11 +57,9 @@
|
|
|
"angular-translate": "~2.18",
|
|
|
"angularjs-scroll-glue": "~2.1.0",
|
|
|
"autolinker": "~1.6.2",
|
|
|
- "babel-es6-polyfill": "~1.1.0",
|
|
|
- "babel-preset-es2015": "^6.24.1",
|
|
|
- "babelify": "~7.3.0",
|
|
|
+ "babelify": "~10.0.0",
|
|
|
"browserify": "^16.2.3",
|
|
|
- "browserify-header": "^0.9.4",
|
|
|
+ "browserify-header": "^1.0.0",
|
|
|
"croppie": "~2.6.0",
|
|
|
"file-saver": "2.0.0",
|
|
|
"messageformat": "^2.0.5",
|
|
@@ -78,7 +79,7 @@
|
|
|
"angular-mocks": "^1.7.5",
|
|
|
"budo": "^11.5.0",
|
|
|
"chai": "^4.2.0",
|
|
|
- "concurrently": "~3.3.0",
|
|
|
+ "concurrently": "~4.1.0",
|
|
|
"geckodriver": "^1.14.1",
|
|
|
"jasmine": "^3.3.1",
|
|
|
"jasmine-core": "^3.3.0",
|