esm all the things

This commit is contained in:
Rob Larsen
2022-08-04 20:31:22 +00:00
parent ed66bae54e
commit a523fb6c2e
4 changed files with 14 additions and 14 deletions

View File

@@ -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'
)
);

View File

@@ -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",

View File

@@ -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;

View File

@@ -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;