mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 23:15:56 +08:00
parent
62ea1f2b11
commit
0f7134ce38
0
addon/ng2/blueprints/ng2/files/public/.gitignore
vendored
Normal file
0
addon/ng2/blueprints/ng2/files/public/.gitignore
vendored
Normal file
5
lib/broccoli/angular2-app.js
vendored
5
lib/broccoli/angular2-app.js
vendored
@ -87,10 +87,15 @@ Angular2App.prototype.toTree = function () {
|
||||
destDir: 'vendor'
|
||||
});
|
||||
|
||||
var publicDirTree = new Funnel('public', {
|
||||
allowEmpty: true
|
||||
});
|
||||
|
||||
var merged = mergeTrees([
|
||||
assetTree,
|
||||
tsTree,
|
||||
jsTree,
|
||||
publicDirTree,
|
||||
this.index(),
|
||||
vendorNpmTree
|
||||
], { overwrite: true });
|
||||
|
@ -176,6 +176,22 @@ describe('Basic end-to-end Workflow', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('moves all files that live inside `public` into `dist`', function () {
|
||||
this.timeout(420000);
|
||||
|
||||
const tmpFile = path.join(process.cwd(), 'public', 'test.abc');
|
||||
const tmpFileLocation = path.join(process.cwd(), 'dist', 'test.abc');
|
||||
fs.writeFileSync(tmpFile, 'hello world');
|
||||
|
||||
return ng(['build', '--silent'])
|
||||
.then(function () {
|
||||
expect(existsSync(tmpFileLocation));
|
||||
})
|
||||
.catch(err => {
|
||||
throw new Error(err)
|
||||
});
|
||||
});
|
||||
|
||||
it('Turn on `noImplicitAny` in tsconfig.json and rebuild', function (done) {
|
||||
this.timeout(420000);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user