Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstrapdash-team committed May 28, 2018
1 parent 1635aed commit 62dead8
Show file tree
Hide file tree
Showing 1,843 changed files with 424,805 additions and 5,516 deletions.
2 changes: 1 addition & 1 deletion css/maps/style.css.map

Large diffs are not rendered by default.

2,756 changes: 1,727 additions & 1,029 deletions css/style.css

Large diffs are not rendered by default.

114 changes: 91 additions & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var replace = require('gulp-replace');
var injectPartials = require('gulp-inject-partials');
var inject = require('gulp-inject');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var merge = require('merge-stream');

gulp.paths = {
dist: 'dist',
Expand All @@ -20,7 +22,7 @@ var paths = gulp.paths;


// Static Server + watching scss/html files
gulp.task('serve', ['sass'], function() {
gulp.task('serve', ['sass'], function () {

browserSync.init({
port: 3000,
Expand All @@ -38,7 +40,7 @@ gulp.task('serve', ['sass'], function() {


// Static Server without watching scss files
gulp.task('serve:lite', function() {
gulp.task('serve:lite', function () {

browserSync.init({
server: "./",
Expand Down Expand Up @@ -71,45 +73,111 @@ gulp.task('sass:watch', function () {


/*sequence for injecting partials and replacing paths*/
gulp.task('inject', function() {
runSequence('injectPartial' , 'injectAssets' , 'replacePath');
gulp.task('inject', function () {
runSequence('injectPartial', 'injectAssets', 'replacePath');
});



/* inject partials like sidebar and navbar */
gulp.task('injectPartial', function () {
return gulp.src("./**/*.html", { base: "./" })
.pipe(injectPartials())
.pipe(gulp.dest("."));
return gulp.src("./**/*.html", {
base: "./"
})
.pipe(injectPartials())
.pipe(gulp.dest("."));
});



/* inject Js and CCS assets into HTML */
gulp.task('injectAssets', function () {
return gulp.src('./**/*.html')
.pipe(inject(gulp.src(['./node_modules/mdi/css/materialdesignicons.min.css', './node_modules/simple-line-icons/css/simple-line-icons.css' , './node_modules/perfect-scrollbar/css/perfect-scrollbar.css' , './node_modules/jquery/dist/jquery.min.js', './node_modules/popper.js/dist/umd/popper.min.js' , './node_modules/bootstrap/dist/js/bootstrap.min.js' , './node_modules/perfect-scrollbar/dist/perfect-scrollbar.min.js'], {read: false}), {name: 'plugins', relative: true}))
.pipe(inject(gulp.src(['./css/*.css' , './js/off-canvas.js' , './js/misc.js'], {read: false}), {relative: true}))
.pipe(gulp.dest('.'));
return gulp.src('./**/*.html')
.pipe(inject(gulp.src([
'./vendors/iconfonts/mdi/css/materialdesignicons.min.css',
'./vendors/css/vendor.bundle.base.css',
'./vendors/css/vendor.bundle.addons.css',
'./vendors/js/vendor.bundle.base.js',
'./vendors/js/vendor.bundle.addons.js'
], {
read: false
}), {
name: 'plugins',
relative: true
}))
.pipe(inject(gulp.src([
'./css/*.css',
'./js/off-canvas.js',
'./js/misc.js',
], {
read: false
}), {
relative: true
}))
.pipe(gulp.dest('.'));
});



/*replace image path and linking after injection*/
gulp.task('replacePath', function(){
gulp.src('pages/*/*.html', { base: "./" })
.pipe(replace('src="images/', 'src="../../images/'))
.pipe(replace('href="pages/', 'href="../../pages/'))
.pipe(replace('href="index.html"', 'href="../../index.html"'))
.pipe(gulp.dest('.'));
gulp.src('pages/*.html', { base: "./" })
.pipe(replace('src="images/', 'src="../images/'))
.pipe(replace('"pages/', '"../pages/'))
.pipe(replace('href="index.html"', 'href="../index.html"'))
.pipe(gulp.dest('.'));
gulp.task('replacePath', function () {
gulp.src('pages/*/*.html', {
base: "./"
})
.pipe(replace('src="images/', 'src="../../images/'))
.pipe(replace('href="pages/', 'href="../../pages/'))
.pipe(replace('href="index.html"', 'href="../../index.html"'))
.pipe(gulp.dest('.'));
gulp.src('pages/*.html', {
base: "./"
})
.pipe(replace('src="images/', 'src="../images/'))
.pipe(replace('"pages/', '"../pages/'))
.pipe(replace('href="index.html"', 'href="../index.html"'))
.pipe(gulp.dest('.'));
});

/*sequence for building vendor scripts and styles*/
gulp.task('bundleVendors', function () {
runSequence('copyRecursiveVendorFiles', 'buildBaseVendorStyles', 'buildBaseVendorScripts', 'buildOptionalVendorScripts');
});

/* Copy whole folder of some specific node modules that are calling other files internally */
gulp.task('copyRecursiveVendorFiles', function () {
var mdi = gulp.src(['./node_modules/mdi/**/*'])
.pipe(gulp.dest('./vendors/iconfonts/mdi'));
var fontawesome = gulp.src(['./node_modules/font-awesome/**/*'])
.pipe(gulp.dest('./vendors/iconfonts/font-awesome'));
return merge(
mdi,
fontawesome
);
});

/*Building vendor scripts needed for basic template rendering*/
gulp.task('buildBaseVendorScripts', function () {
return gulp.src([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/popper.js/dist/umd/popper.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js'
])
.pipe(concat('vendor.bundle.base.js'))
.pipe(gulp.dest('./vendors/js'));
});

gulp.task('default', ['serve']);
/*Building vendor styles needed for basic template rendering*/
gulp.task('buildBaseVendorStyles', function () {
return gulp.src(['./node_modules/perfect-scrollbar/css/perfect-scrollbar.css'])
.pipe(concat('vendor.bundle.base.css'))
.pipe(gulp.dest('./vendors/css'));
});

/*Building optional vendor scripts for addons*/
gulp.task('buildOptionalVendorScripts', function () {
return gulp.src([
'node_modules/chart.js/dist/Chart.min.js'
])
.pipe(concat('vendor.bundle.addons.js'))
.pipe(gulp.dest('./vendors/js'));
});
gulp.task('default', ['serve']);
Binary file modified images/auth/login_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/auth/register.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/auth/register_1.jpg
Binary file not shown.
Binary file modified images/faces/face1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/faces/face4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 92 additions & 48 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/menu_icons/01.png
Binary file not shown.
Binary file removed images/menu_icons/02.png
Binary file not shown.
Binary file removed images/menu_icons/03.png
Binary file not shown.
Binary file removed images/menu_icons/04.png
Binary file not shown.
Binary file removed images/menu_icons/05.png
Binary file not shown.
Binary file removed images/menu_icons/06.png
Binary file not shown.
Binary file removed images/menu_icons/07.png
Binary file not shown.
Binary file removed images/menu_icons/08.png
Binary file not shown.
Binary file removed images/menu_icons/09.png
Binary file not shown.
25 changes: 25 additions & 0 deletions images/samples/weather.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 62dead8

Please sign in to comment.