Permalink
Browse files

bemhtml: remove makefile, add package.json

  • Loading branch information...
1 parent 0fb8518 commit b52ba76f97632222aadf55c5a8b9f4e737baa491 @indutny indutny committed Jun 14, 2012
Showing with 15 additions and 25 deletions.
  1. +2 −0 .gitignore
  2. +0 −25 blocks-common/i-bem/__html/GNUmakefile
  3. +13 −0 blocks-common/i-bem/__html/package.json
View
2 .gitignore
@@ -1,5 +1,7 @@
b
.sass-cache
+node_modules/
+npm-debug.log
.*.xsl
.*.xsl.*
View
25 blocks-common/i-bem/__html/GNUmakefile
@@ -1,25 +0,0 @@
-
-all: lib
-
-src: $(patsubst %.ometajs,%.ometajs.js,$(wildcard src/*.ometajs))
-
-%.ometajs.js: %.ometajs
- ometajs2js -i $< -o $@
-
-lib: lib/bemhtml.js
-
-lib/bemhtml.js: src
- -rm $@
- for i in \
- bemhtml.js \
- bemhtml.ometajs.js \
- ; do \
- cat $</$$i >> $@ \
- ; done
-
-tests: $(subst .bemhtml,,$(wildcard tests/*.bemhtml))
-
-tests/%:
- node tests/tests.js tests/$*.bemhtml
-
-.PHONY: all FORCE
View
13 blocks-common/i-bem/__html/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "bemhtml",
+ "version": "0.0.0",
+ "private": true,
+ "devDependencies": {
+ "xjst": "~ 0.2.33",
+ "ometajs": "~ 3.0.14",
+ "mocha": "1.1.x"
+ },
+ "scripts": {
+ "test": "mocha --ui tdd --growl --reporter spec test/*-test.js"
+ }
+}

0 comments on commit b52ba76

Please sign in to comment.