Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandyr committed May 17, 2021
1 parent 3e46049 commit 7f42b38
Show file tree
Hide file tree
Showing 106 changed files with 30,883 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Ignite UI
Copyright (c) 2019 Aleksandar Kamenov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 9 additions & 0 deletions browserslist
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
48 changes: 48 additions & 0 deletions config.json
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/"
}
}
}
172 changes: 172 additions & 0 deletions gulpfile.js
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,

);
Loading

0 comments on commit 7f42b38

Please sign in to comment.