From 7b90897f0251ac43a6cd599d326654e961730b18 Mon Sep 17 00:00:00 2001 From: nagaya Date: Thu, 22 Oct 2026 16:45:45 +0900 Subject: [PATCH 1/2] Replace coffee-script with coffeescript gulp 5 loads gulpfile.coffee only through coffeescript/register, and coffee-script is the deprecated package name. Co-Authored-By: Claude Opus 5.5 --- .mocharc.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.mocharc.json b/.mocharc.json index 84fb9a4..c8b1580 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,6 +1,6 @@ { "reporter": "spec", "ui": "bdd", - "require": "coffee-script/register", + "require": "coffeescript/register", "extension": ["coffee"] } diff --git a/package.json b/package.json index 327f3b3..1832d84 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "chai": "^6.3.0", - "coffee-script": "^1.9.0", + "coffeescript": "^2.7.0", "exports-loader": "^0.6.2", "gulp": "^5.0.1", "gulp-peg": "^0.1.2", From 6f8bcc46d58ca4416a19c7ed46127338512ea55b Mon Sep 17 00:00:00 2001 From: nagaya Date: Thu, 22 Oct 2026 16:45:46 +0900 Subject: [PATCH 2/2] Define gulp tasks with gulp.series gulp 4 removed the task dependency array. Run peg before webpack because webpack bundles dist/parser.js generated by peg. Co-Authored-By: Claude Opus 5.5 --- gulpfile.coffee | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gulpfile.coffee b/gulpfile.coffee index e8713f2..42a6e6d 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -3,10 +3,6 @@ peg = require 'gulp-peg' webpack = require 'gulp-webpack' rename = require 'gulp-rename' -gulp.task 'default', ['build'] - -gulp.task 'build', ['peg', 'webpack'] - gulp.task 'peg', -> gulp .src('src/tag-data.peg') @@ -19,3 +15,8 @@ gulp.task 'webpack', -> .src('src/index.js') .pipe(webpack(require('./webpack.config'))) .pipe(gulp.dest('./')) + +# webpack bundles dist/parser.js, so peg has to finish first +gulp.task 'build', gulp.series('peg', 'webpack') + +gulp.task 'default', gulp.series('build')