mirror of
https://github.com/primer/css.git
synced 2024-11-10 07:58:36 +03:00
add new, improved script for new module bootstrapping
This commit is contained in:
parent
f71e014f9d
commit
ebd24a8433
@ -10,8 +10,7 @@
|
||||
"release-candidate": "script/release-candidate",
|
||||
"release": "script/release",
|
||||
"bump": "lerna publish --exact --skip-npm",
|
||||
"new-module": "cd modules && yo ./generator-primer-module/app",
|
||||
"postnew-module": "npm run bootstrap",
|
||||
"new-module": "script/new-module",
|
||||
"test": "lerna run test"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
16
script/new-module
Executable file
16
script/new-module
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo
|
||||
echo "📦 Creating a new module..."
|
||||
echo
|
||||
echo " Protip: you can pass --force to skip the Yeoman conflict prompts."
|
||||
echo " Otherwise, press 'y' for each one or 'a' for the first."
|
||||
echo
|
||||
|
||||
pushd modules > /dev/null
|
||||
../node_modules/.bin/yo ./generator-primer-module/app "$@"
|
||||
popd > /dev/null
|
||||
|
||||
echo "✅ All set! Let me bootstrap that new module for ya..."
|
||||
npm run bootstrap
|
Loading…
Reference in New Issue
Block a user