grunt-openui5
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -0,1 +1,13 @@ | ||
# 0.12.0 (2017-03-24) | ||
### Features | ||
- openui5_theme task | ||
- Support theme scopes (Belize Themes) [#55](https://github.com/SAP/grunt-openui5/pull/55) (via [SAP/less-openui5#10](https://github.com/SAP/less-openui5/pull/10)) | ||
- openui5_connect task | ||
- Support theme scopes (Belize Themes) [#57](https://github.com/SAP/grunt-openui5/pull/57) (via [SAP/less-openui5#10](https://github.com/SAP/less-openui5/pull/10)) | ||
### All changes | ||
[`0.11.0...0.12.0`](https://github.com/SAP/grunt-openui5/compare/0.11.0...0.12.0) | ||
# 0.11.0 (2016-12-01) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "grunt-openui5", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "Grunt tasks around OpenUI5", | ||
@@ -28,5 +28,5 @@ "scripts": { | ||
"connect-inject": "^0.4.0", | ||
"connect-openui5": "^0.6.0", | ||
"connect-openui5": "^0.7.0", | ||
"cors": "^2.7.1", | ||
"less-openui5": "^0.2.0", | ||
"less-openui5": "^0.3.0", | ||
"maxmin": "^2.1.0", | ||
@@ -37,3 +37,3 @@ "multiline": "^1.0.2", | ||
"slash": "^1.0.0", | ||
"uglify-js": "^2.6.1", | ||
"uglify-js": "^2.8.15", | ||
"urljoin": "^0.1.5" | ||
@@ -40,0 +40,0 @@ }, |
@@ -485,2 +485,2 @@  | ||
[Apache License 2.0](http: //www.apache.org/licenses/LICENSE-2.0) © 2016 [SAP SE](http://www.sap.com) | ||
[Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) © 2016 [SAP SE](http://www.sap.com) |
@@ -19,3 +19,3 @@ // Copyright 2016 SAP SE. | ||
var async = require('async'); | ||
var lessOpenUI5 = require('less-openui5'); | ||
var less = require('less-openui5'); | ||
@@ -34,2 +34,4 @@ module.exports = function(grunt) { | ||
var builder = new less.Builder(); | ||
// TODO check no file | ||
@@ -52,14 +54,17 @@ | ||
async.concatSeries(files, function(file, next) { | ||
// make sure parser.filename is set | ||
var parserOptions = grunt.util._.extend({}, options.parser, { | ||
filename: file | ||
}); | ||
lessOpenUI5.build(grunt.file.read(file), grunt.util._.extend({}, options, { | ||
parser: parserOptions | ||
}), function(err, result) { | ||
if (err) { | ||
nextFileObj(err); | ||
return; | ||
} | ||
if (options.rootPaths) { | ||
// Map rootpaths and get lessInputPath | ||
options.rootPaths.forEach(function(path) { | ||
if (file.indexOf(path) !== -1) { | ||
file = file.substring(path.length); | ||
} | ||
}); | ||
} | ||
builder.build(grunt.util._.extend({}, options, { | ||
lessInputPath: file | ||
})).then(function(result) { | ||
var destDir = path.dirname(fileObj.dest); | ||
@@ -81,2 +86,5 @@ | ||
process.nextTick(next); | ||
}, function(err) { | ||
nextFileObj(err); | ||
}); | ||
@@ -83,0 +91,0 @@ }, function() { |
49844
476
+ Addedatob@2.1.2(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedconnect-openui5@0.7.7(transitive)
+ Addedcss@2.2.4(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedless-openui5@0.3.10.6.0(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedurix@0.1.0(transitive)
- Removedasync@1.5.2(transitive)
- Removedconnect-openui5@0.6.0(transitive)
- Removedglob@6.0.4(transitive)
- Removedless-openui5@0.2.0(transitive)
Updatedconnect-openui5@^0.7.0
Updatedless-openui5@^0.3.0
Updateduglify-js@^2.8.15