Skip to content

Instantly share code, notes, and snippets.

@theskillwithin
Created April 21, 2016 04:46
Show Gist options
  • Save theskillwithin/142962d344a4ecc1f346d3cafa9ba6fe to your computer and use it in GitHub Desktop.
Save theskillwithin/142962d344a4ecc1f346d3cafa9ba6fe to your computer and use it in GitHub Desktop.
{
"name": "Heartcup",
"description": "Heartcup",
"main": "gulp.config.js",
"authors": [
"Brandastic"
],
"license": "",
"moduleType": [],
"homepage": "",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"jquery": "2",
"gsap": "^1.18.2",
"smooth-scroll": "https://github.com/cferdinandi/smooth-scroll.git#^9.1.1",
"lazyloadxt": "^1.0.5",
"normalize-scss": "normalize.scss#^4.0.3",
"normalize-css": "^4.1.1"
}
}
'use strict';
/** @type {GulpConfig} */
var config = require('./gulp/config.js');
var modules = require('./gulp/modules.js');
var gulp = require('gulp');
var jade = require('gulp-jade');
// Helper Tasks
//require('./gulp/tasks/jade.js')(gulp, config, modules);
require('./gulp/tasks/style.js')(gulp, config, modules);
require('./gulp/tasks/serve.js')(gulp, config, modules);
require('./gulp/tasks/html.js')(gulp, config, modules);
require('./gulp/tasks/move.js')(gulp, config, modules);
require('./gulp/tasks/javascript.js')(gulp, config, modules);
// Tasks
gulp.task('jade', function() {
gulp.src('src/index.jade')
.pipe(jade()) // pip to jade plugin
.pipe(gulp.dest('src')); // tell gulp our output folder
});
// run this task by typing in gulp jade in CLI
gulp.watch('src/*.jade',['jade']);
gulp.task('default', function () {
modules.runSequence(['style', 'javascript', 'html', 'move'], 'serve');
});
gulp.task('build', function() {
modules.runSequence(['style', 'javascript', 'html', 'move']);
});
{
"name": "heartcup",
"version": "1.0.0",
"description": "Heartcup",
"main": "build/index.html",
"scripts": {
"install": "bower install"
},
"author": "Brandastic",
"devDependencies": {
"bower": "^1.7.7",
"browser-sync": "^2.11.1",
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-clean": "^0.3.2",
"gulp-clean-css": "^2.0.3",
"gulp-concat": "^2.6.0",
"gulp-html-extend": "^1.1.6",
"gulp-htmlmin": "^1.3.0",
"gulp-jade": "^1.1.0",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.3",
"gulp-util": "^3.0.7",
"gulp-watch": "^4.3.5",
"normalize.scss": "^0.1.0",
"require-dir": "^0.3.0",
"run-sequence": "^1.1.5",
"jade": "*"
},
"dependencies": {
"normalize.scss": "^0.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment