grunt-bower-main
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-bower-main", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/benmarch/grunt-bower-main", | ||
@@ -18,4 +18,5 @@ "authors": [ | ||
"devDependencies": { | ||
"bootstrap": "~3.3.0" | ||
"bootstrap": "~3.3.0", | ||
"fontawesome": "~4.2.0" | ||
} | ||
} |
{ | ||
"name": "grunt-bower-main", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Adds only the main files from Bower components to source code.", | ||
@@ -21,7 +21,7 @@ "homepage": "https://github.com/benmarch/grunt-bower-main", | ||
"grunt-bower-install-simple": "^1.0.3", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-nodeunit": "~0.3.0", | ||
"jshint-stylish": "~0.1.5", | ||
"load-grunt-tasks": "~0.3.0" | ||
"grunt-contrib-clean": "~0.6.0", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-nodeunit": "~0.4.0", | ||
"jshint-stylish": "~1.0.0", | ||
"load-grunt-tasks": "~1.0.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "scripts": { |
@@ -0,1 +1,4 @@ | ||
[![Build Status](https://travis-ci.org/benmarch/grunt-bower-main.svg?branch=master)](https://travis-ci.org/benmarch/grunt-bower-main) | ||
[![devDependency Status](https://david-dm.org/benmarch/grunt-bower-main/dev-status.svg)](https://david-dm.org/benmarch/grunt-bower-main#info=devDependencies) | ||
# grunt-bower-main | ||
@@ -115,4 +118,5 @@ | ||
0.1.0 - Initial release | ||
0.1.1 - Globular Cluster - added support for globbing patterns in main definitions. | ||
## License | ||
Copyright (c) 2014 Ben March. Licensed under the MIT license. |
@@ -33,3 +33,4 @@ /* | ||
function addToMainList(mainFilePath) { | ||
mainFiles.push(mainFilePath); | ||
var file = grunt.file.expand(mainFilePath); | ||
mainFiles = mainFiles.concat(file); | ||
grunt.verbose.writeln('Added ' + mainFilePath + ' to main file list.'); | ||
@@ -36,0 +37,0 @@ } |
@@ -31,6 +31,7 @@ 'use strict'; | ||
copy: function (test) { | ||
test.expect(2); | ||
test.expect(3); | ||
test.ok(grunt.file.exists('copyTmp/jquery/dist/jquery.js'), 'the jquery.js dep should be present.'); | ||
test.ok(!grunt.file.exists('copyTmp/jquery/src'), 'the jquery source code should not be present.'); | ||
test.ok(grunt.file.exists('copyTmp/fontawesome/fonts/FontAwesome.otf'), 'should expand globbing patterns.'); | ||
@@ -40,6 +41,7 @@ test.done(); | ||
prune: function (test) { | ||
test.expect(2); | ||
test.expect(3); | ||
test.ok(grunt.file.exists('bower_components/jquery/dist/jquery.js'), 'the jquery.js dep should be present.'); | ||
test.ok(!grunt.file.exists('bower_components/jquery/src'), 'the jquery source code should not be present.'); | ||
test.ok(grunt.file.exists('copyTmp/fontawesome/fonts/FontAwesome.otf'), 'should expand globbing patterns.'); | ||
@@ -46,0 +48,0 @@ test.done(); |
Sorry, the diff of this file is not supported yet
188
122
12671