Skip to content

Commit b478855

Browse files
Merge pull request #48 from RobotlegsJS/upgrade-dependencies
Update dependencies to latest version 🚀
2 parents 86ddd4f + 76ef96d commit b478855

File tree

6 files changed

+2386
-639
lines changed

6 files changed

+2386
-639
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
## Signals 0.1.0
2020

21+
### v0.1.1
22+
23+
- Update dev dependencies to latest version (see #48).
24+
2125
### [v0.1.0](https://github.com/RobotlegsJS/SignalsJS/releases/tag/0.1.0) - 2018-01-22
2226

2327
- Adhere to TypeScript Guidelines for General Types (see #43).

dist/signals.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"autoformat": "prettier --config .prettierrc --write {src,test}/**/{*,*.test}.ts",
1111
"tslint-check": "tslint-config-prettier-check ./tslint.json",
1212
"clean-up": "rimraf .nyc_output && rimraf coverage && rimraf lib",
13+
"compile": "tsc -d",
14+
"dev": "webpack",
1315
"build": "webpack --env.production",
14-
"prepare": "npm run clean-up && tsc -d",
16+
"prepare": "npm run clean-up && npm run compile",
1517
"prepublishOnly": "publish-please guard",
1618
"publish-please": "npm run autoformat && npm run clean-up && npm run build && npm run test && publish-please"
1719
},
@@ -57,24 +59,24 @@
5759
},
5860
"homepage": "https://github.com/RobotlegsJS/SignalsJS#readme",
5961
"devDependencies": {
60-
"@types/bluebird": "^3.5.19",
61-
"@types/chai": "^4.1.1",
62-
"@types/mocha": "^2.2.46",
63-
"@types/sinon": "^4.1.3",
62+
"@types/bluebird": "^3.5.20",
63+
"@types/chai": "^4.1.2",
64+
"@types/mocha": "^2.2.48",
65+
"@types/sinon": "^4.3.0",
6466
"bluebird": "^3.5.1",
6567
"browserify-versionify": "^1.0.6",
6668
"chai": "^4.1.2",
6769
"es6-map": "^0.1.5",
6870
"es6-symbol": "^3.1.1",
69-
"glslify": "^6.1.0",
70-
"imports-loader": "^0.7.1",
71+
"glslify": "^6.1.1",
72+
"imports-loader": "^0.8.0",
7173
"istanbul": "^0.4.5",
7274
"istanbul-instrumenter-loader": "^3.0.0",
7375
"karma": "^2.0.0",
7476
"karma-chai": "^0.1.0",
7577
"karma-chai-sinon": "^0.1.5",
7678
"karma-chrome-launcher": "^2.2.0",
77-
"karma-coverage-istanbul-reporter": "^1.3.3",
79+
"karma-coverage-istanbul-reporter": "^1.4.1",
7880
"karma-es6-shim": "^1.0.0",
7981
"karma-mocha": "^1.3.0",
8082
"karma-mocha-reporter": "^2.2.5",
@@ -83,23 +85,25 @@
8385
"karma-sinon": "^1.0.5",
8486
"karma-sourcemap-loader": "^0.3.7",
8587
"karma-sourcemap-writer": "^0.1.2",
86-
"karma-webpack": "^2.0.9",
87-
"mocha": "^5.0.0",
88-
"nyc": "^11.4.1",
89-
"prettier": "^1.10.2",
88+
"karma-webpack": "^2.0.13",
89+
"mocha": "^5.0.1",
90+
"nyc": "^11.5.0",
91+
"prettier": "^1.11.1",
9092
"publish-please": "^2.3.1",
9193
"reflect-metadata": "^0.1.12",
9294
"remap-istanbul": "^0.10.1",
9395
"rimraf": "^2.6.2",
94-
"sinon": "^4.2.0",
96+
"sinon": "^4.4.2",
9597
"sinon-chai": "^2.14.0",
96-
"source-map-support": "^0.5.2",
97-
"ts-loader": "^3.3.0",
98-
"ts-node": "^4.1.0",
98+
"source-map-support": "^0.5.3",
99+
"ts-loader": "^4.0.1",
100+
"ts-node": "^5.0.1",
99101
"tslint": "^5.9.1",
100-
"tslint-config-prettier": "^1.6.0",
101-
"typescript": "^2.6.2",
102-
"webpack": "^3.10.0",
103-
"webpack-dev-server": "^2.11.1"
102+
"tslint-config-prettier": "^1.9.0",
103+
"typescript": "^2.7.2",
104+
"uglifyjs-webpack-plugin": "^1.2.2",
105+
"webpack": "^4.1.0",
106+
"webpack-cli": "^2.0.10",
107+
"webpack-dev-server": "^3.1.0"
104108
}
105109
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"moduleResolution": "node",
88
"declaration": true,
99
"noImplicitAny": false,
10-
"sourceMap": true
10+
"sourceMap": false
1111
},
1212
"include": [
1313
"./src/**/*.ts"

webpack.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
11
const webpack = require('webpack');
22
const path = require('path');
3+
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
34

4-
module.exports = (function(options) {
5+
module.exports = (env => {
56

6-
if (!options) options = {isTest: false};
7+
if (!env) env = {production: false};
78

8-
var tsconfig = options.isTest ? "tsconfig.test.json" : "tsconfig.json";
9+
let tsconfig = env.production ? "tsconfig.json" : "tsconfig.test.json";
10+
let filename = env.production ? "signals.min.js" : "signals.js";
911

1012
return {
13+
mode: env.production ? "production" : "development",
1114
entry: {
1215
main: path.join(__dirname, "src/index.ts")
1316
},
1417

1518
output: {
1619
path: path.join(__dirname, "dist"),
17-
filename: "signals.min.js",
20+
filename: filename,
1821

1922
libraryTarget: "var",
2023
library: "SignalsJS"
2124
},
2225

23-
devtool: 'inline-source-map',
26+
devtool: env.production ? undefined : "inline-source-map",
2427

2528
module: {
2629
rules: [
27-
{ test: /\.ts$/, loader: "ts-loader?configFile=" + tsconfig },
2830
{
29-
test: ((options.production) /* disable this loader for production builds */
31+
test: /\.ts$/,
32+
loader: "ts-loader?configFile=" + tsconfig
33+
},
34+
{
35+
test: ((env.production) /* disable this loader for production builds */
3036
? /^$/
3137
: /^(.(?!\.test))*\.ts$/),
3238
loader: "istanbul-instrumenter-loader",
@@ -39,8 +45,8 @@ module.exports = (function(options) {
3945
},
4046

4147
plugins: (
42-
(options.production)
43-
? [ new webpack.optimize.UglifyJsPlugin({ sourceMap: false }) ]
48+
(env.production)
49+
? [ new UglifyJSPlugin() ]
4450
: [ new webpack.SourceMapDevToolPlugin({ test: /\.ts$/i }) ]
4551
),
4652

0 commit comments

Comments
 (0)