-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updates docs - moves eslint -> standard - migrates to git functionality to async function - migrates (command|pipeline) run to async function instead of a callback - moves out convertToAsciiPipeline to util file
- Loading branch information
1 parent
e6a399c
commit abfd455
Showing
56 changed files
with
2,101 additions
and
10,072 deletions.
There are no files selected for viewing
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,3 +1,12 @@ | ||
{ | ||
"presets": ["react", "env"] | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"browsers": "last 2 Chrome versions", | ||
"node": "current" | ||
}, | ||
"modules": "commonjs" | ||
}], | ||
"@babel/react" | ||
], | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"browsers": "last 2 Chrome versions", | ||
"node": "current" | ||
}, | ||
"modules": "commonjs" | ||
}], | ||
"@babel/react" | ||
], | ||
} |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ script: | |
node_js: | ||
- "6" | ||
- "8" | ||
- "10" |
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,31 +1,31 @@ | ||
#!/usr/bin/env node | ||
|
||
const program = require('commander'); | ||
const program = require('commander') | ||
|
||
const fs = require('fs'); | ||
const yaml = require('js-yaml'); | ||
const execute = require('../lib/execute'); | ||
const fs = require('fs') | ||
const yaml = require('js-yaml') | ||
const { execute } = require('../lib/execute') | ||
|
||
let runOnly = ''; | ||
let runOnly = '' | ||
|
||
program | ||
.version(require('../package.json').version) | ||
.arguments('<steps>') | ||
.action(function (actions) { | ||
// creates an array of steps allowed | ||
runOnly = actions.split(',') | ||
// creates an array of steps allowed | ||
runOnly = actions.split(',') | ||
}) | ||
.option('-c, --config [file]', 'the input file for the build pipeline to run', process.cwd() + '/build.yml') | ||
.option('-d, --debug', 'outputs a debug file of the build process and data captured', false) | ||
.option('-o, --output [output]', 'set the output path for the build artifact') | ||
.option('-b, --browser', 'doesn\'t open browser') | ||
.parse(process.argv); | ||
.parse(process.argv) | ||
|
||
const { config, debug, output, browser } = program; | ||
const { config, debug, output, browser } = program | ||
|
||
const buildFile = fs.readFileSync(config, 'utf8'); | ||
const buildFile = fs.readFileSync(config, 'utf8') | ||
const doc = yaml.safeLoad(buildFile); | ||
|
||
(async function() { | ||
await execute(Object.assign({ runOnly, debug, output, browser }, doc)); | ||
(async function () { | ||
await execute(Object.assign({ runOnly, debug, output, browser }, doc)) | ||
}()) |
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
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
Oops, something went wrong.