-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #870 from garden-io/gulp-b-gone
chore: remove gulp from build process where possible
- Loading branch information
Showing
7 changed files
with
170 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ ts-node-* | |
.nyc_output | ||
coverage/ | ||
gulpfile.js | ||
!garden-service/gulpfile.js | ||
*.map | ||
*.tgz | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (C) 2018 Garden Technologies, Inc. <info@garden.io> | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
const { resolve, join } = require("path") | ||
|
||
const gulp = require("gulp") | ||
const pegjs = require("gulp-pegjs") | ||
|
||
const pegjsSources = resolve(__dirname, "src", "*.pegjs") | ||
const destDir = resolve(__dirname, "build") | ||
|
||
gulp.task("pegjs", () => | ||
gulp.src(pegjsSources) | ||
.pipe(pegjs({ format: "commonjs" })) | ||
.pipe(gulp.dest(join(destDir, "src"))), | ||
) | ||
|
||
gulp.task("pegjs-watch", () => | ||
gulp.watch(pegjsSources, gulp.series(["pegjs"])), | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.