Created
November 16, 2021 02:59
-
-
Save beginor/f85f658d2d7b77d7acef5d12f4f3c77e to your computer and use it in GitHub Desktop.
Create angular app with pnpm package manager.
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
#!/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