瀏覽代碼

commit creates AMD packages

Dependencies still not present, must be by shimmed by hand.
Herbert Vojčík 11 年之前
父節點
當前提交
bf62438885
共有 3 個文件被更改,包括 8 次插入8 次删除
  1. 2 2
      js/Importer-Exporter.deploy.js
  2. 4 4
      js/Importer-Exporter.js
  3. 2 2
      st/Importer-Exporter.st

+ 2 - 2
js/Importer-Exporter.deploy.js

@@ -310,7 +310,7 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1,$2;
 $1=aStream;
-_st($1)._nextPutAll_("})(global_smalltalk,global_nil,global__st);");
+_st($1)._nextPutAll_("});");
 $2=_st($1)._lf();
 return self}, function($ctx1) {$ctx1.fill(self,"exportPackageEpilogueOn:",{aStream:aStream},smalltalk.Exporter)})},
 messageSends: ["nextPutAll:", "lf"]}),
@@ -355,7 +355,7 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1,$2;
 $1=aStream;
-_st($1)._nextPutAll_("(function(smalltalk,nil,_st){");
+_st($1)._nextPutAll_("define([\x22smalltalk\x22,\x22nil\x22,\x22_st\x22], function(smalltalk,nil,_st){");
 $2=_st($1)._lf();
 return self}, function($ctx1) {$ctx1.fill(self,"exportPackagePrologueOn:",{aStream:aStream},smalltalk.Exporter)})},
 messageSends: ["nextPutAll:", "lf"]}),

+ 4 - 4
js/Importer-Exporter.js

@@ -373,11 +373,11 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1,$2;
 $1=aStream;
-_st($1)._nextPutAll_("})(global_smalltalk,global_nil,global__st);");
+_st($1)._nextPutAll_("});");
 $2=_st($1)._lf();
 return self}, function($ctx1) {$ctx1.fill(self,"exportPackageEpilogueOn:",{aStream:aStream},smalltalk.Exporter)})},
 args: ["aStream"],
-source: "exportPackageEpilogueOn: aStream\x0a\x09aStream\x0a\x09\x09nextPutAll: '})(global_smalltalk,global_nil,global__st);';\x0a\x09\x09lf",
+source: "exportPackageEpilogueOn: aStream\x0a\x09aStream\x0a\x09\x09nextPutAll: '});';\x0a\x09\x09lf",
 messageSends: ["nextPutAll:", "lf"],
 referencedClasses: []
 }),
@@ -428,11 +428,11 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 var $1,$2;
 $1=aStream;
-_st($1)._nextPutAll_("(function(smalltalk,nil,_st){");
+_st($1)._nextPutAll_("define([\x22smalltalk\x22,\x22nil\x22,\x22_st\x22], function(smalltalk,nil,_st){");
 $2=_st($1)._lf();
 return self}, function($ctx1) {$ctx1.fill(self,"exportPackagePrologueOn:",{aStream:aStream},smalltalk.Exporter)})},
 args: ["aStream"],
-source: "exportPackagePrologueOn: aStream\x0a\x09aStream\x0a\x09\x09nextPutAll: '(function(smalltalk,nil,_st){';\x0a\x09\x09lf",
+source: "exportPackagePrologueOn: aStream\x0a\x09aStream\x0a\x09\x09nextPutAll: 'define([\x22smalltalk\x22,\x22nil\x22,\x22_st\x22], function(smalltalk,nil,_st){';\x0a\x09\x09lf",
 messageSends: ["nextPutAll:", "lf"],
 referencedClasses: []
 }),

+ 2 - 2
st/Importer-Exporter.st

@@ -187,7 +187,7 @@ exportPackageDefinitionOf: package on: aStream
 
 exportPackageEpilogueOn: aStream
 	aStream
-		nextPutAll: '})(global_smalltalk,global_nil,global__st);';
+		nextPutAll: '});';
 		lf
 !
 
@@ -205,7 +205,7 @@ exportPackageExtensionsOf: package on: aStream
 
 exportPackagePrologueOn: aStream
 	aStream
-		nextPutAll: '(function(smalltalk,nil,_st){';
+		nextPutAll: 'define(["smalltalk","nil","_st"], function(smalltalk,nil,_st){';
 		lf
 ! !