Skip to content

Commit d3b52b6

Browse files
committed
build(gulp): convert docs gulp task to ESM syntax
1 parent 9f9e951 commit d3b52b6

File tree

4 files changed

+106
-133
lines changed

4 files changed

+106
-133
lines changed

package-lock.json

Lines changed: 98 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"copy-webpack-plugin": "^4.6.0",
7676
"eslint": "^9.9.1",
7777
"gulp": "^4.0.2",
78-
"gulp-markdown": "^6.0.0",
78+
"gulp-markdown": "^8.0.0",
7979
"gulp-rename": "^1.4.0",
8080
"gulp-transform": "^3.0.5",
8181
"jasmine-core": "~3.99.1",

tools/gulp/tasks/docs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { dest, task, parallel, src } from 'gulp';
22
import * as path from 'path';
33

4-
const markdown = require('gulp-markdown');
5-
const transform = require('gulp-transform');
6-
const hljs = require('highlight.js');
7-
import * as rename from 'gulp-rename';
4+
import markdown from 'gulp-markdown';
5+
import transform from 'gulp-transform';
6+
import hljs from 'highlight.js';
7+
import rename from 'gulp-rename';
88

99
const markdownOptions = {
1010
// Add syntax highlight using highlight.js

tools/gulp/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
"types": [
1818
"node"
1919
],
20-
"paths": {
21-
22-
},
23-
"baseUrl": "."
20+
"baseUrl": ".",
21+
"allowSyntheticDefaultImports": true
2422
},
2523
"files": [
2624
"gulpfile.ts"
2725
]
28-
}
26+
}

0 commit comments

Comments
 (0)