Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bake-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bake-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

bin/bake.js

@@ -20,3 +20,3 @@ #!/usr/bin/env node

let env = assign({}, process.env, {
PATH: process.env.PATH + separator + path.resolve('./node_modules/.bin')
PATH: path.resolve('./node_modules/.bin') + separator + process.env.PATH
});

@@ -23,0 +23,0 @@

@@ -5,2 +5,12 @@ # Change Log

<a name="0.1.1"></a>
## [0.1.1](https://github.com/mklabs/bake/compare/v0.1.0...v0.1.1) (2016-05-26)
### Bug Fixes
* make sure local node_modules/.bin path is in front of $PATH ([2d903a3](https://github.com/mklabs/bake/commit/2d903a3))
<a name="0.1.0"></a>

@@ -7,0 +17,0 @@ # [0.1.0](https://github.com/mklabs/bake/compare/v0.0.4...v0.1.0) (2016-05-25)

{
"name": "bake-cli",
"version": "0.1.0",
"version": "0.1.1",
"description": "Make like Task runner",
"main": "index.js",
"scripts": {
"test": "mocha -R spec"
"test": "pwd && babel lib -d src && mocha -R spec"
},

@@ -13,3 +13,2 @@ "devDependencies": {

"babel-preset-es2015": "^6.9.0",
"bake-cli": "0.0.4",
"eslint": "^2.10.2",

@@ -19,2 +18,3 @@ "eslint-config-standard": "^5.3.1",

"eslint-plugin-standard": "^1.3.2",
"gentle-cli": "^1.0.3",
"mocha": "^2.5.2",

@@ -21,0 +21,0 @@ "standard-version": "^2.2.1",

@@ -28,7 +28,7 @@ {

"poststart": "echo poststart",
"install": "npm install --loglevel http --cache-min Infinity",
"install": "npm install --loglevel warn --cache-min Infinity",
"preinstall": "echo Installing dependencies ...",
"postinstall": "npm ls --depth 1"
"postinstall": "npm ls --depth 0"
}
}
}
const cli = require('gentle-cli');
const { join } = require('path');
describe('Bake cli', () => {
let bake = (cmd) => {
return cli()
.use('node ' + join(__dirname, '../bin/bake.js') + ' ' + cmd);
};
it('Outputs help', (done) => {
cli()
.use('bake -h')
bake('-h')
.expect('bake <target...> [options]')

@@ -15,4 +19,3 @@ .expect('Options:')

it('bake foo', (done) => {
cli()
.use('bake foo')
bake('foo')
.expect('prefoo\nblahblah\nfoo')

@@ -24,4 +27,3 @@ .expect(0)

it('bake all', (done) => {
cli()
.use('bake')
bake('all')
.expect('prefoo\nblahblah\nfoo\nfoo2\nblahblah\nfoobar')

@@ -33,4 +35,3 @@ .expect(0)

it('bake maoow - Outputs help on UNKNOWN_TARGET', (done) => {
cli()
.use('bake maoow')
bake('maoow')
.expect('bake <target...> [options]')

@@ -37,0 +38,0 @@ .expect('Options:')

@@ -7,5 +7,10 @@

let bake = (cmd) => {
return cli({ cwd: join(__dirname, 'examples') })
.use('node ' + join(__dirname, '../bin/bake.js') + ' ' + cmd);
};
it('bake init', (done) => {
cli({ cwd: join(__dirname, 'examples') })
.use('bake init --skip')
bake('init --skip')
.expect('Running default template')

@@ -12,0 +17,0 @@ .expect(/Makefile\s+already exists, skipping/)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc