Permalink
Browse files

add .gitignore, .npmignore. Add test folder with a dummy test. Add de…

…v instructions to the readme. Fix the package so the tests work (on windows also), and up the version.

--HG--
rename : .hgignore => .gitignore
rename : .hgignore => .npmignore
  • Loading branch information...
1 parent 3560ff8 commit 368349902db7e2e67d396bb0a62509d7f9f46fe2 adamstallard committed Jul 22, 2012
Showing with 50 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 .npmignore
  3. +11 −0 README.md
  4. +3 −3 package.json
  5. +30 −0 test/all.js
View
@@ -0,0 +1,2 @@
+node_modules
+nbproject
View
@@ -0,0 +1,4 @@
+test
+nbproject
+\.hgignore
+\.gitignore
View
@@ -24,3 +24,14 @@ From a command prompt, type
###Javascript Projects
If used in javascript, modest depends on [jquery](http://jquery.com). Modest works well with [underscore](https://github.com/documentcloud/underscore) and [backbone](https://github.com/documentcloud/backbone).
+
+####Development How-To
+
+Change directories into your local clone and type
+
+ npm install
+
+to get the node.js dependencies. After you make your changes, please add references to your tests to tests/all.js. The tests use [vows](http://vowsjs.org). Make sure the tests still pass by running
+
+ npm test
+
View
@@ -1,8 +1,8 @@
{
"name" : "modest",
- "version" : "1.0.2",
+ "version" : "1.0.6",
"description" : "Modest is a utilty for creating, previewing, and compiling modular xhtml.",
- "keywords" : ["xhtml","html","template","preview","utility","tags","modules","browser","javascript"],
+ "keywords" : ["xhtml","html","template","preview","modular","tags","modules","browser"],
"author" : {
"name" : "Adam Stallard",
"company" : "sweedl"
@@ -26,7 +26,7 @@
},
"preferGlobal" : true,
"scripts" : {
- "test" : "node_modules/vows/bin/vows test/*.js"
+ "test" : "node node_modules/vows/bin/vows test/all.js --spec"
},
"repository" : {
"type" : "git",
View
@@ -0,0 +1,30 @@
+var assert = require('assert');
+var vows = require('vows');
+var ModestCompiler = require('../ModestCompiler.js');
+
+vows.describe('Modest Compiler')
+.addBatch({
+ "a test function with an error in it" : {
+ topic : function(){
+ x.x = 2;
+ },
+ "should throw an error" : function(e){
+ assert(e,'no error');
+ }
+ }
+})
+.export(module);
+
+//vows.describe('test2')
+//.addBatch({
+// "anoter test function with an error in it" : {
+// topic : function(){
+// x.x = 2;
+// },
+// "should throw an error" : function(e){
+// assert(e,'no error');
+// }
+// }
+//})
+//.export(module);
+

0 comments on commit 3683499

Please sign in to comment.