瀏覽代碼

Tests are run. Fixes #10.

Herbert Vojčík 10 年之前
父節點
當前提交
8ad9c816f2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      template.js

+ 3 - 0
template.js

@@ -75,6 +75,9 @@ exports.template = function(grunt, init, done) {
       "amber-dev": "0.0.3"
     };
     props.node_version = '>= 0.8.0';
+    props.scripts = {
+      "test": "grunt amberc:test_runner && node test_runner.js && ( rm test_runner.js || del test_runner.js )"
+    };
 
     // Generate package.json file, used by npm and grunt.
     init.writePackageJSON('package.json', props);