Skip to content

Commit dea50f8

Browse files
authored
Merge pull request #4 from epranka/fix#separate-travis-logic
fix(saofile): added travis logic
2 parents b70cdd0 + fb708f3 commit dea50f8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

saofile.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
const { join, relative } = require("path");
2-
const glob = require("glob");
31
const spawn = require("cross-spawn");
42
const validate = require("validate-npm-package-name");
53

6-
const rootDir = __dirname;
7-
84
module.exports = {
95
prompts: require("./prompts"),
106
templateData() {
@@ -26,11 +22,14 @@ module.exports = {
2622
if (this.answers.semanticrelease) {
2723
scripts.push(
2824
'\t\t"semantic-release": "semantic-release"',
29-
'\t\t"travis-deploy-once": "travis-deploy-once"',
3025
'\t\t"cz": "git-cz"'
3126
);
3227
}
3328

29+
if (this.answers.travis) {
30+
scripts.push('\t\t"travis-deploy-once": "travis-deploy-once"');
31+
}
32+
3433
const devDependencies = [
3534
'\t\t"@babel/cli": "^7.2.3"',
3635
'\t\t"@babel/core": "^7.3.4"',
@@ -120,7 +119,7 @@ module.exports = {
120119
filters: {
121120
"__tests__/**": "tests",
122121
jest_config_js: "tests",
123-
travis_yml: "semanticrelease",
122+
travis_yml: "travis",
124123
releaserc: "semanticrelease"
125124
}
126125
}

0 commit comments

Comments
 (0)