Skip to content

Commit

Permalink
fix: Add missing dependencies, copy styles to commonjs and es build
Browse files Browse the repository at this point in the history
  • Loading branch information
HriBB committed Aug 16, 2016
1 parent 081d7f1 commit b50a59e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"homepage": "https://hribb.github.io/react-mdl-selectfield/",
"devDependencies": {
"webpack": "^1.13.1",
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.12.2"
},
Expand Down
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
"scripts": {
"start": "npm run storybook",
"storybook": "cross-env NODE_ENV=development start-storybook -p 9002",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib && cp src/SelectField/SelectField.scss lib/SelectField/SelectField.scss && cp src/MultiSelectField/MultiSelectField.scss lib/MultiSelectField/MultiSelectField.scss",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es && cp src/SelectField/SelectField.scss es/SelectField/SelectField.scss && cp src/MultiSelectField/MultiSelectField.scss es/MultiSelectField/MultiSelectField.scss",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --progress --verbose --colors",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --progress --verbose --colors",
"build:examples": "cross-env BABEL_ENV=commonjs babel-node examples/buildAll.js",
"build:examples": "cd examples && npm run build",
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"lint": "eslint src/** test/**",
"gh-pages": "gh-pages-deploy",
"prepublish": "npm run lint",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "mocha --require test/config/setup 'test/*.js'",
Expand All @@ -40,6 +41,11 @@
"bugs": {
"url": "https://github.com/HriBB/react-mdl-selectfield/issues"
},
"gh-pages-deploy": {
"staticpath": "examples/dist",
"prep": ["build:examples"],
"noprompt": false
},
"homepage": "https://hribb.github.io/react-mdl-selectfield/",
"peerDependencies": {
"react-mdl": "^1.6.1"
Expand Down Expand Up @@ -85,14 +91,14 @@
"semantic-release": "^4.3.5",
"sinon": "^1.17.4",
"style-loader": "^0.13.0",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
"webpack": "^1.13.1"
},
"dependencies": {
"@kadira/storybook-deployer": "^1.0.0",
"classnames": "^2.2.3",
"invariant": "^2.0.0",
"react": "^15.0.0",
"react-dom": "^15.0.0"
"react-dom": "^15.0.0",
"react-mdl": "^1.6.1"
}
}

0 comments on commit b50a59e

Please sign in to comment.