From 91aef10687ca55040880070f55e3f1dbdf100362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Wed, 13 Nov 2024 23:22:38 +0100 Subject: [PATCH] Update the build system --- gulpfile.coffee | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index 8d43e9e..112fd8b 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -2,12 +2,10 @@ import gulp from "gulp" import {spawn} from "node:child_process" import {readdir, readFile, rm, writeFile} from "node:fs/promises" import {join} from "node:path" -import {env} from "node:process" # Builds the project. export build = -> - sourcemaps = if env.NODE_ENV is "production" then [] else ["--map"] - await npx "coffee", "--compile", sourcemaps..., "--no-header", "--output", "lib", "src" + await npx "coffee", "--compile", "--no-header", "--output", "lib", "src" # Deletes all generated files. export clean = -> @@ -16,7 +14,6 @@ export clean = -> # Packages the project. export dist = -> - env.NODE_ENV = "production" await build() await npx "rollup", "--config=etc/rollup.js" await run "git", "update-index", "--chmod=+x", "bin/setup_ant.js" @@ -34,7 +31,6 @@ export publish = -> # Runs the test suite. export test = -> - env.NODE_ENV = "test" await npx "coffee", "--compile", "--map", "--no-header", "--output", "lib", "src", "test" await run "node", "--enable-source-maps", "--test"