Skip to content

Instantly share code, notes, and snippets.

@beginor
Created November 16, 2021 02:59
Show Gist options
  • Save beginor/f85f658d2d7b77d7acef5d12f4f3c77e to your computer and use it in GitHub Desktop.
Save beginor/f85f658d2d7b77d7acef5d12f4f3c77e to your computer and use it in GitHub Desktop.
Create angular app with pnpm package manager.
#!/bin/bash -e
mv ng-seed-cli/.git _git
rm -rf ng-seed-cli
pnpm --package=@angular/cli dlx ng new ng-seed-cli --create-application false --skip-git --minimal --package-manager pnpm
cd ng-seed-cli
cp ../ng-seed/.eslintrc.json ./
cp ../ng-seed/.editorconfig ./
pnpm exec ng add @angular-eslint/schematics@next --skip-confirmation
pnpm exec ng g @angular-eslint/schematics:lib app-shared
pnpm exec ng g @angular-eslint/schematics:app handset --style scss --routing true --skip-tests true
pnpm exec ng g @angular-eslint/schematics:app web --style scss --routing true --skip-tests true
pnpm exec ng config defaultProject web
find projects -name *.spec.* -delete
find projects -name test.ts -delete
find projects -name karma.* -delete
echo "package-lock.json" >> .gitignore
echo "pnpm-lock.yaml" >> .gitignore
mv ../_git .git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment