Coder Social home page Coder Social logo

wp-theme's Introduction

A WORDPRESS STARTER KIT: NODE, GULP ,BOWER, MAMP

symlink to link your theme to the wp-content folder of your wordpress installation

ln -s ~/path/to/wp-theme/ ~/path/to/local_install_wordpress
  • example:*
  • ln -s ~/dev/work/theme/ ~/dev/localhost/wp-content/theme/ *

Create new theme Args:

gulp new --name test-variable --author mylasso

Will become a heading

Will become a sub heading

This will be Italic

This will be Bold

  • This will be a list item

  • This will be a list item

    Add a indent and this will end up as code

https://help.github.com/articles/basic-writing-and-formatting-syntax/

wp-theme's People

Contributors

elassol avatar

Watchers

 avatar

wp-theme's Issues

having issues to make plumber and the watch task play nicely

I'm using plumber with notify to log errors in a custom function

it throw me an error "Error in plugin 'plumber' Message: Can't pipe to undefined"

// ==========================================================
// Pumbler error function
// ==========================================================

function customPlumber(errTitle) {
return plumber({
errorHandler: notify.onError({
// Customizing error title
title: errTitle || "Error running Gulp",
message: "Error: <%= error.message %>",
sound: "Glass"
})
});
}

// ==========================================================
// STYLES TASK
// ==========================================================

gulp.task('sass', function(){
return gulp.src(paths.styles.src + '*/.scss')

    .pipe(customPlumber('Error Running Sass'))

    // inititalizr sourcemap before anyother pluging that alter  files
    .pipe(sourcemaps.init())
    .pipe(sass({
        includePaths: ['theme/bower_components'],
        precision: 2
    }))
    .pipe(autoprefixer({
      browsers: ['ie 8-9', 'last 2 versions']
    }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest(paths.styles.build))
    .pipe(browserSync.reload())

})

gulp.task('watch', ['browserSync'], function(){
gulp.watch(basePaths.src + 'sass//*.scss', ['sass']);
gulp.watch(paths.scripts.src + '
/.js', browserSync.reload);
gulp.watch('theme/
.html', browserSync.reload);
gulp.watch('theme/js/*/.js', ['jshint']);
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.