Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrieleRomeo committed Oct 13, 2017
1 parent fad44e6 commit 98ebeaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"A pre-configured starter kit bundle to speed-up your development with ES6",
"main": "index.js",
"scripts": {
"format":
"./node_modules/.bin/prettier --config .prettierrc --write \"src/**/*.js\"",
"lint": "./node_modules/.bin/eslint src",
"test": "./node_modules/.bin/jest",
"coverage": "./node_modules/.bin/jest --coverage",
"postcoverage": "./node_modules/.bin/opn ./coverage/lcov-report/index.html"
"format": "prettier --config .prettierrc --write \"src/**/*.js\"",
"lint": "eslint src",
"test": "jest",
"test:coverage": "jest --coverage",
"posttest:coverage": "opn ./coverage/lcov-report/index.html",
"test:update": "jest -u",
"watch": "webpack --watch"
},
"pre-commit": ["lint"],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
filename: 'bundle.js',
},
resolve: {
extensions: ['.js', '.json'],
extensions: ['.js', 'jsx', '.json'],
},
stats: {
colors: true,
Expand All @@ -19,7 +19,7 @@ module.exports = {
module: {
rules: [
{
test: /\.js$/,
test: /\.jsx?$/,
loader: 'babel-loader',
},
],
Expand Down

0 comments on commit 98ebeaf

Please sign in to comment.