forked from dropways/deskapp
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit c61339f
Showing
111 changed files
with
53,289 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/bower_components/ | ||
/node_modules/ | ||
.sass-cache/ |
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,127 @@ | ||
var autoprefixer, browserSync, concat, config, gulp, imagemin, minify, path, plumber, rename, sass, streamqueue, uglify,changed; | ||
|
||
gulp = require('gulp'); | ||
sass = require('gulp-sass'); | ||
plumber = require('gulp-plumber'); | ||
rename = require('gulp-rename'); | ||
autoprefixer = require('gulp-autoprefixer'); | ||
concat = require('gulp-concat'); | ||
uglify = require('gulp-uglify'); | ||
imagemin = require('gulp-imagemin'); | ||
minify = require('gulp-clean-css'); | ||
streamqueue = require('streamqueue'); | ||
browserSync = require('browser-sync'); | ||
changed = require('gulp-changed'); | ||
|
||
config = { | ||
srcDir: './src/' | ||
}; | ||
|
||
var path = { | ||
styles: [ | ||
config.srcDir + 'styles/theme.css', | ||
config.srcDir + 'plugins/bootstrap-4.0.0/dist/css/bootstrap.css', | ||
config.srcDir + 'fonts/font-awesome/css/font-awesome.css', | ||
config.srcDir + 'styles/style.css', | ||
config.srcDir + 'styles/media.css', | ||
], | ||
scripts: [ | ||
config.srcDir + 'scripts/jquery.min.js', | ||
config.srcDir + 'plugins/bootstrap-4.0.0/dist/js/bootstrap.js', | ||
config.srcDir + 'scripts/setting.js' | ||
], | ||
fonts: [ | ||
config.srcDir + 'fonts/font-awesome/fonts/*.*', | ||
config.srcDir + 'fonts/**/*.*', | ||
], | ||
images: 'src/images/**/*.*', | ||
php: ['*.php'] | ||
}; | ||
|
||
gulp.task('styles', function() { | ||
var stream; | ||
stream = streamqueue({objectMode: true}); | ||
stream.queue(gulp.src(path.styles)); | ||
return stream.done() | ||
.pipe(plumber()) | ||
.pipe(sass()) | ||
.pipe(autoprefixer({browsers: ['last 2 versions'],cascade: false})) | ||
.pipe(concat('style.css')) | ||
.pipe(gulp.dest('vendors/styles/')) | ||
.pipe(minify({keepSpecialComments: 0})) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(plumber.stop()).pipe(gulp.dest('vendors/styles/')).pipe(browserSync.reload({stream: true})); | ||
}); | ||
|
||
gulp.task('scripts', function() { | ||
var stream; | ||
stream = streamqueue({objectMode: true}); | ||
stream.queue(gulp.src(path.scripts)); | ||
return stream.done() | ||
.pipe(plumber()) | ||
.pipe(concat('script.js')) | ||
.pipe(gulp.dest('vendors/scripts/')).pipe(rename({suffix: '.min'})) | ||
.pipe(uglify()) | ||
.pipe(plumber.stop()) | ||
.pipe(gulp.dest('vendors/scripts/')) | ||
.pipe(browserSync.reload({stream: true})); | ||
}); | ||
|
||
gulp.task('images', function() { | ||
var stream; | ||
stream = streamqueue({objectMode: true}); | ||
stream.queue(gulp.src(path.images)); | ||
return stream.done() | ||
.pipe(changed('vendors/images/')) | ||
.pipe(imagemin({optimizationLevel: 3,progressive: true,interlaced: true})) | ||
.pipe(gulp.dest('vendors/images/')); | ||
}); | ||
|
||
gulp.task('php', function() { | ||
var stream; | ||
stream = streamqueue({objectMode: true}); | ||
stream.queue(gulp.src(path.php)); | ||
return stream.done() | ||
.pipe(browserSync.reload({stream: true})); | ||
}); | ||
|
||
gulp.task('fonts', function() { | ||
var stream; | ||
stream = streamqueue({objectMode: true}); | ||
stream.queue(gulp.src(path.fonts)); | ||
return stream.done() | ||
.pipe(gulp.dest('vendors/fonts/')); | ||
}); | ||
|
||
gulp.task('connect-sync', ['styles', 'scripts', 'php'], function() { | ||
browserSync.init({ | ||
proxy: 'localhost/deskapp', | ||
open: true, | ||
reloadDelay: 50, | ||
watchOptions: { | ||
debounceDelay: 50 | ||
} | ||
}); | ||
gulp.watch(['src/styles/**/**'], ['styles']); | ||
gulp.watch(['src/scripts/**/**'], ['scripts']); | ||
gulp.watch(path.php, ['php']); | ||
return gulp.watch(['*', 'vendors/**/**'], function(file) { | ||
if (file.type === "changed") { | ||
return browserSync.reload(file.path); | ||
} | ||
}); | ||
}); | ||
|
||
gulp.task('watch', function(){ | ||
gulp.watch("src/styles/**/*.*", ['styles']); | ||
gulp.watch("src/fonts/**/*", ['fonts']); | ||
gulp.watch("src/scripts/**/*.js", ['scripts']); | ||
//gulp.watch(path.images, ['images']); | ||
}); | ||
|
||
gulp.task('default', ['styles', 'fonts', 'scripts', 'connect-sync'], function(){ | ||
gulp.watch("src/styles/**/*.*", ['styles']); | ||
gulp.watch("src/fonts/**/*", ['fonts']); | ||
gulp.watch("src/scripts/**/*.js", ['scripts']); | ||
//gulp.watch(path.images, ['images']); | ||
}); |
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,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- Basic Page Info --> | ||
<meta charset="utf-8"> | ||
<title>DeskApp Dashboard</title> | ||
<!-- Site favicon --> | ||
<!-- <link rel="shortcut icon" href="images/favicon.ico"> --> | ||
<!-- Mobile Specific Metas --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<!-- Google Font --> | ||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> | ||
<!-- CSS --> | ||
<link rel="stylesheet" href="vendors/styles/style.css"> | ||
</head> | ||
<body> | ||
<div class="header clearfix"> | ||
<div class="header-right"></div> | ||
</div> | ||
<div class="main-menu"> | ||
<div class="brand-logo"> | ||
<a href="index.php"> | ||
<img src="vendors/images/logo.png" alt=""> | ||
<span>eskApp</span> | ||
</a> | ||
</div> | ||
</div> | ||
<!-- js --> | ||
<script src="vendors/scripts/script.js"></script> | ||
</body> | ||
</html> |
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,36 @@ | ||
{ | ||
"name": "deskapp", | ||
"version": "1.0.0", | ||
"description": "deskapp", | ||
"main": "gulpfile.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"browser-sync": "^2.14.3", | ||
"gulp": "^3.9.1", | ||
"gulp-autoprefixer": "^4.0.0", | ||
"gulp-changed": "^3.1.1", | ||
"gulp-clean-css": "^3.4.1", | ||
"gulp-coffee": "^2.3.2", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-imagemin": "^3.4.0", | ||
"gulp-install": "^1.1.0", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^3.1.0", | ||
"gulp-uglify": "^3.0.0", | ||
"streamqueue": "^1.1.1" | ||
}, | ||
"dependencies": { | ||
"gulp-install": "^1.1.0", | ||
"node-sass": "^4.7.2", | ||
"onscreen": "^1.1.3", | ||
"sass": "^1.0.0-beta.4" | ||
} | ||
} |
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,7 @@ | ||
I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, | ||
Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, | ||
comprehensive icon sets or copy and paste your own. | ||
|
||
Please. Check it out. | ||
|
||
-Dave Gandy |
Oops, something went wrong.