Skip to content

Commit df48102

Browse files
authored
Merge pull request #2888 from IgniteUI/typedoc-build-en-task
chore(gulp-typedoc): expose command which builds en doc from the repo
2 parents b887c03 + e9c7e78 commit df48102

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gulpfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ gulp.task('typedoc-build:doc:ja:localization', ['typedoc-build', 'typedoc:clean-
247247
shell.task(`typedoc ${TYPEDOC.PROJECT_PATH} --generate-from-json ${TYPEDOC.OUTPUT_PATH}/${TYPEDOC.REPO.TRANSLATIONS_REPO_NAME}/ja/ --templateStrings ${TYPEDOC.TEMPLATE_STRINGS_PATH} --localize jp`)
248248
);
249249

250+
gulp.task('typedoc-build:doc:en:localization', ['typedoc-build', 'typedoc:clean-docs-dir', 'typedoc:copy-translations'],
251+
shell.task(`typedoc ${TYPEDOC.PROJECT_PATH} --generate-from-json ${TYPEDOC.OUTPUT_PATH}/${TYPEDOC.REPO.TRANSLATIONS_REPO_NAME}/en/`)
252+
);
253+
250254
gulp.task('typedoc-serve', ['typedoc-watch'], () => {
251255
browserSync.init({
252256
server: './dist/igniteui-angular/docs/typescript'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"build:migration": "gulp copy-migrations && tsc --listEmittedFiles --project ./projects/igniteui-angular/migrations/tsconfig.json",
1818
"build:docs:export": "gulp typedoc-build:export",
1919
"build:docs:import": "gulp typedoc-build:import",
20+
"build:typedoc:ja:localization": "gulp typedoc-build:doc:ja:localization && gulp typedoc:clean-translations",
21+
"build:typedoc:en:localization": "gulp typedoc-build:doc:en:localization && gulp typedoc:clean-translations",
2022
"build:docs": "gulp typedoc-build:theme && sassdoc projects/igniteui-angular/src/lib/core/styles",
2123
"lint:lib": "tslint 'projects/igniteui-angular/src/**/*.ts' && stylelint 'projects/igniteui-angular/src/lib/core/styles'",
2224
"typedoc:dev": "gulp typedoc-serve --silent",
23-
"build:typedoc:ja:localization": "gulp typedoc-build:doc:ja:localization && gulp typedoc:clean-translations",
2425
"postinstall": "gulp copy-git-hooks"
2526
},
2627
"private": true,

0 commit comments

Comments
 (0)