Skip to content

Instantly share code, notes, and snippets.

@guiguetz
Created September 3, 2018 21:26
Show Gist options
  • Save guiguetz/efcbf37ce6eac0b14103e4ce8b8f9efc to your computer and use it in GitHub Desktop.
Save guiguetz/efcbf37ce6eac0b14103e4ce8b8f9efc to your computer and use it in GitHub Desktop.
echo "Insira o nome do projeto:"
read projname
echo "Insira o nome do projeto:"
read projprefix
ng new ${projname} --prefix ${projprefix}
cd ${projname}
echo "Insira o nome da biblioteca:"
read libname
echo "Insira o prefixo da biblioteca:"
read libprefix
ng generate library ${libname} --prefix ${libprefix}
"Insira um nome de component teste:"
read compname
ng generate component ${compname} --project=${libname}
ng build ${libname}
ng serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment