Pārlūkot izejas kodu

for build process, "component" -> "bower" (including bower.json)

Adam Shaw 12 gadi atpakaļ
vecāks
revīzija
60b03ba1e1
4 mainītis faili ar 20 papildinājumiem un 20 dzēšanām
  1. 1 1
      .gitignore
  2. 19 19
      Gruntfile.js
  3. 0 0
      build/bower-readme.md
  4. 0 0
      build/bower.json

+ 1 - 1
.gitignore

@@ -1,6 +1,6 @@
 build/out
 build/archive
-build/component
+build/bower
 build/cdn
 dist
 

+ 19 - 19
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/*';
 
 
 

+ 0 - 0
build/component-readme.md → build/bower-readme.md


+ 0 - 0
build/component.json → build/bower.json