@enplug/scripts
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -15,2 +15,4 @@ #! /usr/bin/env node | ||
const pkg = require(packagePath); | ||
const version = pkg.version; | ||
const destination = pkg.config.destination; | ||
@@ -20,10 +22,6 @@ const optionDefinitions = [ | ||
{ name: 'dev-server', alias: 's', type: Boolean }, | ||
{ name: 'dev', alias: 'd', type: Boolean }, | ||
{ name: 'target', alias: 't', type: String }, | ||
{ name: 'version', alias: 'v', type: String }, | ||
]; | ||
const options = commandLineArgs(optionDefinitions); | ||
const version = options.dev ? pkg.version_dev : pkg.version; | ||
const destination = options.dev ? pkg.config.destination_dev : pkg.config.destination; | ||
@@ -73,3 +71,2 @@ | ||
command += needsDevServer ? ' --watch --colors --inline --progress --host 0.0.0.0 ' : ' --bail --progress --profile '; | ||
command += ' --directory-version'; | ||
@@ -76,0 +73,0 @@ sh.exec(command, function (argument) { |
@@ -10,3 +10,2 @@ #! /usr/bin/env node | ||
{ name: 'bucket', alias: 'b', type: String }, | ||
{ name: 'dev', alias: 'd', type: Boolean }, | ||
{ name: 'prefix', alias: 'p', type: String }, | ||
@@ -19,5 +18,4 @@ { name: 'root', alias: 'r', type: String }, | ||
const options = commandLineArgs(optionDefinitions); | ||
const version = options['version']; | ||
const pkg = require(`${options['root']}/package.json`); | ||
const version = options.dev ? pkg.version_dev : pkg.version; | ||
@@ -24,0 +22,0 @@ |
{ | ||
"name": "@enplug/scripts", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Enplug scripts", | ||
@@ -5,0 +5,0 @@ "scripts": { |
3
5730
3
146