Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #130 from Nargonath/develop
Browse files Browse the repository at this point in the history
v3.1.0
  • Loading branch information
Nargonath authored Jan 25, 2020
2 parents 5c42c4d + 88b0c6f commit a0c2b97
Show file tree
Hide file tree
Showing 4 changed files with 1,299 additions and 1,604 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ This script is inspired by other work related such as: https://gist.github.com/j

## Ejection

You **do not** need to eject your project for you to use `cra-build-watch`.

This tool handles ejected projects but it assumes you did not modify your `webpack.config.js` file, `paths.js` and `env.js` utils. If you did I cannot guarantee that this tool will work.

# Why do I need this?
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
},
"lint-staged": {
"{{bin,scripts,utils}/**/*.{js,json},*.{js,json}}": [
"prettier --write",
"git add"
"prettier --write"
]
},
"prettier": {
Expand Down Expand Up @@ -62,23 +61,23 @@
"react-scripts": ">= 1.0.x"
},
"devDependencies": {
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@dixeed/eslint-config": "2.0.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.6.0",
"husky": "3.0.9",
"eslint": "6.8.0",
"husky": "4.2.1",
"jest": "^24.8.0",
"lint-staged": "9.4.2",
"prettier": "1.18.2"
"lint-staged": "10.0.2",
"prettier": "1.19.1"
},
"dependencies": {
"cross-spawn": "7.0.1",
"fs-extra": "^8.1.0",
"html-webpack-plugin": "^3.2.0",
"import-cwd": "3.0.0",
"meow": "5.0.0",
"ora": "4.0.2",
"semver": "^6.3.0"
"meow": "6.0.0",
"ora": "4.0.3",
"semver": "^7.1.1"
}
}
14 changes: 6 additions & 8 deletions scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,12 @@ fs.emptyDir(paths.appBuild)

return new Promise((resolve, reject) => {
const webpackCompiler = webpack(config);
webpackCompiler.apply(
new webpack.ProgressPlugin(() => {
if (!inProgress) {
spinner.start('Start webpack watch');
inProgress = true;
}
})
);
new webpack.ProgressPlugin(() => {
if (!inProgress) {
spinner.start('Start webpack watch');
inProgress = true;
}
}).apply(webpackCompiler);

webpackCompiler.watch({}, (err, stats) => {
if (err) {
Expand Down
Loading

0 comments on commit a0c2b97

Please sign in to comment.