Skip to content

Commit

Permalink
Update nwb: 0.9.x → 0.17.x
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Jul 4, 2017
1 parent 0b1d3d2 commit adf3467
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/coverage
/demo/dist
/es6
/es
/lib
/node_modules
/umd
npm-debug.log
npm-debug.log*
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save=false
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- "4"
- "5"
- 4
- 6
script: npm test
36 changes: 27 additions & 9 deletions nwb.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
module.exports = {
type: 'react-component',
build: {
externals: {
'react': 'React'
},
global: 'MaskedInput',
jsNext: true,
umd: true
module.exports = function(build) {
var config = {
type: 'react-component',
npm: {
umd: {
externals: {
'react': 'React'
},
global: 'MaskedInput'
}
}
}

if (/^build/.test(build.command)) {
// Don't include default polyfills in the demo build
config.polyfill = false
// Prevent React 15.x triggering inclusion of the Node.js process shim in the
// demo build.
config.webpack = {
extra: {
node: {
process: false
}
}
}
}

return config
}
41 changes: 20 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
{
"name": "react-maskedinput",
"description": "Masked <input/> React component",
"version": "3.3.4",
"main": "./lib/index.js",
"jsnext:main": "es6/index.js",
"standalone": "MaskedInput",
"homepage": "https://github.com/insin/react-maskedinput",
"license": "MIT",
"author": "Jonny Buchanan <[email protected]>",
"keywords": [
"react",
"masked",
"input",
"react-component"
],
"description": "Masked <input/> React component",
"main": "lib/index.js",
"module": "es/index.js",
"files": [
"es6",
"es",
"lib",
"umd"
],
"scripts": {
"build": "nwb build",
"clean": "nwb clean",
"build": "nwb build-react-component --no-polyfill",
"clean": "nwb clean-module && nwb clean-demo",
"lint": "eslint src tests",
"start": "nwb serve",
"test": "nwb test",
"start": "nwb serve-react-demo",
"test": "nwb test-react",
"posttest": "npm run lint",
"test:watch": "nwb test --server"
"test:watch": "nwb test-react --server"
},
"dependencies": {
"inputmask-core": "^2.1.1",
Expand All @@ -37,12 +27,21 @@
},
"devDependencies": {
"eslint-config-jonnybuchanan": "5.0.x",
"nwb": "0.9.x",
"nwb": "0.17.x",
"react": "15.x",
"react-dom": "15.x"
},
"author": "Jonny Buchanan <[email protected]>",
"homepage": "https://github.com/insin/react-maskedinput",
"license": "MIT",
"repository": {
"type": "git",
"url": "http://github.com/insin/react-maskedinput.git"
}
},
"keywords": [
"react",
"masked",
"input",
"react-component"
]
}

0 comments on commit adf3467

Please sign in to comment.