Browse Source

Tests are run. Fixes #10.

Herbert Vojčík 10 years ago
parent
commit
8ad9c816f2
1 changed files with 3 additions and 0 deletions
  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);