Browse Source

grunt: add an amberc:all target which is the default

this target is going to get used until compiling
multiple targets in a row works without issues
Manfred Kroehnert 12 years ago
parent
commit
9529c5095d
1 changed files with 14 additions and 1 deletions
  1. 14 1
      grunt.js

+ 14 - 1
grunt.js

@@ -8,7 +8,7 @@ module.exports = function(grunt) {
   grunt.registerTask('build:deploy', 'shell:compileDeploy concat:deploy min');
   grunt.registerTask('build:dev', 'shell:compileDev concat:css imageEmbed mincss css2js concat:dev');
 //  grunt.registerTask('default', 'build:deploy build:dev');
-  grunt.registerTask('default', 'amberc');
+  grunt.registerTask('default', 'amberc:all');
 
   grunt.initConfig({
     pkg: '<json:package.json>',
@@ -32,6 +32,19 @@ module.exports = function(grunt) {
         amber_dir: process.cwd(),
         closure_jar: ''
       },
+      all: {
+        working_dir: 'st',
+        target_dir : 'js',
+        src: ['Kernel-Objects.st', 'Kernel-Classes.st', 'Kernel-Methods.st', 'Kernel-Collections.st',
+              'Kernel-Exceptions.st', 'Kernel-Transcript.st', 'Kernel-Announcements.st',
+              'Importer-Exporter.st', 'Compiler-Exceptions.st', 'Compiler-Core.st', 'Compiler-AST.st',
+              'Compiler-IR.st', 'Compiler-Inlining.st', 'Compiler-Semantic.st',
+              'Canvas.st', 'SUnit.st',
+              'IDE.st', 'Documentation.st',
+              'Kernel-Tests.st', 'Compiler-Tests.st',
+              ],
+        deploy: true
+      },
       amber_kernel: {
         working_dir: 'st',
         target_dir : 'js',