From: Anthony Talarico Date: Fri, 16 Mar 2018 20:54:55 +0000 (-0400) Subject: setting up dev pipeline X-Git-Tag: v1.0.0^2~55 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6046ba0b79602bcae749695d116b99ea96c58f0a;p=WP-Themes%2Fhospitalitymentality.git setting up dev pipeline setting dev tools --- diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..b009dfb --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/glm-dev/js/glm-dev.js b/glm-dev/js/glm-dev.js new file mode 100644 index 0000000..e8f2ae2 --- /dev/null +++ b/glm-dev/js/glm-dev.js @@ -0,0 +1,4 @@ +jQuery(function($){ + + +}); \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..8852833 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,63 @@ +var gulp = require('gulp'); +var rename = require('gulp-rename'); +var sass = require('gulp-sass'); +var concat = require('gulp-concat'); +var copy = require('gulp-copy'); +var uglify = require('gulp-uglify'); +var jshint = require('gulp-jshint'); +var clean = require('gulp-clean'); +var maps = require('gulp-sourcemaps'); +var babel = require("gulp-babel"); +var jade = require('gulp-jade-php'); + +var sassPaths = [ + 'bower_components/foundation-sites/scss', +]; + +function swallowError (error) { + // If you want details of the error in the console + console.log(error.toString()) + this.emit('end') +} + +function swallowError (error) { + // If you want details of the error in the console + console.log(error.toString()); + this.emit('end'); +} +gulp.task('sass', function() { + return gulp.src('glm-dev/scss/glm-dev.scss') + .pipe(maps.init()) + .on('error', swallowError) + .pipe(sass({ + includePaths: sassPaths , + outputStyle: 'compressed' + })).on('error', swallowError) + .pipe(maps.write('.')) + .pipe(gulp.dest('assets/stylesheets')); +}); + +gulp.task('lint', function (){ + return gulp.src('glm-dev/js/*.js') + .pipe(jshint()) + .on('error', swallowError) + .pipe(jshint.reporter('default')); +}); + +gulp.task("concat-uglify", function (){ + return gulp.src(['glm-dev/js/**/*.js']) + .pipe(concat('glm-dev.js')) + .pipe(uglify()) + .pipe(gulp.dest('assets/javascript')); +}); +gulp.task('clean', function (){ + return gulp.src(['js/foundation.min.js', 'js/motion-ui.min.js', 'js/what-input.min.js','js/custom/dist.js' ,'js/app.js','css/app.css','css/app.css.map','js/transpiled/dist.js'], {read: false}) + .pipe(clean()); +}); +gulp.task('watch', function () { + gulp.watch('glm-dev/js/**/*.js',['concat-uglify', 'lint']); + gulp.watch('glm-dev/scss/**/*.{scss,sass}', ['sass']); +}); +gulp.task('build', ["copy-bower","sass"]); +gulp.task('runwatch', ["sass", "concat-uglify","lint"]); +gulp.task('default', ["runwatch","watch"]); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..8be7cc6 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "coldwater", + "description": "Gaslight Media", + "version": "0.0.1", + "devDependencies": { + "babel-preset-es2015": "~6.13.2", + "bower": "^1.8.2", + "gulp": "^3.9.0", + "gulp-autoprefixer": "^3.1.0", + "gulp-babel": "^6.1.2", + "gulp-clean": "^0.3.2", + "gulp-concat": "^2.6.0", + "gulp-copy": "0.0.2", + "gulp-jshint": "^2.0.1", + "gulp-rename": "^1.2.2", + "gulp-sass": "^2.3.2", + "gulp-sourcemaps": "^1.6.0", + "gulp-uglify": "^2.0.0", + "jshint": "^2.9.2", + "node-sass": "^3.8.0" + }, + "dependencies": { + "gulp-jade-php": "^2.0.0-0" + } +} diff --git a/style.css b/style.css index 6909600..fc19d28 100644 --- a/style.css +++ b/style.css @@ -1,5 +1,5 @@ /* -Theme Name: AccessPress Parallax +Theme Name: Hospitality Mentality Theme URI: https://accesspressthemes.com/wordpress-themes/accesspress-parallax/ Author: AccessPress Themes Author URI: https://accesspressthemes.com/