Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
fix: Watch hook exits on syntax error (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
IniZio committed Jan 20, 2018
1 parent be6cb9c commit 79adfd9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 6 deletions.
4 changes: 2 additions & 2 deletions presets/webpack-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipped-preset-webpack-backend",
"version": "1.9.0",
"version": "1.9.1",
"description": "",
"main": "clipped.config.js",
"scripts": {
Expand All @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"clipped-preset-webpack-nodejs": "^0.1.2",
"clipped-preset-webpack-nodejs": "^1.9.1",
"nodemon": "^1.14.7"
}
}
4 changes: 2 additions & 2 deletions presets/webpack-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipped-preset-webpack-nodejs",
"version": "1.9.0",
"version": "1.9.1",
"description": "",
"main": "clipped.config.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"dependencies": {
"babel-preset-backpack": "^0.4.3",
"babel-preset-flow": "^6.23.0",
"clipped-preset-webpack": "^0.3.3",
"clipped-preset-webpack": "^1.9.1",
"source-map-support": "^0.5.0",
"webpack": "^3.10.0",
"webpack-node-externals": "^1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion presets/webpack/clipped.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports = (clipped, opt = {babel: {options: {}}}) => {
webpackInstance.watch({}, (err, stats) => {
if (err || stats.hasErrors()) {
console.error(err)
reject(err)
// reject(err)
}

console.log(stats.toString({
Expand Down
2 changes: 1 addition & 1 deletion presets/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipped-preset-webpack",
"version": "1.9.0",
"version": "1.9.1",
"description": "",
"main": "clipped.config.js",
"keywords": [],
Expand Down
33 changes: 33 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,17 @@ cli-width@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"

clipped-preset-webpack-nodejs@^0.1.2:
version "0.1.3"
resolved "https://registry.yarnpkg.com/clipped-preset-webpack-nodejs/-/clipped-preset-webpack-nodejs-0.1.3.tgz#575c196fae3e7d9440a419496ef0ca5322543a5f"
dependencies:
babel-preset-backpack "^0.4.3"
babel-preset-flow "^6.23.0"
clipped-preset-webpack "^0.3.3"
source-map-support "^0.5.0"
webpack "^3.10.0"
webpack-node-externals "^1.6.0"

clipped-preset-webpack@^0.3.3:
version "0.3.4"
resolved "https://registry.yarnpkg.com/clipped-preset-webpack/-/clipped-preset-webpack-0.3.4.tgz#dac1c148e1cb06f3e5f2663e3c83e51e4bcce4c6"
Expand All @@ -1576,6 +1587,21 @@ clipped-preset-webpack@^0.3.3:
webpack "^3.10.0"
webpack-chain "^4.5.0"

clipped-preset-webpack@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/clipped-preset-webpack/-/clipped-preset-webpack-0.4.0.tgz#09b3df9c6214527def901f4d3e969b32f4afb88f"
dependencies:
babel-core "^6.26.0"
babel-eslint "^8.1.2"
babel-loader "^7.1.2"
babel-preset-env "^1.6.1"
clean-webpack-plugin "^0.1.17"
eslint-friendly-formatter "^3.0.0"
eslint-loader "^1.9.0"
regenerator-runtime "^0.11.1"
webpack "^3.10.0"
webpack-chain "^4.5.0"

cliui@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
Expand Down Expand Up @@ -3674,6 +3700,13 @@ generate-object-property@^1.1.0:
dependencies:
is-property "^1.0.0"

generator-clipped-base@^0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/generator-clipped-base/-/generator-clipped-base-0.1.4.tgz#de8d561f9255722988f8ffe3c5915b61f0b9587d"
dependencies:
axios "^0.17.1"
yeoman-generator "^2.0.2"

get-caller-file@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
Expand Down

0 comments on commit 79adfd9

Please sign in to comment.