-
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.
Merge pull request #4 from pure-js/to-pure-js
To pure js
- Loading branch information
Showing
12 changed files
with
230 additions
and
212 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 |
---|---|---|
|
@@ -9,3 +9,6 @@ bower_components | |
|
||
# Build | ||
build | ||
|
||
# OSX | ||
.DS_store |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Check browser | ||
Check browser version and show pop-up if version is less then recommended | ||
|
||
bower i | ||
npm i |
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
module.exports = { | ||
paths: { | ||
pug: 'demo/index.pug', | ||
pugWatch: [ | ||
'demo/index.pug', | ||
], | ||
styl: [ | ||
'stylesheets/old-browser.styl' | ||
], | ||
stylWatch: [ | ||
'src/blocks/**/*.styl' | ||
], | ||
copy: ['bower_components/prism/prism.js', 'bower_components/prism/themes/prism.css', 'src/check-browser.js'], | ||
build: 'build/' | ||
}, | ||
names: { | ||
css: 'app.min.css' | ||
} | ||
}; |
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,28 @@ | ||
const gulp = require('gulp'), | ||
config = require('../config'), | ||
plugins = require('gulp-load-plugins')(); | ||
|
||
const build = gulp.parallel(html, css, copy); | ||
|
||
module.exports = build; | ||
|
||
function html() { | ||
return gulp.src(config.paths.pug) | ||
.pipe(plugins.pug({ | ||
pretty: true | ||
})) | ||
.pipe(gulp.dest(config.paths.build)); | ||
} | ||
|
||
function css() { | ||
return gulp.src(config.paths.styl) | ||
.pipe(plugins.stylus({ | ||
'include css': true | ||
})) | ||
.pipe(gulp.dest(config.paths.build)); | ||
} | ||
|
||
function copy() { | ||
return gulp.src(config.paths.copy) | ||
.pipe(gulp.dest(config.paths.build)); | ||
} |
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,5 @@ | ||
module.exports = require('require-dir')('.', { | ||
camelcase: true, | ||
recurse: true | ||
} | ||
); |
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,25 @@ | ||
const gulp = require('gulp'), | ||
del = require('del'), | ||
config = require('./gulp/config'), | ||
tasks = require('./gulp/tasks'), | ||
plugins = require('gulp-load-plugins')(); | ||
|
||
gulp.task('build', tasks.build); | ||
|
||
const clean = () => del([config.paths.build]); | ||
|
||
exports.clean = clean; | ||
|
||
function watch() { | ||
gulp.watch(config.paths.stylusWatch, tasks.build); | ||
gulp.watch(config.paths.pugWatch, tasks.build); | ||
} | ||
|
||
// gulp.task('deploy', () => | ||
// gulp.src(paths.dist + '**/*') | ||
// .pipe(plugins.ghPages()) | ||
// ); | ||
|
||
// The default task (called when you run `gulp` from cli) | ||
const dev = gulp.parallel(tasks.build, watch); | ||
gulp.task('default', dev); |
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
Oops, something went wrong.