Skip to content

Commit

Permalink
Add watch mode to rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
soupette committed Apr 18, 2019
1 parent a7aef8b commit ff31c75
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 19 deletions.
3 changes: 2 additions & 1 deletion packages/strapi-plugin-content-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"prebuild": "npm run build:clean",
"build": "rollup -c",
"build:clean": "rimraf admin/dist",
"build:watch": "rollup -c -v",
"start": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/cross-env NODE_ENV=development PLUGIN=true node ./node_modules/strapi-helper-plugin/lib/server",
"generate": "node ./node_modules/strapi-helper-plugin/node_modules/plop --plopfile ./node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
"prettier": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/prettier --single-quote --trailing-comma es5 --write \"{admin,__{tests,mocks}__}/**/*.js\"",
Expand Down Expand Up @@ -95,4 +96,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
3 changes: 2 additions & 1 deletion packages/strapi-plugin-content-type-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"prebuild": "npm run build:clean",
"build": "rollup -c",
"build:clean": "rimraf admin/dist",
"build:watch": "rollup -c -v",
"start": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/lib/server",
"generate": "node ./node_modules/strapi-helper-plugin/node_modules/plop --plopfile ./node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
"prettier": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/prettier --single-quote --trailing-comma es5 --write \"{admin,__{tests,mocks}__}/**/*.js\"",
Expand Down Expand Up @@ -94,4 +95,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
3 changes: 2 additions & 1 deletion packages/strapi-plugin-documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"analyze": "node ./node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
"prebuild": "npm run build:clean",
"build": "rollup -c",
"build:watch": "rollup -c -v",
"build:clean": "rimraf admin/dist",
"lint": "node ./node_modules/strapi-lint/node_modules/.bin/eslint --ignore-path .gitignore --ignore-pattern '/admin/build/' --config ./node_modules/strapi-lint/lib/internals/eslint/.eslintrc.json admin",
"prettier": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/prettier --single-quote --trailing-comma es5 --write \"{admin,__{tests,mocks}__}/**/*.js\"",
Expand Down Expand Up @@ -112,4 +113,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}
3 changes: 2 additions & 1 deletion packages/strapi-plugin-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"analyze": "node ./node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
"prebuild": "npm run build:clean",
"build": "rollup -c",
"build:watch": "rollup -c -w",
"build:clean": "rimraf admin/dist",
"start": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/lib/server",
"generate": "node ./node_modules/plop/plop.js --plopfile node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
Expand Down Expand Up @@ -88,4 +89,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ import saga from './sagas';
import styles from './styles.scss';
import config from './config.json';

// export class HomePage extends React.Component {
// render() {
// return null;
// }
// }

/* eslint-disable react/require-default-props */
export class HomePage extends React.Component {
// eslint-disable-line react/prefer-stateless-function
Expand Down
3 changes: 2 additions & 1 deletion packages/strapi-plugin-settings-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"analyze": "node ./node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
"prebuild": "npm run build:clean",
"build": "rollup -c",
"build:watch": "rollup -c -w",
"build:clean": "rimraf admin/build",
"start": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/lib/server",
"generate": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/plop --plopfile ./node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
Expand Down Expand Up @@ -91,4 +92,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
5 changes: 2 additions & 3 deletions packages/strapi-plugin-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
"preanalyze": "npm run analyze:clean",
"analyze": "node ./node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
"prebuild": "npm run build:clean",
"build:dev": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/node_modules/.bin/webpack --config node_modules/strapi-helper-plugin/lib/internals/webpack/webpack.prod.babel.js --color -p --progress",
"build": "rollup -c",
"build:clean": "rimraf admin/dist",
"start": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/lib/server",
"build:watch": "rollup -c -w",
"generate": "node ./node_modules/plop/plop.js --plopfile node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
"prettier": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/prettier --single-quote --trailing-comma es5 --write \"{admin,__{tests,mocks}__}/**/*.js\"",
"test": "echo \"no tests yet\"",
Expand Down Expand Up @@ -85,4 +84,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
6 changes: 2 additions & 4 deletions packages/strapi-plugin-users-permissions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
"preanalyze": "npm run analyze:clean",
"analyze": "node ./node_modules/strapi-helper-plugin/lib/internals/scripts/analyze.js",
"prebuild": "npm run build:clean",
"build:rollup": "rollup -c",
"build": "rollup -c",
"build:watch": "rollup -c -w",
"build:clean": "rimraf admin/dist",
"start": "cross-env NODE_ENV=development ./node_modules/strapi-helper-plugin/lib/server",
"generate": "node ./node_modules/plop/plop.js --plopfile node_modules/strapi-helper-plugin/lib/internals/generators/index.js",
"prettier": "node ./node_modules/strapi-helper-plugin/node_modules/.bin/prettier --single-quote --trailing-comma es5 --write \"{admin,__{tests,mocks}__}/**/*.js\"",
"test": "echo \"no tests yet\"",
"prepublishOnly": "IS_MONOREPO=true npm run build"
Expand Down Expand Up @@ -95,4 +93,4 @@
"npm": ">= 6.0.0"
},
"license": "MIT"
}
}
2 changes: 1 addition & 1 deletion packages/strapi-plugin-users-permissions/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {

svg(),
require('rollup-plugin-sizes')(),
// terser(),
terser(),
],

external: [
Expand Down

0 comments on commit ff31c75

Please sign in to comment.