Browse Source

grunt: add target for creating parser.js

Manfred Kroehnert 12 years ago
parent
commit
a86d496be7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      grunt.js

+ 8 - 0
grunt.js

@@ -17,6 +17,14 @@ module.exports = function(grunt) {
       banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n'
     },
 
+    pegjs: {
+      amber_parser: {
+        src: 'js/parser.pegjs',
+        dest: 'js/parser.js',
+        export_var: 'smalltalk.parser'
+      }
+    },
+
     amberc: {
       _config: {
         amber_dir: process.cwd(),