mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
fix(mobile): remove mobile-specific dependencies from root package
Also wait to npm install inside e2e tests until after linking local angular-cli, and change execution of `ngBin` to be windows-friendly. Part of #733
This commit is contained in:
parent
7f86ab37cb
commit
263e23b551
@ -29,6 +29,8 @@
|
||||
},
|
||||
"devDependencies": {<% if(isMobile) { %>
|
||||
"@angular/platform-server": "2.0.0-rc.1",
|
||||
"@angular/router-deprecated": "2.0.0-rc.1",
|
||||
"@angular/service-worker": "^0.1.13",
|
||||
"angular2-broccoli-prerender": "^0.11.0",
|
||||
"angular2-universal":"^0.100.3",
|
||||
"angular2-universal-polyfills": "^0.4.1",
|
||||
|
18
package.json
18
package.json
@ -30,16 +30,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/angular/angular-cli",
|
||||
"dependencies": {
|
||||
"@angular/common": "2.0.0-rc.1",
|
||||
"@angular/compiler": "2.0.0-rc.1",
|
||||
"@angular/core": "2.0.0-rc.1",
|
||||
"@angular/platform-browser": "2.0.0-rc.1",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
|
||||
"@angular/platform-server": "2.0.0-rc.1",
|
||||
"@angular/router": "2.0.0-rc.1",
|
||||
"angular2-broccoli-prerender": "^0.11.0",
|
||||
"angular2-universal": "^0.100.3",
|
||||
"angular2-universal-polyfills": "^0.4.1",
|
||||
"broccoli": "^1.0.0-beta.7",
|
||||
"broccoli-caching-writer": "^2.2.1",
|
||||
"broccoli-concat": "^2.2.0",
|
||||
@ -51,7 +41,6 @@
|
||||
"chalk": "^1.1.3",
|
||||
"ember-cli": "2.5.0",
|
||||
"ember-cli-string-utils": "^1.0.0",
|
||||
"es6-shim": "^0.35.0",
|
||||
"exit": "^0.1.2",
|
||||
"fs-extra": "^0.30.0",
|
||||
"glob": "^7.0.3",
|
||||
@ -59,18 +48,13 @@
|
||||
"leek": "0.0.21",
|
||||
"lodash": "^4.11.1",
|
||||
"opn": "4.0.1",
|
||||
"preboot": "^2.0.10",
|
||||
"reflect-metadata": "0.1.3",
|
||||
"resolve": "^1.1.7",
|
||||
"rxjs": "^5.0.0-beta.6",
|
||||
"shelljs": "^0.7.0",
|
||||
"silent-error": "^1.0.0",
|
||||
"symlink-or-copy": "^1.0.3",
|
||||
"systemjs": "0.19.26",
|
||||
"systemjs-builder": "^0.15.16",
|
||||
"typescript": "^1.8.10",
|
||||
"typings": "^0.8.1",
|
||||
"zone.js": "^0.6.12"
|
||||
"typings": "^0.8.1"
|
||||
},
|
||||
"ember-addon": {
|
||||
"paths": [
|
||||
|
@ -19,7 +19,7 @@ function existsSync(path) {
|
||||
}
|
||||
}
|
||||
|
||||
const ngBin = path.join(process.cwd(), 'bin', 'ng');
|
||||
const ngBin = `node ${path.join(process.cwd(), 'bin', 'ng')}`;
|
||||
|
||||
describe('Basic end-to-end Workflow', function () {
|
||||
before(conf.setup);
|
||||
@ -47,7 +47,7 @@ describe('Basic end-to-end Workflow', function () {
|
||||
it('Can create new project using `ng new test-project`', function () {
|
||||
this.timeout(4200000);
|
||||
|
||||
return ng(['new', 'test-project']).then(function () {
|
||||
return ng(['new', 'test-project', '--skip-npm']).then(function () {
|
||||
expect(existsSync(path.join(root, 'test-project')));
|
||||
});
|
||||
});
|
||||
@ -57,6 +57,7 @@ describe('Basic end-to-end Workflow', function () {
|
||||
process.chdir(path.join(root, 'test-project'));
|
||||
sh.exec('npm link angular-cli', { silent: true });
|
||||
expect(path.basename(process.cwd())).to.equal('test-project');
|
||||
sh.exec('npm install');
|
||||
});
|
||||
|
||||
it('Supports production builds via `ng build --environment=production`', function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user