-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: add local package.json to schematics collection (#298)"
This reverts commit 33b85fa.
- Loading branch information
Showing
4 changed files
with
5 additions
and
99 deletions.
There are no files selected for viewing
71 changes: 0 additions & 71 deletions
71
apps/angular-console-e2e/src/integration/local-collection.spec.ts
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,10 @@ shell.rm('-rf', path.join(tmp, 'proj-extensions')); | |
shell.mkdir(path.join(tmp, 'proj-extensions')); | ||
shell.rm('-rf', path.join(tmp, 'proj-no-node-modules')); | ||
shell.mkdir(path.join(tmp, 'proj-no-node-modules')); | ||
shell.rm('-rf', path.join(tmp, 'proj-local-collection')); | ||
shell.mkdir(path.join(tmp, 'proj-local-collection')); | ||
|
||
shell.rm('-rf', path.join(tmp, 'ng')); | ||
shell.mkdir(path.join(tmp, 'ng')); | ||
cp.execSync('yarn add @angular/[email protected]', {cwd: path.join(tmp, 'ng')}); | ||
cp.execSync('yarn add @angular-devkit/schematics-cli @schematics/schematics', {cwd: path.join(tmp, 'ng')}); | ||
cp.execSync('yarn add json', {cwd: path.join(tmp, 'ng')}); | ||
|
||
cp.execSync('ng config -g cli.packageManager yarn'); | ||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/ng new proj --collection=@schematics/angular --directory=proj --skip-git --no-interactive`, { cwd: tmp, stdio: [0, 1, 2] }); | ||
|
@@ -32,12 +28,3 @@ shell.mv(path.join(tmp, 'proj-extensions'), './tmp/proj-extensions'); | |
|
||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/ng new proj-no-node-modules --collection=@schematics/angular --directory=proj-no-node-modules --skip-install --skip-git --no-interactive`, { cwd: tmp, stdio: [0, 1, 2] }); | ||
shell.mv(path.join(tmp, 'proj-no-node-modules'), './tmp/proj-no-node-modules'); | ||
|
||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/ng new proj-local-collection --collection=@schematics/angular --directory=proj-local-collection --skip-git --no-interactive`, { cwd: tmp, stdio: [0, 1, 2] }); | ||
shell.mv(path.join(tmp, 'proj-local-collection'), './tmp/proj-local-collection'); | ||
shell.cd('./tmp/proj-local-collection'); | ||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/schematics schematic --name=schematics .`); | ||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/json -I -f package.json -e 'this.schematics="./schematics/src/collection.json"'`); | ||
cp.execSync('ng config cli.defaultCollection schematics') | ||
shell.cd('schematics'); | ||
cp.execSync(`${path.join(tmp, 'ng')}/node_modules/.bin/tsc`); |