admin-lte 4.0.0-alpha1 → 4.0.0-alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bundlewatch.config.json +8 -8
- package/.cache/.eslintcache +1 -0
- package/.cache/.stylelintcache +1 -0
- package/.eslintignore +1 -0
- package/.eslintrc.json +16 -0
- package/.gitpod.yml +1 -1
- package/.idea/AdminLTE.iml +4 -0
- package/.idea/codeStyles/Project.xml +24 -0
- package/.idea/dbnavigator.xml +421 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/.stylelintrc.json +47 -0
- package/LICENSE +1 -1
- package/README.md +6 -7
- package/dist/assets/img/AdminLTEFullLogo.png +0 -0
- package/dist/css/adminlte.css +2716 -2710
- package/dist/css/adminlte.css.map +1 -1
- package/dist/css/adminlte.min.css +2 -2
- package/dist/css/adminlte.min.css.map +1 -1
- package/dist/css/{rtl/adminlte.rtl.css → adminlte.rtl.css} +2715 -2710
- package/dist/css/adminlte.rtl.css.map +1 -0
- package/dist/css/adminlte.rtl.min.css +7 -0
- package/dist/css/adminlte.rtl.min.css.map +1 -0
- package/dist/js/adminlte.js +204 -233
- package/dist/js/adminlte.js.map +1 -1
- package/dist/js/adminlte.min.js +6 -1
- package/dist/js/adminlte.min.js.map +1 -1
- package/dist/pages/UI/timeline.html +869 -0
- package/dist/pages/docs/browser-support.html +755 -0
- package/dist/pages/docs/color-mode.html +1067 -0
- package/dist/pages/docs/components/main-header.html +1137 -0
- package/dist/pages/docs/components/main-sidebar.html +858 -0
- package/dist/pages/docs/faq.html +743 -0
- package/dist/pages/docs/how-to-contribute.html +783 -0
- package/dist/pages/docs/introduction.html +767 -0
- package/dist/pages/docs/javascript/treeview.html +762 -0
- package/dist/pages/docs/layout.html +788 -0
- package/dist/pages/docs/license.html +746 -0
- package/dist/pages/examples/lockscreen.html +107 -0
- package/dist/pages/examples/login-v2.html +148 -0
- package/dist/pages/examples/login.html +128 -196
- package/dist/pages/examples/register-v2.html +155 -0
- package/dist/pages/examples/register.html +131 -199
- package/dist/pages/forms/general.html +1065 -652
- package/dist/pages/index.html +1320 -0
- package/dist/pages/index2.html +1776 -0
- package/dist/pages/index3.html +1111 -0
- package/dist/pages/layout/collapsed-sidebar.html +766 -0
- package/dist/pages/layout/fixed-complete.html +867 -0
- package/dist/pages/layout/fixed-sidebar.html +749 -654
- package/dist/pages/layout/layout-rtl.html +766 -0
- package/dist/pages/layout/logo-switch.html +433 -0
- package/dist/pages/layout/sidebar-mini.html +766 -0
- package/dist/pages/layout/unfixed-sidebar.html +747 -654
- package/dist/pages/tables/simple.html +1049 -946
- package/dist/pages/widgets/cards.html +974 -713
- package/dist/pages/widgets/info-box.html +1062 -966
- package/dist/pages/widgets/small-box.html +792 -694
- package/index.html +6 -15
- package/package.json +59 -39
- package/src/assets/img/AdminLTEFullLogo.png +0 -0
- package/src/config/assets.config.mjs +8 -0
- package/src/config/astro.config.mjs +19 -0
- package/src/config/postcss.config.mjs +15 -0
- package/src/config/rollup.config.js +20 -0
- package/src/html/.eslintrc.json +24 -0
- package/src/html/.prettierrc.js +11 -0
- package/src/html/.tsconfig.json +4 -0
- package/src/html/components/_head.astro +47 -0
- package/src/html/components/_scripts.astro +51 -0
- package/src/html/components/dashboard/_footer.astro +18 -0
- package/src/html/components/dashboard/_sidenav.astro +553 -0
- package/src/html/components/dashboard/_topbar.astro +213 -0
- package/src/html/components/docs/browser-support.mdx +23 -0
- package/src/html/components/docs/color-mode.mdx +169 -0
- package/src/{partials/dashboard/_topbar.html → html/components/docs/components/main-header.mdx} +67 -67
- package/src/html/components/docs/components/main-sidebar.mdx +129 -0
- package/src/html/components/docs/faq.mdx +11 -0
- package/src/html/components/docs/how-to-contribute.mdx +34 -0
- package/src/html/components/docs/introduction.mdx +60 -0
- package/src/html/components/docs/license.mdx +9 -0
- package/src/html/components/javascript/treeview.mdx +39 -0
- package/src/html/env.d.ts +1 -0
- package/src/html/pages/UI/timeline.astro +221 -0
- package/src/html/pages/docs/browser-support.astro +71 -0
- package/src/html/pages/docs/color-mode.astro +271 -0
- package/src/html/pages/docs/components/main-header.astro +319 -0
- package/src/html/pages/docs/components/main-sidebar.astro +71 -0
- package/src/html/pages/docs/faq.astro +71 -0
- package/src/html/pages/docs/how-to-contribute.astro +71 -0
- package/src/html/pages/docs/introduction.astro +71 -0
- package/src/html/pages/docs/javascript/treeview.astro +71 -0
- package/src/html/pages/docs/layout.astro +120 -0
- package/src/html/pages/docs/license.astro +71 -0
- package/src/html/pages/examples/lockscreen.astro +63 -0
- package/src/html/pages/examples/login-v2.astro +109 -0
- package/src/{pages/examples/login.html → html/pages/examples/login.astro} +40 -22
- package/src/html/pages/examples/register-v2.astro +116 -0
- package/src/{pages/examples/register.html → html/pages/examples/register.astro} +42 -24
- package/src/html/pages/forms/general.astro +624 -0
- package/src/html/pages/index.astro +790 -0
- package/src/html/pages/index2.astro +1345 -0
- package/src/html/pages/index3.astro +513 -0
- package/src/html/pages/layout/collapsed-sidebar.astro +110 -0
- package/src/html/pages/layout/fixed-complete.astro +209 -0
- package/src/html/pages/layout/fixed-sidebar.astro +109 -0
- package/src/html/pages/layout/layout-rtl.astro +109 -0
- package/src/html/pages/layout/logo-switch.astro +212 -0
- package/src/html/pages/layout/sidebar-mini.astro +108 -0
- package/src/html/pages/layout/unfixed-sidebar.astro +107 -0
- package/src/html/pages/tables/simple.astro +472 -0
- package/src/html/pages/widgets/cards.astro +373 -0
- package/src/{pages/widgets/info-box.html → html/pages/widgets/info-box.astro} +110 -60
- package/src/html/pages/widgets/small-box.astro +182 -0
- package/src/scss/_app-content.scss +52 -0
- package/src/scss/_app-footer.scss +15 -0
- package/src/scss/_app-header.scss +26 -0
- package/src/scss/_app-main.scss +17 -0
- package/src/scss/_app-sidebar.scss +603 -0
- package/src/scss/{_wrapper.scss → _app-wrapper.scss} +8 -4
- package/src/scss/_bootstrap-variables.scss +42 -27
- package/src/scss/_callouts.scss +34 -0
- package/src/scss/_cards.scss +54 -224
- package/src/scss/_compact-mode.scss +79 -0
- package/src/scss/_direct-chat.scss +15 -9
- package/src/scss/_docs.scss +4 -0
- package/src/scss/_dropdown.scss +7 -5
- package/src/scss/_info-box.scss +2 -6
- package/src/scss/_miscellaneous.scss +0 -455
- package/src/scss/_mixins.scss +0 -6
- package/src/scss/_root.scss +2 -58
- package/src/scss/_small-box.scss +15 -41
- package/src/scss/_table.scss +0 -50
- package/src/scss/_timeline.scss +120 -0
- package/src/scss/_variables-dark.scss +15 -8
- package/src/scss/_variables.scss +48 -136
- package/src/scss/adminlte.scss +1 -1
- package/src/scss/mixins/_animations.scss +0 -1
- package/src/scss/mixins/_scrollbar.scss +2 -2
- package/src/scss/pages/_lockscreen.scss +74 -0
- package/src/scss/pages/_login_and_register.scss +1 -5
- package/src/scss/parts/_core.scss +9 -15
- package/src/scss/parts/_extra-components.scss +1 -2
- package/src/scss/parts/_pages.scss +1 -0
- package/src/ts/adminlte.ts +0 -2
- package/src/ts/card-widget.ts +57 -66
- package/src/ts/direct-chat.ts +35 -10
- package/src/ts/layout.ts +8 -6
- package/src/ts/push-menu.ts +90 -158
- package/src/ts/treeview.ts +30 -30
- package/src/ts/util/index.ts +14 -12
- package/src/utils/index.js +28 -0
- package/tsconfig.json +11 -3
- package/.stylelintrc +0 -40
- package/CHECKLIST.md +0 -0
- package/dist/css/rtl/adminlte.rtl.css.map +0 -1
- package/dist/css/rtl/adminlte.rtl.min.css +0 -7
- package/dist/css/rtl/adminlte.rtl.min.css.map +0 -1
- package/dist/index.html +0 -1065
- package/dist/index2.html +0 -1629
- package/dist/index3.html +0 -1015
- package/gulpfile.js +0 -315
- package/src/index.html +0 -476
- package/src/index2.html +0 -968
- package/src/index3.html +0 -430
- package/src/pages/forms/general.html +0 -97
- package/src/pages/layout/fixed-sidebar.html +0 -87
- package/src/pages/layout/unfixed-sidebar.html +0 -87
- package/src/pages/tables/simple.html +0 -336
- package/src/pages/widgets/cards.html +0 -143
- package/src/pages/widgets/small-box.html +0 -124
- package/src/partials/_head.html +0 -31
- package/src/partials/_scripts.html +0 -95
- package/src/partials/dashboard/_footer.html +0 -9
- package/src/partials/dashboard/_sidenav.html +0 -244
- package/src/scss/_brand-container.scss +0 -72
- package/src/scss/_content-header.scss +0 -9
- package/src/scss/_content-wrapper.scss +0 -6
- package/src/scss/_content.scss +0 -3
- package/src/scss/_layout-fixed.scss +0 -43
- package/src/scss/_layout-mobile.scss +0 -22
- package/src/scss/_main-footer.scss +0 -28
- package/src/scss/_main-header.scss +0 -40
- package/src/scss/_main-sidebar.scss +0 -63
- package/src/scss/_nav-sidebar.scss +0 -66
- package/src/scss/_products.scss +0 -55
- package/src/scss/_sidebar-close.scss +0 -6
- package/src/scss/_sidebar-collapse.scss +0 -120
- package/src/scss/_sidebar-horizontal.scss +0 -67
- package/src/scss/_sidebar.scss +0 -11
- package/src/scss/_users-list.scss +0 -45
- package/src/scss/mixins/_brand-variant.scss +0 -9
- package/src/scss/mixins/_cards.scss +0 -53
- package/src/scss/mixins/_direct-chat.scss +0 -17
- package/src/scss/mixins/_header-variant.scss +0 -22
- package/src/scss/mixins/_nav-treeview-dark.scss +0 -87
- package/src/scss/mixins/_nav-treeview-light.scss +0 -89
- package/src/scss/mixins/_sidebar-color.scss +0 -9
package/gulpfile.js
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
|
|
3
|
-
const autoprefix = require('autoprefixer')
|
|
4
|
-
const browserSync = require('browser-sync').create()
|
|
5
|
-
const del = require('del')
|
|
6
|
-
const { src, dest, lastRun, watch, series, parallel } = require('gulp')
|
|
7
|
-
const cleanCss = require('gulp-clean-css')
|
|
8
|
-
const gulpESLintNew = require('gulp-eslint-new')
|
|
9
|
-
const fileinclude = require('gulp-file-include')
|
|
10
|
-
const formatHTML = require('gulp-format-html')
|
|
11
|
-
const validator = require('gulp-html')
|
|
12
|
-
const gulpIf = require('gulp-if')
|
|
13
|
-
const postcss = require('gulp-postcss')
|
|
14
|
-
const rename = require('gulp-rename')
|
|
15
|
-
const sass = require('gulp-sass')(require('sass'))
|
|
16
|
-
const gulpStylelint = require('@ronilaukkarinen/gulp-stylelint')
|
|
17
|
-
const terser = require('gulp-terser')
|
|
18
|
-
const rollup = require('rollup')
|
|
19
|
-
const rollupTypescript = require('@rollup/plugin-typescript')
|
|
20
|
-
const rtlcss = require('rtlcss')
|
|
21
|
-
|
|
22
|
-
const pkg = require('./package')
|
|
23
|
-
const year = new Date().getFullYear()
|
|
24
|
-
const banner = `/*!
|
|
25
|
-
* AdminLTE v${pkg.version} (${pkg.homepage})
|
|
26
|
-
* Copyright 2014-${year} ${pkg.author}
|
|
27
|
-
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
|
|
28
|
-
*/`
|
|
29
|
-
|
|
30
|
-
// Define paths
|
|
31
|
-
|
|
32
|
-
const paths = {
|
|
33
|
-
dist: {
|
|
34
|
-
base: './dist/',
|
|
35
|
-
css: './dist/css',
|
|
36
|
-
js: './dist/js',
|
|
37
|
-
html: './dist/pages',
|
|
38
|
-
assets: './dist/assets'
|
|
39
|
-
},
|
|
40
|
-
src: {
|
|
41
|
-
base: './src/',
|
|
42
|
-
html: './src/pages/**/*.html',
|
|
43
|
-
assets: './src/assets/**/*.*',
|
|
44
|
-
partials: './src/partials/**/*.html',
|
|
45
|
-
scss: './src/scss',
|
|
46
|
-
ts: './src/ts'
|
|
47
|
-
},
|
|
48
|
-
temp: {
|
|
49
|
-
base: './.temp/',
|
|
50
|
-
css: './.temp/css',
|
|
51
|
-
js: './.temp/js',
|
|
52
|
-
html: './.temp/pages',
|
|
53
|
-
assets: './.temp/assets'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const sassOptions = {
|
|
58
|
-
outputStyle: 'expanded',
|
|
59
|
-
includePaths: ['./node_modules/']
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const postcssOptions = [
|
|
63
|
-
autoprefix({ cascade: false })
|
|
64
|
-
]
|
|
65
|
-
|
|
66
|
-
const postcssRtlOptions = [
|
|
67
|
-
autoprefix({ cascade: false }),
|
|
68
|
-
rtlcss({})
|
|
69
|
-
]
|
|
70
|
-
|
|
71
|
-
// From here Dev mode will Start
|
|
72
|
-
|
|
73
|
-
// Lint SCSS
|
|
74
|
-
const lintScss = () => src([paths.src.scss + '/**/*.scss'], { since: lastRun(lintScss) })
|
|
75
|
-
.pipe(gulpStylelint({
|
|
76
|
-
failAfterError: false,
|
|
77
|
-
reporters: [
|
|
78
|
-
{ formatter: 'string', console: true }
|
|
79
|
-
],
|
|
80
|
-
debug: true
|
|
81
|
-
}))
|
|
82
|
-
|
|
83
|
-
// Compile SCSS
|
|
84
|
-
const scss = () => src(paths.src.scss + '/adminlte.scss', { sourcemaps: true })
|
|
85
|
-
.pipe(sass(sassOptions).on('error', sass.logError))
|
|
86
|
-
.pipe(postcss(postcssOptions))
|
|
87
|
-
.pipe(dest(paths.temp.css, { sourcemaps: '.' }))
|
|
88
|
-
.pipe(browserSync.stream())
|
|
89
|
-
|
|
90
|
-
// Compile SCSS Dark
|
|
91
|
-
// const scssDark = () => src(paths.src.scss + '/dark/adminlte-dark-addon.scss', { sourcemaps: true })
|
|
92
|
-
// .pipe(sass(sassOptions).on('error', sass.logError))
|
|
93
|
-
// .pipe(postcss(postcssOptions))
|
|
94
|
-
// .pipe(dest(paths.temp.css + '/dark', { sourcemaps: '.' }))
|
|
95
|
-
// .pipe(browserSync.stream())
|
|
96
|
-
|
|
97
|
-
// Lint TS
|
|
98
|
-
function isFixed(file) {
|
|
99
|
-
// Has ESLint fixed the file contents?
|
|
100
|
-
return file.eslint !== null && file.eslint.fixed
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const lintTs = () => src([paths.src.ts + '/**/*.ts'], { since: lastRun(lintTs) })
|
|
104
|
-
.pipe(gulpESLintNew({ fix: true }))
|
|
105
|
-
.pipe(gulpIf(isFixed, dest(paths.src.ts)))
|
|
106
|
-
.pipe(gulpESLintNew.format())
|
|
107
|
-
.pipe(gulpESLintNew.failAfterError())
|
|
108
|
-
|
|
109
|
-
// Compile TS
|
|
110
|
-
const tsCompile = () =>
|
|
111
|
-
rollup.rollup({
|
|
112
|
-
input: paths.src.ts + '/adminlte.ts',
|
|
113
|
-
output: {
|
|
114
|
-
banner
|
|
115
|
-
},
|
|
116
|
-
plugins: [
|
|
117
|
-
rollupTypescript()
|
|
118
|
-
]
|
|
119
|
-
}).then(bundle => bundle.write({
|
|
120
|
-
file: paths.temp.js + '/adminlte.js',
|
|
121
|
-
format: 'umd',
|
|
122
|
-
name: 'adminlte',
|
|
123
|
-
sourcemap: true
|
|
124
|
-
}))
|
|
125
|
-
|
|
126
|
-
const assets = () => src([paths.src.assets])
|
|
127
|
-
.pipe(dest(paths.temp.assets))
|
|
128
|
-
.pipe(browserSync.stream())
|
|
129
|
-
|
|
130
|
-
const index = () => src([paths.src.base + '*.html'])
|
|
131
|
-
.pipe(fileinclude({
|
|
132
|
-
prefix: '@@',
|
|
133
|
-
basepath: './src/partials/',
|
|
134
|
-
context: {
|
|
135
|
-
environment: 'development'
|
|
136
|
-
}
|
|
137
|
-
}))
|
|
138
|
-
.pipe(formatHTML())
|
|
139
|
-
.pipe(dest(paths.temp.base))
|
|
140
|
-
.pipe(browserSync.stream())
|
|
141
|
-
|
|
142
|
-
const html = () => src([paths.src.html])
|
|
143
|
-
.pipe(fileinclude({
|
|
144
|
-
prefix: '@@',
|
|
145
|
-
basepath: './src/partials/',
|
|
146
|
-
context: {
|
|
147
|
-
environment: 'development'
|
|
148
|
-
}
|
|
149
|
-
}))
|
|
150
|
-
.pipe(formatHTML())
|
|
151
|
-
.pipe(dest(paths.temp.html))
|
|
152
|
-
.pipe(browserSync.stream())
|
|
153
|
-
|
|
154
|
-
const lintHtml = () => src([paths.temp.html + '/**/*.html', paths.temp.base + '*.html'], { since: lastRun(lintHtml) })
|
|
155
|
-
.pipe(validator())
|
|
156
|
-
|
|
157
|
-
const serve = () => {
|
|
158
|
-
browserSync.init({
|
|
159
|
-
server: paths.temp.base
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
watch([paths.src.scss], series(lintScss))
|
|
163
|
-
watch([paths.src.scss + '/**/*.scss', '!' + paths.src.scss + '/bootstrap-dark/**/*.scss', '!' + paths.src.scss + '/dark/**/*.scss'], series(scss))
|
|
164
|
-
watch([paths.src.scss + '/bootstrap-dark/', paths.src.scss + '/dark/'])
|
|
165
|
-
watch([paths.src.ts], series(lintTs, tsCompile))
|
|
166
|
-
watch([paths.src.html, paths.src.base + '*.html', paths.src.partials], series(html, index, lintHtml))
|
|
167
|
-
watch([paths.src.assets], series(assets))
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// From here Dist will Start
|
|
171
|
-
|
|
172
|
-
// Clean
|
|
173
|
-
const cleanDist = () => del([paths.dist.base])
|
|
174
|
-
|
|
175
|
-
const lintDistScss = () => src([paths.src.scss + '/**/*.scss'], ['./.temp/**/*.css'])
|
|
176
|
-
.pipe(gulpStylelint({
|
|
177
|
-
failAfterError: false,
|
|
178
|
-
reporters: [
|
|
179
|
-
{ formatter: 'string', console: true }
|
|
180
|
-
]
|
|
181
|
-
}))
|
|
182
|
-
|
|
183
|
-
// Compile and copy all scss/css
|
|
184
|
-
const copyDistCssAll = () => src([paths.src.scss + '/**/*.scss'], {
|
|
185
|
-
base: paths.src.scss,
|
|
186
|
-
sourcemaps: true
|
|
187
|
-
})
|
|
188
|
-
.pipe(sass(sassOptions).on('error', sass.logError))
|
|
189
|
-
.pipe(postcss(postcssOptions))
|
|
190
|
-
.pipe(dest(paths.dist.css, { sourcemaps: '.' }))
|
|
191
|
-
|
|
192
|
-
const copyDistCssRtl = () => src(paths.dist.css + '/*.css', { sourcemaps: true })
|
|
193
|
-
.pipe(postcss(postcssRtlOptions))
|
|
194
|
-
.pipe(rename({ suffix: '.rtl' }))
|
|
195
|
-
.pipe(dest(paths.dist.css + '/rtl', { sourcemaps: '.' }))
|
|
196
|
-
|
|
197
|
-
// Minify CSS
|
|
198
|
-
const minifyDistCss = () => src([
|
|
199
|
-
paths.dist.css + '/**/*.css'
|
|
200
|
-
], {
|
|
201
|
-
base: paths.dist.css,
|
|
202
|
-
sourcemaps: true
|
|
203
|
-
})
|
|
204
|
-
.pipe(cleanCss({ format: { breakWith: 'lf' } }))
|
|
205
|
-
.pipe(rename({ suffix: '.min' }))
|
|
206
|
-
.pipe(dest(paths.dist.css, { sourcemaps: '.' }))
|
|
207
|
-
|
|
208
|
-
const lintDistTs = () => src([paths.src.ts + '/**/*.ts'])
|
|
209
|
-
.pipe(gulpESLintNew())
|
|
210
|
-
.pipe(gulpESLintNew.failAfterError())
|
|
211
|
-
|
|
212
|
-
// Compile and copy ts/js
|
|
213
|
-
const copyDistJs = () =>
|
|
214
|
-
rollup.rollup({
|
|
215
|
-
input: paths.src.ts + '/adminlte.ts',
|
|
216
|
-
output: {
|
|
217
|
-
banner
|
|
218
|
-
},
|
|
219
|
-
plugins: [
|
|
220
|
-
rollupTypescript()
|
|
221
|
-
]
|
|
222
|
-
}).then(bundle => bundle.write({
|
|
223
|
-
file: paths.dist.js + '/adminlte.js',
|
|
224
|
-
format: 'umd',
|
|
225
|
-
name: 'adminlte',
|
|
226
|
-
sourcemap: true
|
|
227
|
-
}))
|
|
228
|
-
|
|
229
|
-
// Minify JS
|
|
230
|
-
const minifyDistJs = () => src(paths.dist.js + '/adminlte.js', { sourcemaps: true })
|
|
231
|
-
.pipe(terser({ compress: { passes: 2 } }))
|
|
232
|
-
.pipe(rename({ suffix: '.min' }))
|
|
233
|
-
.pipe(dest(paths.dist.js, { sourcemaps: '.' }))
|
|
234
|
-
|
|
235
|
-
// Copy assets
|
|
236
|
-
const copyDistAssets = () => src(paths.src.assets)
|
|
237
|
-
.pipe(dest(paths.dist.assets))
|
|
238
|
-
|
|
239
|
-
// Copy index
|
|
240
|
-
const copyDistHtmlIndex = () => src([paths.src.base + '*.html'])
|
|
241
|
-
.pipe(fileinclude({
|
|
242
|
-
prefix: '@@',
|
|
243
|
-
basepath: './src/partials/',
|
|
244
|
-
context: {
|
|
245
|
-
environment: 'production'
|
|
246
|
-
}
|
|
247
|
-
}))
|
|
248
|
-
.pipe(formatHTML())
|
|
249
|
-
.pipe(dest(paths.dist.base))
|
|
250
|
-
|
|
251
|
-
// Copy Html
|
|
252
|
-
const copyDistHtml = () => src([paths.src.html])
|
|
253
|
-
.pipe(fileinclude({
|
|
254
|
-
prefix: '@@',
|
|
255
|
-
basepath: './src/partials/',
|
|
256
|
-
context: {
|
|
257
|
-
environment: 'production'
|
|
258
|
-
}
|
|
259
|
-
}))
|
|
260
|
-
.pipe(formatHTML())
|
|
261
|
-
.pipe(dest(paths.dist.html))
|
|
262
|
-
|
|
263
|
-
// HTML Lint
|
|
264
|
-
// Copy index for Lint
|
|
265
|
-
const copyDistHtmlIndexForLint = () => src([paths.src.base + '*.html'])
|
|
266
|
-
.pipe(fileinclude({
|
|
267
|
-
prefix: '@@',
|
|
268
|
-
basepath: './src/partials/',
|
|
269
|
-
context: {
|
|
270
|
-
environment: 'production'
|
|
271
|
-
}
|
|
272
|
-
}))
|
|
273
|
-
.pipe(formatHTML())
|
|
274
|
-
.pipe(dest(paths.temp.base))
|
|
275
|
-
// Copy Html for Lint
|
|
276
|
-
const copyDistHtmlForLint = () => src([paths.src.html])
|
|
277
|
-
.pipe(fileinclude({
|
|
278
|
-
prefix: '@@',
|
|
279
|
-
basepath: './src/partials/',
|
|
280
|
-
context: {
|
|
281
|
-
environment: 'production'
|
|
282
|
-
}
|
|
283
|
-
}))
|
|
284
|
-
.pipe(formatHTML())
|
|
285
|
-
.pipe(dest(paths.temp.html))
|
|
286
|
-
// Now Lint
|
|
287
|
-
const lintDistHtmlCopied = () => src([paths.temp.html + '/**/*.html', paths.temp.base + '*.html'])
|
|
288
|
-
.pipe(validator())
|
|
289
|
-
|
|
290
|
-
const lintDistHtml = series(copyDistHtmlIndexForLint, copyDistHtmlForLint, lintDistHtmlCopied)
|
|
291
|
-
|
|
292
|
-
const lint = parallel(
|
|
293
|
-
lintDistScss,
|
|
294
|
-
lintDistTs,
|
|
295
|
-
lintDistHtml
|
|
296
|
-
)
|
|
297
|
-
exports.lint = lint
|
|
298
|
-
|
|
299
|
-
const compile = series(
|
|
300
|
-
cleanDist,
|
|
301
|
-
parallel(
|
|
302
|
-
series(copyDistCssAll, copyDistCssRtl, minifyDistCss),
|
|
303
|
-
series(copyDistJs, minifyDistJs),
|
|
304
|
-
copyDistAssets,
|
|
305
|
-
copyDistHtmlIndex,
|
|
306
|
-
copyDistHtml
|
|
307
|
-
)
|
|
308
|
-
)
|
|
309
|
-
exports.compile = compile
|
|
310
|
-
|
|
311
|
-
// For Production Release
|
|
312
|
-
exports.production = series(lint, compile)
|
|
313
|
-
|
|
314
|
-
// Default - Only for light mode AdminLTE
|
|
315
|
-
exports.default = series(scss, tsCompile, html, index, assets, serve)
|