Skip to content

Commit 7f70095

Browse files
authored
chore(init): use assets/.gitkeep (angular#1850)
1 parent 8c566ca commit 7f70095

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

addon/ng2/blueprints/ng2/files/__path__/assets/.gitkeep

Whitespace-only changes.

addon/ng2/models/webpack-build-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function getWebpackCommonConfig(
148148
new CopyWebpackPlugin([{
149149
context: path.resolve(appRoot, appConfig.assets),
150150
from: { glob: '**/*', dot: true },
151-
ignore: [ '.gitignore' ],
151+
ignore: [ '.gitkeep' ],
152152
to: path.resolve(projectRoot, appConfig.outDir, appConfig.assets)
153153
}])
154154
],

tests/e2e/e2e_workflow.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,12 @@ describe('Basic end-to-end Workflow', function () {
322322
const testFile = path.join(process.cwd(), 'src', 'assets', 'test.abc');
323323
const distTestFile = path.join(process.cwd(), 'dist', 'assets', 'test.abc');
324324
fs.writeFileSync(testFile, 'hello world');
325-
const distDotGitIgnore = path.join(process.cwd(), 'dist', 'assets', '.gitignore');
325+
const distDotGitkeep = path.join(process.cwd(), 'dist', 'assets', '.gitkeep');
326326

327327
sh.exec(`${ngBin} build`);
328328
expect(existsSync(distDotFile)).to.be.equal(true);
329329
expect(existsSync(distTestFile)).to.be.equal(true);
330-
expect(existsSync(distDotGitIgnore)).to.be.equal(false);
330+
expect(existsSync(distDotGitkeep)).to.be.equal(false);
331331
});
332332

333333
// Mobile mode doesn't have styles

0 commit comments

Comments
 (0)