basisjs-tools-build
Advanced tools
Comparing version 1.11.2 to 1.11.3
@@ -0,1 +1,6 @@ | ||
## 1.11.3 (September 18, 2017) | ||
- Update `basis.resource` with non-string argument exception such way, that it works with relative paths as well as namespace basis paths (@istrel, #26) | ||
- Minor fixes | ||
## 1.11.2 (September 11, 2017) | ||
@@ -2,0 +7,0 @@ |
var clap = require.main.require('clap'); | ||
var utils = require('./common/utils'); | ||
var commands = { | ||
extract: command('extract'), | ||
find: command('find'), | ||
lint: command('lint'), | ||
build: command('build') | ||
}; | ||
@@ -26,17 +32,2 @@ function command(name){ | ||
var commands = { | ||
extract: command('extract'), | ||
find: command('find'), | ||
lint: command('lint'), | ||
build: command('build') | ||
}; | ||
// | ||
// registrate commands | ||
// | ||
// | ||
// export | ||
// | ||
module.exports = { | ||
@@ -43,0 +34,0 @@ run: run, |
@@ -543,5 +543,13 @@ var html_at = require('basisjs-tools-ast').html; | ||
{ | ||
var basisDir = path.dirname(flow.js.basisScript); | ||
var relativeToBasis = path.relative(basisDir, this.file.filename).replace(/\\/g, '/'); | ||
// FIXME: temporary solution to avoid warnings in basis.template/basis.l10n that using | ||
// basis.resource to get templates & dictionary dinamically | ||
if (!/^basis\.(template|l10n|utils\.source)(\.|$)/.test(this.file.namespace)) | ||
if ( | ||
relativeToBasis !== 'basis/l10n.js' && | ||
relativeToBasis !== 'basis/template.js' && | ||
relativeToBasis !== 'basis/template/declaration.js' && | ||
relativeToBasis !== 'basis/utils/source.js' | ||
) | ||
flow.warn({ | ||
@@ -548,0 +556,0 @@ file: this.file.relpath, |
{ | ||
"name": "basisjs-tools-build", | ||
"title": "Basis.js build tools", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"homepage": "https://github.com/basisjs/basisjs-tools", | ||
@@ -44,3 +44,3 @@ "description": "Build tools for basis.js framework", | ||
"chalk": "^1.1.3", | ||
"clap": "^1.2.0", | ||
"clap": "^1.2.2", | ||
"es6-promise-polyfill": "^1.2.0", | ||
@@ -47,0 +47,0 @@ "fixed-width-string": "^1.0.0", |
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
300761
9116
Updatedclap@^1.2.2