Comparing version 1.6.2 to 1.6.3
{ | ||
"name": "executive", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "Elegant command execution with built-in control flow", | ||
@@ -5,0 +5,0 @@ "main": "lib/executive.cjs.js", |
@@ -163,17 +163,17 @@ # executive | ||
## Extra | ||
Great with `sake`, `grunt`, `gulp` and other task runners. Even better mixed | ||
with generator-based control flow libraries and/or ES7 `async`/`await`. | ||
Great with `sake`, `grunt`, `gulp` and other task runners. Even nicer with | ||
`async` and `await`. | ||
Complex example using [`sake`](http://github.com/sakejs/sake-cli): | ||
Fancy example using [`sake`](http://github.com/sakejs/sake-cli): | ||
```coffeescript | ||
task 'package', 'Package project', -> | ||
# Create dist folder | ||
await exec ''' | ||
```javascript | ||
task('package', 'Package project', => { | ||
// Create dist folder | ||
await exec(` | ||
mkdir -p dist/ | ||
rm -rf dist/* | ||
''' | ||
`) | ||
# Copy assets to dist | ||
await exec.parallel ''' | ||
// Copy assets to dist in parallel | ||
await exec.parallel(` | ||
cp manifest.json dist/ | ||
@@ -183,10 +183,11 @@ cp -rf assets/ dist/ | ||
cp -rf views/ dist/ | ||
''' | ||
`) | ||
# Get current git commit hash | ||
{stdout} = await exec 'git rev-parse HEAD' | ||
hash = stdout.substring 0, 8 | ||
// Get current git commit hash | ||
let {stdout} = await exec('git rev-parse HEAD') | ||
let hash = stdout.substring(0, 8) | ||
# Zip up dist | ||
exec "zip -r package-#{hash}.zip dist/" | ||
exec(`zip -r package-${hash}.zip dist/`) | ||
}) | ||
``` | ||
@@ -193,0 +194,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
214
246061