From a523fb6c2e82dc9be08bdd48b0bd13c39a58ec44 Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Thu, 4 Aug 2022 20:31:22 +0000 Subject: [PATCH] esm all the things --- gulpfile.mjs | 22 +++++++++---------- package.json | 2 +- test/{file_content.js => file_content.mjs} | 2 +- .../{file_existence.js => file_existence.mjs} | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) rename test/{file_content.js => file_content.mjs} (97%) rename test/{file_existence.js => file_existence.mjs} (98%) diff --git a/gulpfile.mjs b/gulpfile.mjs index 4f08efe2..8b0febd1 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -1,11 +1,11 @@ import fs from 'fs'; import path from 'path'; import gulp from 'gulp'; -import gulpAutoPrefixer from "gulp-autoprefixer"; +import gulpAutoPrefixer from 'gulp-autoprefixer'; import gulpEslint from 'gulp-eslint'; -import gulpHeader from "gulp-header"; -import gulpRename from "gulp-rename"; -import gulpReplace from "gulp-replace"; +import gulpHeader from 'gulp-header'; +import gulpRename from 'gulp-rename'; +import gulpReplace from 'gulp-replace'; import archiver from 'archiver'; import glob from 'glob'; import { deleteSync } from 'del'; @@ -68,7 +68,7 @@ gulp.task('clean', (done) => { deleteSync([ dirs.archive, dirs.dist - ]) + ]); done(); }); @@ -143,13 +143,13 @@ gulp.task('lint:js', () => // | Main tasks | // --------------------------------------------------------------------- gulp.task( - "copy", + 'copy', gulp.series( - "copy:index.html", - "copy:license", - "copy:style", - "copy:misc", - "copy:normalize" + 'copy:index.html', + 'copy:license', + 'copy:style', + 'copy:misc', + 'copy:normalize' ) ); diff --git a/package.json b/package.json index f1961583..269c2281 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "scripts": { "build": "gulp build", - "test": "gulp archive && mocha --require @babel/register --reporter spec --timeout 5000" + "test": "gulp archive && mocha --reporter spec --timeout 5000" }, "devDependencies": { "archiver": "^5.3.1", diff --git a/test/file_content.js b/test/file_content.mjs similarity index 97% rename from test/file_content.js rename to test/file_content.mjs index f6b43c7f..b91954bb 100644 --- a/test/file_content.js +++ b/test/file_content.mjs @@ -2,7 +2,7 @@ import assert from 'assert'; import fs from 'fs'; import path from 'path'; -import pkg from './../package.json'; +import pkg from '../package.json'; const dirs = pkg['h5bp-configs'].directories; diff --git a/test/file_existence.js b/test/file_existence.mjs similarity index 98% rename from test/file_existence.js rename to test/file_existence.mjs index d7a446a1..8e62b61b 100644 --- a/test/file_existence.js +++ b/test/file_existence.mjs @@ -3,7 +3,7 @@ import fs from 'fs'; import path from 'path'; import glob from 'glob'; -import pkg from './../package.json'; +import pkg from '../package.json'; const dirs = pkg['h5bp-configs'].directories;