Skip to content

Commit ebf51cc

Browse files
author
radeva
authored
Merge pull request #75 from NativeScript/radeva/del-files-on-postclone
fix(postclone): remove CONTRIBUTING and CODE_OF_CONDUCT on postclone
2 parents eca12db + b96804e commit ebf51cc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

seed-tests/postclone.tests.js

+8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ describe('postclone', function () {
5353
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/screenshots")).toBeFalsy();
5454
});
5555

56+
it('should delete the seed CONTRIBUTING.md', function () {
57+
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/CONTRIBUTING.md")).toBeFalsy();
58+
});
59+
60+
it('should delete the seed CODE_OF_CONDUCT.md', function () {
61+
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/CODE_OF_CONDUCT.md")).toBeFalsy();
62+
});
63+
5664
it('should delete the postclone.js', function () {
5765
expect(fs.existsSync(constants.SEED_COPY_LOCATION + "/src/scripts/postclone.js")).toBeFalsy();
5866
});

src/scripts/postclone.js

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ function replaceFiles() {
179179
console.log('Seed tests removed.');
180180

181181
// delete postclone.js
182+
rimraf.sync('../CONTRIBUTING.md');
183+
rimraf.sync('../CODE_OF_CONDUCT.md');
182184
rimraf.sync(scripts_dir + '/postclone.js');
183185

184186
askInitGit();

0 commit comments

Comments
 (0)