Explorar o código

npm run build:parser

Herbert Vojčík %!s(int64=8) %!d(string=hai) anos
pai
achega
ea0064fe43
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      package.json

+ 3 - 0
package.json

@@ -26,6 +26,9 @@
     "node": "0.10.x || 0.12.x || >=4.0.0"
   },
   "scripts": {
+    "build:parser:begin": "node -e \"process.stdout.write('define([\\'./boot\\'], function($boot) {\\nvar $globals = $boot.globals, nil = $boot.nil;\\n');\"",
+    "build:parser": "(npm run -s build:parser:begin && pegjs --cache --export-var $globals.SmalltalkParser < support/parser.pegjs && npm run -s build:parser:end) > support/parser.js",
+    "build:parser:end": "node -e \"process.stdout.write('});');\"",
     "test": "npm run test:sunit && npm run test:e2e",
     "test:sunit": "grunt test",
     "test:e2e": "(cd external && cd amber-cli && npm test)"