1
1
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:
Shawn Allen 2017-09-07 11:38:38 -07:00
parent f71e014f9d
commit ebd24a8433
2 changed files with 17 additions and 2 deletions

View File

@ -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
View 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