Skip to content

Commit

Permalink
feat(pluginsdk): Add script for 'npm run develop'
Browse files Browse the repository at this point in the history
This script runs rollup build in watch  mode and also runs the dev-proxy
  • Loading branch information
christopherthielen authored and mergify[bot] committed Sep 17, 2020
1 parent d893382 commit 261185c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/pluginsdk/scaffold/package.json
Expand Up @@ -5,10 +5,10 @@
"module": "build/dist/index.js",
"scripts": {
"clean": "npx shx rm -rf build",
"develop": "run-p watch proxy",
"build": "npm run clean && rollup -c",
"dev-proxy": "dev-proxy",
"postinstall": "check-plugin && check-peer-dependencies || true",
"proxy": "npm-run-all -p --aggregate-output watch dev-proxy",
"proxy": "dev-proxy",
"watch": "rollup -c -w --no-watch.clearScreen"
},
"dependencies": {
Expand Down
Expand Up @@ -24,10 +24,10 @@ function checkPackageJson(report) {

checkPackageJsonField('module', 'build/dist/index.js');
checkPackageJsonField('scripts.clean', 'npx shx rm -rf build');
checkPackageJsonField('scripts.develop', 'run-p watch proxy');
checkPackageJsonField('scripts.build', 'npm run clean && rollup -c');
checkPackageJsonField('scripts.dev-proxy', 'dev-proxy');
checkPackageJsonField('scripts.proxy', 'run-p watch dev-proxy');
checkPackageJsonField('scripts.postinstall', 'check-plugin && check-peer-dependencies || true');
checkPackageJsonField('scripts.proxy', 'dev-proxy');
checkPackageJsonField('scripts.watch', 'rollup -c -w --no-watch.clearScreen');

const bundlesFiles = pkgJson.files && pkgJson.files.includes('build/dist');
Expand Down

0 comments on commit 261185c

Please sign in to comment.