Skip to content

Commit

Permalink
feat(scaffold-project): add travis-ci as javascript CI target
Browse files Browse the repository at this point in the history
  • Loading branch information
trevtrich committed Feb 19, 2020
1 parent e93d01f commit 2ddd6bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@travi/github-scaffolder": "5.0.2",
"@travi/javascript-scaffolder": "10.9.3",
"@travi/project-scaffolder": "8.4.1",
"@travi/travis-scaffolder-javascript": "3.2.0",
"update-notifier": "4.1.0"
},
"devDependencies": {
Expand Down
8 changes: 7 additions & 1 deletion src/commands/scaffold-project.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
const {Command} = require('@oclif/command');
const {prompt: githubPrompt, scaffold: scaffoldGithub} = require('@travi/github-scaffolder');
const {scaffold: scaffoldJavaScript} = require('@travi/javascript-scaffolder');
const {scaffold: scaffoldTravisForJavaScript} = require('@travi/travis-scaffolder-javascript');
const {scaffold} = require('@travi/project-scaffolder');

class ScaffoldProject extends Command {
async run() {
this.log('Starting the scaffolder.');

scaffold({
languages: {JavaScript: scaffoldJavaScript},
languages: {
JavaScript: options => scaffoldJavaScript({
...options,
ciServices: {Travis: {scaffolder: scaffoldTravisForJavaScript, public: true}}
})
},
overrides: {copyrightHolder: 'Trevor Richardson'},
vcsHosts: {
GitHub: {scaffolder: scaffoldGithub, prompt: githubPrompt, public: true, private: true}
Expand Down

0 comments on commit 2ddd6bb

Please sign in to comment.