Move component definitions into sub directory

This commit is contained in:
kpdecker
2013-11-03 15:49:05 -06:00
parent ded0a1617f
commit c70e897f1c
8 changed files with 64 additions and 21 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "handlebars.js",
"version": "1.0.0",
"main": "dist/handlebars.js",
"main": "handlebars.js",
"ignore": [
"node_modules",
"components"
+9
View File
@@ -0,0 +1,9 @@
{
"name": "handlebars",
"repo": "components/handlebars.js",
"version": "1.0.0",
"main": "handlebars.js",
"scripts": [
"handlebars.js"
]
}
+35
View File
@@ -0,0 +1,35 @@
{
"name": "components/handlebars.js",
"description": "Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be.",
"homepage": "http://handlebarsjs.com",
"license": "MIT",
"type": "component",
"keywords": [
"handlebars",
"mustache",
"html"
],
"authors": [
{
"name": "Chris Wanstrath",
"homepage": "http://chriswanstrath.com"
}
],
"require": {
"robloach/component-installer": "*"
},
"extra": {
"component": {
"name": "handlebars",
"scripts": [
"handlebars.js"
],
"files": [
"handlebars.runtime.js"
],
"shim": {
"exports": "Handlebars"
}
}
}
}
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
require 'json'
package = JSON.parse(File.read('package.json'))
package = JSON.parse(File.read('bower.json'))
Gem::Specification.new do |gem|
gem.name = "handlebars-source"
@@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.version = package["version"]
gem.files = [
'dist/handlebars.js',
'dist/handlebars.runtime.js',
'lib/handlebars/source.rb'
'handlebars.js',
'handlebars.runtime.js',
'source.rb'
]
end
@@ -12,6 +12,6 @@
<tags>handlebars mustache template html</tags>
</metadata>
<files>
<file src="dist\handlebars.js" target="Content\Scripts" />
<file src="handlebars.js" target="Content\Scripts" />
</files>
</package>
+11
View File
@@ -0,0 +1,11 @@
module Handlebars
module Source
def self.bundled_path
File.expand_path("handlebars.js", __FILE__)
end
def self.runtime_bundled_path
File.expand_path("handlebars.runtime.js", __FILE__)
end
end
end
-11
View File
@@ -1,11 +0,0 @@
module Handlebars
module Source
def self.bundled_path
File.expand_path("../../../dist/handlebars.js", __FILE__)
end
def self.runtime_bundled_path
File.expand_path("../../../dist/handlebars.runtime.js", __FILE__)
end
end
end
+3 -4
View File
@@ -28,10 +28,9 @@ module.exports = function(grunt) {
grunt.task.run(['build', 'tag']);
async.each([
['lib/handlebars/base.js', /Handlebars.VERSION = "(.*)";/, 'Handlebars.VERSION = "' + version + '";'],
['package.json', /"version":.*/, '"version": "' + version + '",'],
['bower.json', /"version":.*/, '"version": "' + version + '",'],
['handlebars.js.nuspec', /<version>.*<\/version>/, '<version>' + version + '</version>']
['lib/handlebars/base.js', /var VERSION = "(.*)";/, 'var VERSION = "' + version + '";'],
['components/bower.json', /"version":.*/, '"version": "' + version + '",'],
['components/handlebars.js.nuspec', /<version>.*<\/version>/, '<version>' + version + '</version>']
],
function(args, callback) {
replace.apply(undefined, args);