From f63f8b2931be368b0b008b679938d618c017a62b Mon Sep 17 00:00:00 2001 From: Damian Janowski Date: Fri, 25 Jan 2013 11:27:48 -0300 Subject: [PATCH] Add support for Component.js. --- .gitignore | 4 +++- Makefile | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1bd7226..e05c629 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -node_modules *.swp +node_modules +/build +/component.json diff --git a/Makefile b/Makefile index 09b69fe..55fe30a 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,13 @@ +build: boosh components + boosh: - node make/build.js \ No newline at end of file + node make/build.js + +components: + @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 + component build