Permalink
Browse files

Merge pull request #113 from piteer1/master

Corrected component.js generation script, updated smoosh
  • Loading branch information...
rvagg committed Jun 14, 2014
2 parents c8cca21 + 5ff47ae commit 1b394c7ba8559b1bf167009fe9ff1575321dd2a1
Showing with 27 additions and 12 deletions.
  1. +1 −6 Makefile
  2. +12 −5 component.json
  3. +13 −0 make/component.js
  4. +1 −1 package.json
View
@@ -4,12 +4,7 @@ boosh:
node make/build.js
component_json:
- @echo '{' > component.json
- @egrep '(name|description|version|keywords)' package.json >> component.json
- @echo ' , "main": "bean.js"' >> component.json
- @echo ' , "scripts": ["bean.js"]' >> component.json
- @echo ' , "repo": "https://github.com/fat/bean"' >> component.json
- @echo '}' >> component.json
+ node make/component.js
components: component_json
component build
View
@@ -2,8 +2,15 @@
"name": "bean",
"description": "A small, fast, framework-agnostic event manager",
"version": "1.0.14",
- "keywords": [ "ender", "events", "event", "dom" ]
- , "main": "bean.js"
- , "scripts": ["bean.js"]
- , "repo": "https://github.com/fat/bean"
-}
+ "keywords": [
+ "ender",
+ "events",
+ "event",
+ "dom"
+ ],
+ "main": "bean.js",
+ "scripts": [
+ "bean.js"
+ ],
+ "repo": "https://github.com/fat/bean"
+}
View
@@ -0,0 +1,13 @@
+var fs = require("fs");
+var data = fs.readFileSync("package.json", "utf8");
+var packagejson = JSON.parse(data);
+fs.writeFileSync("component.json", JSON.stringify({
+ name: packagejson.name,
+ description: packagejson.description,
+ version: packagejson.version,
+ keywords: packagejson.keywords,
+ main: "bean.js",
+ scripts: ["bean.js"],
+ repo: "https://github.com/fat/bean"
+ }, null, 2)
+);
View
@@ -21,7 +21,7 @@
"main": "./bean.js",
"devDependencies": {
"buster": "~0.6.2",
- "smoosh": "~0.3.2",
+ "smoosh": "~0.4.1",
"qwery": "~3.3.11"
},
"ender": "./src/ender.js"

0 comments on commit 1b394c7

Please sign in to comment.