Skip to content

Instantly share code, notes, and snippets.

@gocs
Last active May 25, 2023 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gocs/c74ebb7a40d5639634891ce61d9e1b43 to your computer and use it in GitHub Desktop.
Save gocs/c74ebb7a40d5639634891ce61d9e1b43 to your computer and use it in GitHub Desktop.
create angular app
# 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