simple-forms-react
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,6 @@ | ||
var SimpleFormsReact = (function (React,PropTypes) { | ||
'use strict'; | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('prop-types')) : | ||
typeof define === 'function' && define.amd ? define(['react', 'prop-types'], factory) : | ||
(global.SimpleFormsReact = factory(global.React,global.PropTypes)); | ||
}(this, (function (React,PropTypes) { 'use strict'; | ||
@@ -405,3 +408,3 @@ React = React && React.hasOwnProperty('default') ? React['default'] : React; | ||
}(React,PropTypes)); | ||
}))); | ||
//# sourceMappingURL=simple-forms-react.js.map |
{ | ||
"name": "simple-forms-react", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An awesome Form for React!", | ||
@@ -9,6 +9,14 @@ "main": "dist/simple-forms-react.js", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"build": "rimraf dist && rollup -c", | ||
"lint": "eslint --fix index.js rollup.config.js", | ||
"prepublish": "npm run build" | ||
"prepublish": "npm run build", | ||
"precommit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"./node_modules/.bin/prettier --write", | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"repository": { | ||
@@ -18,3 +26,7 @@ "type": "git", | ||
}, | ||
"keywords": ["forms", "react", "react-forms"], | ||
"keywords": [ | ||
"forms", | ||
"react", | ||
"react-forms" | ||
], | ||
"babel": { | ||
@@ -53,4 +65,7 @@ "presets": [ | ||
"eslint-plugin-react": "^7.5.1", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^6.0.0", | ||
"prop-types": "^15.6.0", | ||
"react": "^16.2.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.53.3", | ||
@@ -57,0 +72,0 @@ "rollup-plugin-babel": "^3.0.3" |
@@ -14,3 +14,3 @@ const babel = require('rollup-plugin-babel'); | ||
file: `./dist/${NAME}.js`, | ||
format: 'iife', | ||
format: 'umd', | ||
name: 'SimpleFormsReact', | ||
@@ -17,0 +17,0 @@ sourcemap: true, |
Sorry, the diff of this file is not supported yet
73722
15
1124