From 60b03ba1e18daf7ce74e3949b8fbd4bf1e2930be Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Mon, 26 Aug 2013 22:56:09 -0700 Subject: [PATCH] for build process, "component" -> "bower" (including bower.json) --- .gitignore | 2 +- Gruntfile.js | 38 +++++++++---------- .../{component-readme.md => bower-readme.md} | 0 build/{component.json => bower.json} | 0 4 files changed, 20 insertions(+), 20 deletions(-) rename build/{component-readme.md => bower-readme.md} (100%) rename build/{component.json => bower.json} (100%) diff --git a/.gitignore b/.gitignore index 2de989a..5f83301 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ build/out build/archive -build/component +build/bower build/cdn dist diff --git a/Gruntfile.js b/Gruntfile.js index 185f1ea..7db6c42 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -164,46 +164,46 @@ module.exports = function(grunt) { - /* Bower Component (http://twitter.github.com/bower/) + /* Bower Component (http://bower.io/) ----------------------------------------------------------------------------------------------------*/ - grunt.registerTask('component', 'Build the FullCalendar component for the Bower package manager', [ + grunt.registerTask('bower', 'Build the FullCalendar Bower component', [ 'clean:modules', - 'clean:component', + 'clean:bower', 'modules', - 'copy:componentModules', - 'copy:componentReadme', - 'componentConfig' + 'copy:bowerModules', + 'copy:bowerReadme', + 'bowerConfig' ]); - // copy FullCalendar modules into component root - config.copy.componentModules = { + // copy FullCalendar modules into bower component's root + config.copy.bowerModules = { expand: true, cwd: 'build/out/', src: [ '*.js', '*.css', '!jquery*' ], - dest: 'build/component/' + dest: 'build/bower/' }; - // copy the component-specific README - config.copy.componentReadme = { - src: 'build/component-readme.md', - dest: 'build/component/readme.md' + // copy the bower-specific README + config.copy.bowerReadme = { + src: 'build/bower-readme.md', + dest: 'build/bower/readme.md' }; - // assemble the component's config from existing configs - grunt.registerTask('componentConfig', function() { - var config = grunt.file.readJSON('build/component.json'); + // assemble the bower config from existing configs + grunt.registerTask('bowerConfig', function() { + var bowerConfig = grunt.file.readJSON('build/bower.json'); grunt.file.write( - 'build/component/component.json', + 'build/bower/bower.json', JSON.stringify( - _.extend({}, pluginConfig, config), // combine 2 configs + _.extend({}, pluginConfig, bowerConfig), // combine 2 configs null, // replacer 2 // indent ) ); }); - config.clean.component = 'build/component/*'; + config.clean.bower = 'build/bower/*'; diff --git a/build/component-readme.md b/build/bower-readme.md similarity index 100% rename from build/component-readme.md rename to build/bower-readme.md diff --git a/build/component.json b/build/bower.json similarity index 100% rename from build/component.json rename to build/bower.json