Skip to content

Commit 79057a0

Browse files
author
App Generator
committed
Added Gulp Tooling
1 parent 3467555 commit 79057a0

File tree

2 files changed

+165
-0
lines changed

2 files changed

+165
-0
lines changed

app/static/assets/gulpfile.js

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
3+
=========================================================
4+
* Volt Free - Bootstrap 5 Dashboard
5+
=========================================================
6+
7+
* Product Page: https://themesberg.com/product/admin-dashboard/volt-premium-bootstrap-5-dashboard
8+
* Copyright 2020 Themesberg (https://www.themesberg.com)
9+
* License (https://themesberg.com/licensing)
10+
11+
* Designed and coded by https://themesberg.com
12+
13+
=========================================================
14+
15+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Please contact us to request a removal.
16+
17+
*/
18+
19+
var autoprefixer = require('gulp-autoprefixer');
20+
var browserSync = require('browser-sync').create();
21+
var cleanCss = require('gulp-clean-css');
22+
var del = require('del');
23+
const htmlmin = require('gulp-htmlmin');
24+
const cssbeautify = require('gulp-cssbeautify');
25+
var gulp = require('gulp');
26+
const npmDist = require('gulp-npm-dist');
27+
var sass = require('gulp-sass');
28+
var wait = require('gulp-wait');
29+
var sourcemaps = require('gulp-sourcemaps');
30+
var fileinclude = require('gulp-file-include');
31+
var rename = require("gulp-rename");
32+
33+
// Define paths
34+
35+
const paths = {
36+
dist: {
37+
base: './dist/',
38+
css: './dist/css',
39+
html: './dist/pages',
40+
assets: './dist/assets',
41+
img: './dist/assets/img',
42+
vendor: './dist/vendor'
43+
},
44+
dev: {
45+
base: './html&css/',
46+
css: './html&css/css',
47+
html: './html&css/pages',
48+
assets: './html&css/assets',
49+
img: './html&css/assets/img',
50+
vendor: './html&css/vendor'
51+
},
52+
base: {
53+
base: './',
54+
node: './node_modules'
55+
},
56+
src: {
57+
base: './',
58+
css: './css',
59+
html: './src/pages/**/*.html',
60+
assets: './src/assets/**/*.*',
61+
partials: './src/partials/**/*.html',
62+
scss: './scss',
63+
node_modules: './node_modules/',
64+
vendor: './vendor'
65+
},
66+
temp: {
67+
base: './.temp/',
68+
css: './.temp/css',
69+
html: './.temp/pages',
70+
assets: './.temp/assets',
71+
vendor: './.temp/vendor'
72+
}
73+
};
74+
75+
// Compile SCSS
76+
gulp.task('scss', function() {
77+
return gulp.src([paths.src.scss + '/custom/**/*.scss', paths.src.scss + '/pixel/**/*.scss', paths.src.scss + '/pixel.scss'])
78+
.pipe(wait(500))
79+
.pipe(sourcemaps.init())
80+
.pipe(sass().on('error', sass.logError))
81+
.pipe(autoprefixer({
82+
overrideBrowserslist: ['> 1%']
83+
}))
84+
.pipe(sourcemaps.write('.'))
85+
.pipe(gulp.dest(paths.src.css))
86+
.pipe(browserSync.stream());
87+
});
88+
89+
// Minify CSS
90+
gulp.task('minify:css', function() {
91+
return gulp.src([
92+
paths.src.css + '/pixel.css'
93+
])
94+
.pipe(cleanCss())
95+
.pipe(rename(function(path) {
96+
// Updates the object in-place
97+
path.extname = ".min.css";
98+
}))
99+
.pipe(gulp.dest(paths.src.css))
100+
});
101+
102+
// Default
103+
gulp.task('default', gulp.series('scss', 'minify:css'));

app/static/assets/package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "@themesberg/pixel-lite-bootstrap-ui-kit",
3+
"version": "4.0.0",
4+
"description": "Open-source Bootstrap 5 UI Kit",
5+
"main": "gulpfile.js",
6+
"author": "Themesberg",
7+
"keywords": [
8+
"bootstrap",
9+
"bootstrap 5",
10+
"bootstrap 5 ui kit",
11+
"bootstrap ui kit",
12+
"ui kit",
13+
"components",
14+
"elements",
15+
"responsive",
16+
"front-end",
17+
"css",
18+
"sass",
19+
"gulp",
20+
"web"
21+
],
22+
"homepage": "https://themesberg.com/product/ui-kit/pixel-free-bootstrap-5-ui-kit",
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/themesberg/pixel-bootstrap-ui-kit"
26+
},
27+
"bugs": {
28+
"email": "[email protected]"
29+
},
30+
"license": "MIT License",
31+
"devDependencies": {
32+
"browser-sync": "^2.26.14",
33+
"del": "4.1.1",
34+
"gulp": "4.0.2",
35+
"gulp-autoprefixer": "6.1.0",
36+
"gulp-clean-css": "4.2.0",
37+
"gulp-cssbeautify": "1.0.1",
38+
"gulp-file-include": "2.1.0",
39+
"gulp-header": "2.0.7",
40+
"gulp-htmlmin": "5.0.1",
41+
"gulp-npm-dist": "^1.0.3",
42+
"gulp-plumber": "1.2.1",
43+
"gulp-rename": "1.4.0",
44+
"gulp-sass": "4.0.2",
45+
"gulp-sourcemaps": "2.6.5",
46+
"gulp-uglify": "3.0.2",
47+
"gulp-wait": "0.0.2",
48+
"merge-stream": "2.0.0"
49+
},
50+
"dependencies": {
51+
"@fortawesome/fontawesome-free": "5.11.2",
52+
"@popperjs/core": "^2.6.0",
53+
"bootstrap": "5.0.0-beta2",
54+
"vanillajs-datepicker": "^1.0.3",
55+
"headroom.js": "0.10.3",
56+
"jarallax": "1.12.0",
57+
"onscreen": "1.3.4",
58+
"smooth-scroll": "^16.1.0",
59+
"vivus": "^0.4.5",
60+
"waypoints": "4.0.1"
61+
}
62+
}

0 commit comments

Comments
 (0)