mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-08 22:28:10 -05:00
esm all the things
This commit is contained in:
22
gulpfile.mjs
22
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'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user