Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular-Ionic: Better prepare/cleaning #228

Merged
merged 1 commit into from
Dec 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/ionic-angular/src/schematics/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export default function (options: ApplicationOptions) {
] = `npm run clean && npm run clean.${platformApp} && npm run build.${platformApp}`;
scripts[
`prepare.${platformApp}.ios`
] = `npm run prepare.${platformApp} && cd apps/${directory}${options.name} && npm run cap.add.ios`;
] = `npm run prepare.${platformApp} && cd apps/${directory}${options.name} && npx rimraf -- ios && npm run cap.add.ios`;
scripts[
`prepare.${platformApp}.android`
] = `npm run prepare.${platformApp} && cd apps/${directory}${options.name} && npm run cap.add.android`;
] = `npm run prepare.${platformApp} && cd apps/${directory}${options.name} && npx rimraf -- android && npm run cap.add.android`;
scripts[
`open.${platformApp}.ios`
] = `cd apps/${directory}${options.name} && npm run cap.ios`;
Expand All @@ -101,7 +101,7 @@ export default function (options: ApplicationOptions) {
] = `cd apps/${directory}${options.name} && npm run cap.copy`;
scripts[
`clean.${platformApp}`
] = `cd apps/${directory}${options.name} && npx rimraf -- hooks node_modules platforms www plugins ios android package-lock.json && npm i && rimraf -- package-lock.json`;
] = `cd apps/${directory}${options.name} && npx rimraf -- hooks node_modules platforms www plugins package-lock.json && npm i && rimraf -- package-lock.json`;
return updatePackageScripts(tree, scripts);
},
(tree: Tree, context: SchematicContext) => {
Expand Down