Browse Source

Merge branch 'master' into default-namespace

Conflicts:
	template.js
Herbert Vojčík 11 years ago
parent
commit
d73a5d9468
2 changed files with 4 additions and 16 deletions
  1. 3 3
      root/Gruntfile.js
  2. 1 13
      template.js

+ 3 - 3
root/Gruntfile.js

@@ -10,7 +10,7 @@ module.exports = function(grunt) {
 
   // Default task.
   //grunt.registerTask('default', ['']);
-  grunt.registerTask('test', ['amberc:test_runner', 'execute:test_runner_run', 'clean:test_runner_clean']);
+  grunt.registerTask('test', ['amberc:test_runner', 'execute:test_runner', 'clean:test_runner']);
 
   // Project configuration.
   grunt.initConfig({
@@ -42,13 +42,13 @@ module.exports = function(grunt) {
     },
 
     execute: {
-      test_runner_run: {
+      test_runner: {
         src: ['test_runner.js']
       }
     },
 
     clean: {
-      test_runner_clean: ['test_runner.js']
+      test_runner: ['test_runner.js']
     }
   });
 

+ 1 - 13
template.js

@@ -70,11 +70,6 @@ exports.template = function(grunt, init, done) {
       validator: /^[a-z][a-z0-9\-]*$/,
       warning: 'Only lowercase letters, numbers, and - are allowed in namespaces!'
     },
-    {
-      name: 'amber_version',
-      default: '>=0.12.4',
-      message: 'Version of Amber to use. Must be >=0.12.4'
-    },
     init.prompt('author_url'),
     init.prompt('homepage'),
     init.prompt('bugs'),
@@ -91,13 +86,6 @@ exports.template = function(grunt, init, done) {
 
     // Clean up non-npm props.
     delete props.namespace;
-    var amberVersion = props.amber_version;
-    delete props.amber_version;
-
-    // Add '~' at the beginning if version is without operation (starts with number)
-    if (amberVersion.match(/^\d/)) {
-      amberVersion = '~' + amberVersion;
-    }
 
     // A few additional properties.
     props.keywords = ['Amber', 'Smalltalk'];
@@ -141,7 +129,7 @@ exports.template = function(grunt, init, done) {
         "license": props.licenses,
         "private": false,
         "dependencies": {
-            "amber": amberVersion
+            "amber": "~0.12.4"
         }
     }, null, 4));