Skip to content

Commit adf3467

Browse files
committed
Update nwb: 0.9.x → 0.17.x
1 parent 0b1d3d2 commit adf3467

File tree

5 files changed

+53
-34
lines changed

5 files changed

+53
-34
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/coverage
22
/demo/dist
3-
/es6
3+
/es
44
/lib
55
/node_modules
66
/umd
7-
npm-debug.log
7+
npm-debug.log*
8+
package-lock.json

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save=false

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
3-
- "4"
4-
- "5"
3+
- 4
4+
- 6
55
script: npm test

nwb.config.js

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
module.exports = {
2-
type: 'react-component',
3-
build: {
4-
externals: {
5-
'react': 'React'
6-
},
7-
global: 'MaskedInput',
8-
jsNext: true,
9-
umd: true
1+
module.exports = function(build) {
2+
var config = {
3+
type: 'react-component',
4+
npm: {
5+
umd: {
6+
externals: {
7+
'react': 'React'
8+
},
9+
global: 'MaskedInput'
10+
}
11+
}
1012
}
13+
14+
if (/^build/.test(build.command)) {
15+
// Don't include default polyfills in the demo build
16+
config.polyfill = false
17+
// Prevent React 15.x triggering inclusion of the Node.js process shim in the
18+
// demo build.
19+
config.webpack = {
20+
extra: {
21+
node: {
22+
process: false
23+
}
24+
}
25+
}
26+
}
27+
28+
return config
1129
}

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,22 @@
11
{
22
"name": "react-maskedinput",
3-
"description": "Masked <input/> React component",
43
"version": "3.3.4",
5-
"main": "./lib/index.js",
6-
"jsnext:main": "es6/index.js",
7-
"standalone": "MaskedInput",
8-
"homepage": "https://github.com/insin/react-maskedinput",
9-
"license": "MIT",
10-
"author": "Jonny Buchanan <[email protected]>",
11-
"keywords": [
12-
"react",
13-
"masked",
14-
"input",
15-
"react-component"
16-
],
4+
"description": "Masked <input/> React component",
5+
"main": "lib/index.js",
6+
"module": "es/index.js",
177
"files": [
18-
"es6",
8+
"es",
199
"lib",
2010
"umd"
2111
],
2212
"scripts": {
23-
"build": "nwb build",
24-
"clean": "nwb clean",
13+
"build": "nwb build-react-component --no-polyfill",
14+
"clean": "nwb clean-module && nwb clean-demo",
2515
"lint": "eslint src tests",
26-
"start": "nwb serve",
27-
"test": "nwb test",
16+
"start": "nwb serve-react-demo",
17+
"test": "nwb test-react",
2818
"posttest": "npm run lint",
29-
"test:watch": "nwb test --server"
19+
"test:watch": "nwb test-react --server"
3020
},
3121
"dependencies": {
3222
"inputmask-core": "^2.1.1",
@@ -37,12 +27,21 @@
3727
},
3828
"devDependencies": {
3929
"eslint-config-jonnybuchanan": "5.0.x",
40-
"nwb": "0.9.x",
30+
"nwb": "0.17.x",
4131
"react": "15.x",
4232
"react-dom": "15.x"
4333
},
34+
"author": "Jonny Buchanan <[email protected]>",
35+
"homepage": "https://github.com/insin/react-maskedinput",
36+
"license": "MIT",
4437
"repository": {
4538
"type": "git",
4639
"url": "http://github.com/insin/react-maskedinput.git"
47-
}
40+
},
41+
"keywords": [
42+
"react",
43+
"masked",
44+
"input",
45+
"react-component"
46+
]
4847
}

0 commit comments

Comments
 (0)