-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e46049
commit 7f42b38
Showing
106 changed files
with
30,883 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed | ||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not dead | ||
# IE 9-11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"en": { | ||
"development": { | ||
"url": "https://dev.infragistics.com", | ||
"gaID": "GTM-WLXLBZD", | ||
"versions": "https://staging.infragistics.com/angular-docs/angular-api-docs-versions.json", | ||
"typedoc_default_url": "https://staging.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://staging.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
}, | ||
"staging": { | ||
"url": "https://staging.infragistics.com", | ||
"gaID": "GTM-NCKNPN", | ||
"versions": "https://staging.infragistics.com/angular-docs/angular-api-docs-versions.json", | ||
"typedoc_default_url": "https://staging.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://staging.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
}, | ||
"production": { | ||
"url": "https://www.infragistics.com", | ||
"gaID": "GTM-T65CF7", | ||
"versions": "https://www.infragistics.com/angular-docs/angular-api-docs-versions-prod.json", | ||
"typedoc_default_url": "https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://www.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
} | ||
}, | ||
"jp": { | ||
"development": { | ||
"url": "https://jp.dev.infragistics.com", | ||
"gaID": "GTM-NNHVMC7", | ||
"versions": "https://jp.staging.infragistics.com/angular-docs/angular-api-docs-versions-jp.json", | ||
"typedoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
}, | ||
"staging": { | ||
"url": "https://jp.staging.infragistics.com", | ||
"gaID": "GTM-WLWSDK", | ||
"versions": "https://jp.staging.infragistics.com/angular-docs/angular-api-docs-versions-jp.json", | ||
"typedoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
}, | ||
"production": { | ||
"url": "https://jp.infragistics.com", | ||
"gaID": "GTM-KVNSWJ", | ||
"versions": "https://jp.infragistics.com/angular-docs/angular-api-docs-versions-prod-jp.json", | ||
"typedoc_default_url": "https://jp.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/", | ||
"sassdoc_default_url": "https://jp.infragistics.com/products/ignite-ui-angular/docs/sass/latest/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
const { src, dest, parallel } = require('gulp'); | ||
const { series } = require('gulp'); | ||
const del = require('del'); | ||
const path = require('path'); | ||
const slash = require('slash'); | ||
const ts = require('gulp-typescript'); | ||
const concat = require('gulp-concat'); | ||
const postcss = require('gulp-postcss'); | ||
const autoprefixer = require('autoprefixer'); | ||
const sourcemaps = require('gulp-sourcemaps'); | ||
const sass = require('gulp-sass'); | ||
const shell = require('gulp-shell'); | ||
|
||
|
||
const TYPEDOC_THEME = { | ||
SRC: slash(path.join(__dirname, 'src')), | ||
DIST: slash(path.join(__dirname, 'dist')), | ||
STYLES: { | ||
ENTRY: slash(path.join('assets', 'css', 'main.sass')), | ||
OUT: slash(path.join('assets','css')), | ||
MAPS: slash(__dirname), | ||
CONFIG: { | ||
outputStyle: 'compressed' | ||
} | ||
} | ||
}; | ||
|
||
const typedocCopyImages = () => { | ||
return src(slash(path.join(TYPEDOC_THEME.SRC, 'assets', 'images/**/*.{png,gif,jpg,svg}'))) | ||
.pipe(dest(slash(path.join(TYPEDOC_THEME.DIST, 'assets', 'images')))); | ||
}; | ||
typedocCopyImages.displayName = 'typedoc:copy-images'; | ||
|
||
const typedocCleanImages = async () => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'assets', 'images')), { force: true }); | ||
}; | ||
typedocCleanImages.displayName = 'typedoc:clean-images'; | ||
|
||
const typedocCopyHBS = () => { | ||
return src([ | ||
slash(path.join(TYPEDOC_THEME.SRC, 'layouts/**/*')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'partials/**/*')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'templates/**/*')), | ||
], { | ||
base: TYPEDOC_THEME.SRC | ||
}) | ||
.pipe(dest(TYPEDOC_THEME.DIST)); | ||
}; | ||
typedocCopyHBS.displayName = 'typedoc:copy-hbs'; | ||
|
||
const typedocCleanHBS = async () => { | ||
return await del([ | ||
slash(path.join(TYPEDOC_THEME.DIST, 'layouts')), | ||
slash(path.join(TYPEDOC_THEME.DIST, 'partials')), | ||
slash(path.join(TYPEDOC_THEME.DIST, 'templates')), | ||
], { force: true }); | ||
}; | ||
typedocCleanHBS.displayName = 'typedoc:clean-hbs'; | ||
|
||
const typedocCopyStyles = () => { | ||
const prefixer = postcss([autoprefixer({ | ||
overrideBrowserslist: ['last 5 versions', '> 3%'], | ||
cascade: false, | ||
grid: false | ||
})]); | ||
|
||
return src(slash(path.join(TYPEDOC_THEME.SRC, TYPEDOC_THEME.STYLES.ENTRY))) | ||
.pipe(sourcemaps.init()) | ||
.pipe(sass.sync(TYPEDOC_THEME.STYLES.CONFIG).on('error', sass.logError)) | ||
.pipe(prefixer) | ||
.pipe(sourcemaps.write('./')) | ||
.pipe(dest(slash(path.join(TYPEDOC_THEME.DIST, TYPEDOC_THEME.STYLES.OUT)))); | ||
}; | ||
typedocCopyStyles.displayName = 'typedoc:copy-styles'; | ||
|
||
const typedocCleanStyles = async () => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'assets', 'css')), { force: true }); | ||
}; | ||
typedocCleanStyles.displayName = 'typedoc:clean-styles'; | ||
|
||
const typedocMinifyJS = (cb) => { | ||
src([ | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'lib', 'jquery-2.1.1.min.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'lib', 'underscore-1.6.0.min.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'lib', 'backbone-1.1.2.min.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'src', 'navigation/igviewer.common.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'src', 'navigation/igviewer.renderingService.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'src', 'navigation/nav-initializer.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'src', 'versioning/tag-versions.req.js')), | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets','js', 'main.js')) | ||
]) | ||
.pipe(concat('main.js')) | ||
.pipe(dest(slash(path.join(TYPEDOC_THEME.DIST, 'assets', 'js')))); | ||
|
||
cb(); | ||
}; | ||
typedocMinifyJS.displayName = 'typedoc:minify-js'; | ||
|
||
const buildHelpers = () => { | ||
return src([ | ||
slash(path.join(TYPEDOC_THEME.SRC, 'helpers', 'getConfigData.ts')) | ||
]) | ||
.pipe(ts({ | ||
target: 'es2017', | ||
moduleResolution: 'node', | ||
module: 'commonjs', | ||
})) | ||
.pipe(dest(path.join(TYPEDOC_THEME.DIST, 'helpers'))); | ||
} | ||
|
||
const typedocCleanThemeJS = async() => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'theme.js')), { force: true }); | ||
}; | ||
typedocCleanThemeJS.displayName = 'typedoc:clean-theme-js'; | ||
|
||
const typedocCleanHelpers = async() => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'helpers')), { force: true }); | ||
}; | ||
typedocCleanThemeJS.displayName = 'typedoc:clean-theme-js'; | ||
|
||
const typedocCleanJS = async () => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'assets', 'js')), { force: true }); | ||
}; | ||
typedocCleanJS.displayName = 'typedoc:clean-js'; | ||
|
||
const typedocBuildTS = async () => { | ||
const buildTs = shell.task(`tsc --project ${path.join(__dirname, 'tsconfig.json')}`); | ||
return await buildTs(); | ||
}; | ||
typedocBuildTS.displayName = 'typedoc:build-ts'; | ||
|
||
const typedocBuildThemeTS = () => { | ||
return src( | ||
slash(path.join(TYPEDOC_THEME.SRC, 'assets', 'js', 'src', 'theme.ts')) | ||
) | ||
.pipe(ts({ | ||
target: 'es2017', | ||
moduleResolution: 'node', | ||
module: 'commonjs' | ||
})) | ||
.pipe(dest(TYPEDOC_THEME.DIST)); | ||
}; | ||
typedocBuildThemeTS.displayName = 'typedoc:build-theme-ts'; | ||
|
||
const typedocCopyConfig = () => { | ||
const themePath = slash(path.join(__dirname, 'config.json')); | ||
return src(themePath) | ||
.pipe(dest(TYPEDOC_THEME.DIST)); | ||
}; | ||
typedocCopyConfig.displayName = 'typedoc:copy-config'; | ||
|
||
const typedocCleanConfig = async () => { | ||
return await del(slash(path.join(TYPEDOC_THEME.DIST, 'config.json')), { force: true }); | ||
}; | ||
typedocCleanConfig.dispalyName = 'typedoc:clean-config'; | ||
|
||
module.exports.typedocBuild = parallel( | ||
series(typedocCleanImages, typedocCopyImages), | ||
series(typedocCleanStyles, typedocCopyStyles), | ||
|
||
series( | ||
series(typedocCleanJS, typedocCleanThemeJS, typedocCleanHelpers), | ||
typedocBuildThemeTS, | ||
typedocBuildTS, | ||
typedocMinifyJS, | ||
buildHelpers), | ||
|
||
series(typedocCleanHBS, typedocCopyHBS), | ||
series(typedocCleanConfig, typedocCopyConfig), | ||
typedocBuildThemeTS, | ||
|
||
); |
Oops, something went wrong.