Comparing version 0.31.0 to 0.32.0
import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _slicedToArray from 'babel-runtime/helpers/slicedToArray'; | ||
@@ -54,2 +55,3 @@ import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; | ||
appName = _tool$options.appName, | ||
configBlueprint = _tool$options.configBlueprint, | ||
configFolder = _tool$options.configFolder, | ||
@@ -93,3 +95,3 @@ pluginAlias = _tool$options.pluginAlias, | ||
return new Config(this.parseAndExtend(config), _defineProperty({ | ||
return new Config(this.parseAndExtend(config), _extends({}, configBlueprint, _defineProperty({ | ||
debug: bool(), | ||
@@ -99,3 +101,3 @@ extends: array(string()), | ||
silent: bool() | ||
}, pluralize(pluginAlias), array(union([string(), shape(_defineProperty({}, pluginAlias, string()))]))), { | ||
}, pluralize(pluginAlias), array(union([string(), shape(_defineProperty({}, pluginAlias, string()))])))), { | ||
name: 'ConfigLoader', | ||
@@ -102,0 +104,0 @@ unknown: true |
@@ -43,3 +43,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
this.context = context || {}; | ||
this.context = context; | ||
@@ -46,0 +46,0 @@ cli.start(this.subroutines); |
@@ -14,7 +14,5 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import execa from 'execa'; | ||
import merge from 'lodash/merge'; | ||
import split from 'split'; | ||
import ExitError from './ExitError'; | ||
import Task from './Task'; | ||
import isObject from './helpers/isObject'; | ||
import { STATUS_PENDING, STATUS_RUNNING, RESTRICTED_CONFIG_KEYS } from './constants'; | ||
@@ -66,8 +64,2 @@ | ||
var config = parent.config[this.key]; | ||
if (isObject(config)) { | ||
merge(this.config, config); | ||
} | ||
this.bootstrap(); | ||
@@ -177,5 +169,3 @@ | ||
key: 'task', | ||
value: function task(title, action) { | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
value: function task(title, action, config) { | ||
if (typeof action !== 'function') { | ||
@@ -182,0 +172,0 @@ throw new TypeError('Tasks require an executable function.'); |
@@ -72,3 +72,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
this.context = context || {}; | ||
this.context = context; | ||
@@ -75,0 +75,0 @@ if (this.isSkipped() || !this.action) { |
@@ -15,3 +15,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
import pluralize from 'pluralize'; | ||
import Options, { bool, string } from 'optimal'; | ||
import Options, { bool, object, string } from 'optimal'; | ||
import ConfigLoader from './ConfigLoader'; | ||
@@ -48,3 +48,4 @@ import Console from './Console'; | ||
appName: string().required(), | ||
configFolder: string('./config'), | ||
configBlueprint: object(), | ||
configFolder: string('./configs'), | ||
extendArgv: bool(true), | ||
@@ -51,0 +52,0 @@ pluginAlias: string('plugin'), |
@@ -11,2 +11,6 @@ 'use strict'; | ||
var _extends3 = require('babel-runtime/helpers/extends'); | ||
var _extends4 = _interopRequireDefault(_extends3); | ||
var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); | ||
@@ -116,2 +120,3 @@ | ||
appName = _tool$options.appName, | ||
configBlueprint = _tool$options.configBlueprint, | ||
configFolder = _tool$options.configFolder, | ||
@@ -155,3 +160,3 @@ pluginAlias = _tool$options.pluginAlias, | ||
return new _optimal2.default(this.parseAndExtend(config), (0, _defineProperty3.default)({ | ||
return new _optimal2.default(this.parseAndExtend(config), (0, _extends4.default)({}, configBlueprint, (0, _defineProperty3.default)({ | ||
debug: (0, _optimal.bool)(), | ||
@@ -161,3 +166,3 @@ extends: (0, _optimal.array)((0, _optimal.string)()), | ||
silent: (0, _optimal.bool)() | ||
}, (0, _pluralize2.default)(pluginAlias), (0, _optimal.array)((0, _optimal.union)([(0, _optimal.string)(), (0, _optimal.shape)((0, _defineProperty3.default)({}, pluginAlias, (0, _optimal.string)()))]))), { | ||
}, (0, _pluralize2.default)(pluginAlias), (0, _optimal.array)((0, _optimal.union)([(0, _optimal.string)(), (0, _optimal.shape)((0, _defineProperty3.default)({}, pluginAlias, (0, _optimal.string)()))])))), { | ||
name: 'ConfigLoader', | ||
@@ -164,0 +169,0 @@ unknown: true |
@@ -66,3 +66,3 @@ 'use strict'; | ||
this.context = context || {}; | ||
this.context = context; | ||
@@ -69,0 +69,0 @@ cli.start(this.subroutines); |
@@ -35,6 +35,2 @@ 'use strict'; | ||
var _merge = require('lodash/merge'); | ||
var _merge2 = _interopRequireDefault(_merge); | ||
var _split = require('split'); | ||
@@ -52,6 +48,2 @@ | ||
var _isObject = require('./helpers/isObject'); | ||
var _isObject2 = _interopRequireDefault(_isObject); | ||
var _constants = require('./constants'); | ||
@@ -111,8 +103,2 @@ | ||
var config = parent.config[this.key]; | ||
if ((0, _isObject2.default)(config)) { | ||
(0, _merge2.default)(this.config, config); | ||
} | ||
this.bootstrap(); | ||
@@ -222,5 +208,3 @@ | ||
key: 'task', | ||
value: function task(title, action) { | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
value: function task(title, action, config) { | ||
if (typeof action !== 'function') { | ||
@@ -227,0 +211,0 @@ throw new TypeError('Tasks require an executable function.'); |
@@ -88,3 +88,3 @@ 'use strict'; | ||
this.context = context || {}; | ||
this.context = context; | ||
@@ -91,0 +91,0 @@ if (this.isSkipped() || !this.action) { |
@@ -95,3 +95,4 @@ 'use strict'; | ||
appName: (0, _optimal.string)().required(), | ||
configFolder: (0, _optimal.string)('./config'), | ||
configBlueprint: (0, _optimal.object)(), | ||
configFolder: (0, _optimal.string)('./configs'), | ||
extendArgv: (0, _optimal.bool)(true), | ||
@@ -98,0 +99,0 @@ pluginAlias: (0, _optimal.string)('plugin'), |
{ | ||
"name": "boost", | ||
"version": "0.31.0", | ||
"version": "0.32.0", | ||
"description": "Robust pipeline for creating build tools that separate logic into routines and tasks.", | ||
"keywords": [], | ||
"main": "./lib/index.js", | ||
"module": "./esm/index.js", | ||
"scripts": { | ||
"babel": "build-lib", | ||
"coverage": "run-tests --coverage", | ||
"eslint": "run-linter", | ||
"flow": "type-check", | ||
"jest": "run-tests", | ||
"posttest": "yarn run flow", | ||
"pretest": "yarn run eslint", | ||
"babel": "yarn run babel:cjs && yarn run babel:esm", | ||
"babel:cjs": "beemo babel ./src --out-dir ./lib --copy-files --cjs", | ||
"babel:esm": "beemo babel ./src --out-dir ./esm --copy-files --esm", | ||
"coverage": "yarn run jest --coverage", | ||
"eslint": "beemo eslint --color --report-unused-disable-directives ./src ./tests", | ||
"flow": "beemo flow check", | ||
"jest": "beemo jest --colors --logHeapUsage", | ||
"posttest": "yarn run flow --silent", | ||
"pretest": "yarn run eslint --silent", | ||
"preversion": "yarn test", | ||
"test": "yarn run jest", | ||
"postversion": "yarn run babel" | ||
"test": "yarn run jest --silent", | ||
"postversion": "yarn run babel", | ||
"prettier": "beemo prettier --write ./README.md \"./{bin,src,tests}/**/*.js\" \"./*.{md,json}\"" | ||
}, | ||
@@ -36,3 +40,3 @@ "repository": { | ||
"dependencies": { | ||
"chalk": "^2.3.0", | ||
"chalk": "^2.3.1", | ||
"elegant-spinner": "^1.0.1", | ||
@@ -53,17 +57,26 @@ "execa": "^0.9.0", | ||
"devDependencies": { | ||
"@milesj/build-tool-config": "0.50.0", | ||
"@milesj/build-tool-config": "0.62.1", | ||
"fs-extra": "^5.0.0" | ||
}, | ||
"babel": { | ||
"presets": "@milesj/build-tool-config/babel" | ||
}, | ||
"eslintConfig": { | ||
"extends": "./node_modules/@milesj/build-tool-config/eslint.js" | ||
}, | ||
"eslintIgnore": [ | ||
"esm/", | ||
"lib/", | ||
"*.min.js", | ||
"*.map" | ||
] | ||
"beemo": { | ||
"module": "@milesj/build-tool-config", | ||
"drivers": [ | ||
"babel", | ||
"eslint", | ||
"flow", | ||
{ | ||
"driver": "jest", | ||
"env": { | ||
"NODE_ENV": "test" | ||
} | ||
}, | ||
"prettier" | ||
], | ||
"flow": { | ||
"libs": [ | ||
"./boost.js.flow", | ||
"./node_modules/optimal/optimal.js.flow" | ||
] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
8
329685
46
3012
Updatedchalk@^2.3.1