You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pegjs/gulpfile.js

18 lines
425 B
JavaScript

"use strict";
const { run } = require( "@futagoza/child-process" );
const { series, src, task } = require( "@futagoza/gulpx" );
const del = require( "del" );
// Generate the grammar parser.
task( "build:parser", () =>
run( "node packages/pegjs/bin/peg -c src/pegjs.config.js" )
);
// Delete the generated files.
task( "clean", () =>
del( [ "packages/pegjs/dist", "website/js/*-bundle.js", "examples/*.js" ] )
);