Coder Social home page Coder Social logo

gulp-base's Introduction

Gulp Base

  • Gulp Build system
  • LESS for CSS preprocessing.
  • Jade templating engine.
  • Browserify for module loading JavaScript.
  • Image minification.
  • BrowserSync server.

Usage

Getting started is done in a few steps.

1. Clone the Repo:

$ git clone https://github.com/aranja/gulp-base.git

2. Install dependencies:

$ [sudo] npm i

The server can always be booted up by the gulp server and for a production build, simply pass the flag --prod.

Note: When a server is not a necessity, just run gulp --prod to build a production ready version of the app.

The MIT License (MIT)

Copyright (c) 2015 Aranja http://aranja.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

gulp-base's People

Contributors

davidblurton avatar eirikurn avatar rthor avatar thorsteinsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gulp-base's Issues

Convert into a yeoman generator

yo aranja-webapp?

  • Use placeholders for project name across the base
  • If there are different ways to setup the base, they should be added as generator options (e.g. should there be a server task)
  • Should install and --save newest versions of all the plugins IMHO

Deploy task

All projects should support a pretty hands-off gulp deploy.

We tend to use app engine to host most static sites, so gulp-base should probably default to that for now.

I think see-further has a pretty good task to base it off.

Rename (or alias) tasks by semantic, not by tool

The point is to keep the cli commands the same across projects even though the tools change.

  • browserify -> scripts
  • less -> styles
  • jade -> templates

These are the names I've seen before and like the most, but another option is to name them after the output file type, js, css, html.

They can also be wrappers for other tasks, ie scripts can run scripts-main, scripts-browserify, scripts-vendor etc.

Add support for jspm?

Seems like a nice way to add support for ES6.

[ ] Replace browserify
[ ] Add jspm bundle to production builds
[ ] Add traceur runtime to production builds

Regression: browserify fails

[14:01:10] Starting 'browserify'...
_stream_readable.js:540
    var ret = dest.write(chunk);
                   ^
TypeError: undefined is not a function
    at Producer.ondata (_stream_readable.js:540:20)
    at Producer.emit (events.js:107:17)
    at Producer.Readable.read (_stream_readable.js:373:10)
    at flow (_stream_readable.js:750:26)
    at resume_ (_stream_readable.js:730:3)
    at _stream_readable.js:717:7
    at process._tickCallback (node.js:355:11)

Rename

Gulp might not be the task runner forever. Suggestions (in favorable order):

  • aranja-origin
  • aranja-base
  • aranja-app
  • aranja-web

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.