-
-
Save gocs/c74ebb7a40d5639634891ce61d9e1b43 to your computer and use it in GitHub Desktop.
create angular app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic | |
npx -p @angular/cli ng new myappshop | |
# create angular app in the current directory especially when the current folder is already a git repo | |
npx -p @angular/cli ng new $(basename "$PWD") --directory=./ --skip-git | |
# with scss and defaults | |
npx -p @angular/cli ng new $(basename "$PWD") --directory=./ --skip-git --style=scss --defaults | |
# with version 16 | |
npx -p @angular/cli@16 ng new $(basename "$PWD") --directory=./ --skip-git --style=scss --defaults | |
# with tailwind | |
# https://tailwindcss.com/docs/guides/angular | |
npx -p @angular/cli@16 \ | |
ng new $(basename "$PWD") --directory=./ --skip-git --style=scss --defaults \ | |
&& npm install -D tailwindcss postcss autoprefixer \ | |
&& npx tailwindcss init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment