forked from insin/react-maskedinput
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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" | ||
] | ||
} |