Commits

carkraus  committed 7ac2691

add st2 build sys

  • Participants
  • Parent commits 6ea4417

Comments (0)

Files changed (4)

File Gruntfile.js

   grunt.loadTasks('tasks');
 
   // Default task.
-  grunt.registerTask('default', 'lint test');
+  // grunt.registerTask('default', 'lint test');
+  grunt.registerTask('default', 'watch');
 
 };

File grunt-glue.sublime-project

+{
+	"folders":
+	[
+		{
+			"path": "/Users/carsten/Code/js/grunt-glue"
+		}
+	],
+  "build_systems":
+  [
+      {
+          "name": "grunt-glue test",
+          "cmd": [
+            "/usr/local/bin/node",
+            "${project_path}/node_modules/.bin/grunt",
+            "test",
+            "--no-color"
+          ],
+          "env": {
+            "node": "/usr/local/bin/node"
+          }
+      }
+  ]
+}

File tasks/glue.js

   // HELPERS
   // ==========================================================================
   grunt.registerHelper('glue', function() {
-    return 'glue!!!!';
+    return 'glue';
   });
 
 };

File test/glue_test.js

   'helper': function(test) {
     test.expect(1);
     // tests here
-    test.equal(grunt.helper('glue'), 'glue!!!!', 'should return the correct value.');
+    test.equal(grunt.helper('glue'), 'glue', 'should return the correct value.');
     test.done();
   }
 };