-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular/cli): allow to create new projects in existing directory
- Loading branch information
1 parent
d79fd00
commit e4fc294
Showing
6 changed files
with
72 additions
and
77 deletions.
There are no files selected for viewing
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
55 changes: 0 additions & 55 deletions
55
packages/@angular/cli/ember-cli/lib/tasks/create-and-step-into-directory.js
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as fs from 'fs'; | ||
import denodeify = require('denodeify'); | ||
|
||
import {ng} from '../../../utils/process'; | ||
import {getGlobalVariable} from '../../../utils/env'; | ||
|
||
const mkdir = denodeify(fs.mkdir); | ||
|
||
|
||
export default function() { | ||
return Promise.resolve() | ||
.then(() => process.chdir(getGlobalVariable('tmp-root'))) | ||
.then(() => mkdir('empty-directory')) | ||
.then(() => ng('new', 'foo', '--dir=empty-directory', '--skip-install', '--skip-git')); | ||
} |