-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scaffold-project): add some default config
- added javascript language scaffolder - added myself as default copyright holder
- Loading branch information
Showing
3 changed files
with
194 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
const {Command} = require('@oclif/command'); | ||
const {scaffold: scaffoldJavaScript} = require('@travi/javascript-scaffolder'); | ||
const {scaffold} = require('@travi/project-scaffolder'); | ||
|
||
class ScaffoldProject extends Command { | ||
async run() { | ||
this.log('Starting the scaffolder.'); | ||
|
||
scaffold().catch(err => { | ||
scaffold({ | ||
languages: {JavaScript: scaffoldJavaScript}, | ||
overrides: {copyrightHolder: 'Trevor Richardson'} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
travi
Contributor
|
||
}).catch(err => { | ||
console.error(err); // eslint-disable-line no-console | ||
process.exitCode = 1; | ||
}); | ||
|
worth being aware... not documented yet, but there is also the option to provide things like this as a
decision
.overrides
provides a default answer to a prompt, but you still have to see the prompt.decisions
answer the prompts and skip showing them