Parcourir la source

devkit: fix amd_namespace error; release 0.6.1

Herbert Vojčík il y a 8 ans
Parent
commit
4a312b8945
2 fichiers modifiés avec 6 ajouts et 8 suppressions
  1. 1 1
      external/amber-dev/package.json
  2. 5 7
      external/amber-dev/tasks/grunt-amberc.js

+ 1 - 1
external/amber-dev/package.json

@@ -1,6 +1,6 @@
 {
   "name": "amber-dev",
-  "version": "0.6.0",
+  "version": "0.6.1",
   "description": "Development goodies for Amber Smalltalk",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"

+ 5 - 7
external/amber-dev/tasks/grunt-amberc.js

@@ -1,8 +1,6 @@
 module.exports = function (grunt) {
 
-    var path = require('path');
-    var fs = require('fs');
-    var amberc = require('../lib/amberc.js');
+    var amberc = require('../lib/amberc');
 
     /**
      A full example entry for a Gruntfile.js is available below.
@@ -81,11 +79,11 @@ module.exports = function (grunt) {
         if (sourceFiles != null) {
             configuration.stFiles = sourceFiles;
         }
-        if (data.amdNamespace != null) {
-            configuration.amdNamespace = data.amdNamespace;
+        if (data.amd_namespace != null) {
+            configuration.amdNamespace = data.amd_namespace;
         }
-        if (data.outputDir != null) {
-            configuration.outputDir = data.outputDir;
+        if (data.output_dir != null) {
+            configuration.outputDir = data.output_dir;
         }
         if (data.jsGlobals != null) {
             configuration.jsGlobals.push.apply(configuration.jsGlobals, data.jsGlobals);