Skip to content

Commit b824f8c

Browse files
mwczkylebuch8
authored andcommitted
add a new dev script at the root (#256)
* add a new dev script at the root * remove dev script echo and be more specific about package names * go back to '*' to make dev script resilient to name change
1 parent c9b71f4 commit b824f8c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"start": "npm run doc-listing-inject && spandx",
55
"lerna": "lerna",
66
"test": "npm run build && wct --configFile wct.conf.json test/index.html",
7+
"dev": "bash scripts/dev.sh",
78
"build": "lerna run build",
89
"clean": "rm -rf node_modules package-lock.json {elements,themes}/*/{node_modules,package-lock.json}",
910
"bootstrap": "lerna bootstrap --hoist",

scripts/dev.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
CMD="npm run lerna -- run dev --parallel --no-bail --include-filtered-dependencies"
4+
5+
for el in "$@"; do
6+
CMD="$CMD --scope \"*/$el\""
7+
done
8+
9+
eval $CMD

0 commit comments

Comments
 (0)