Code Monkey home page Code Monkey logo

mjc-framework-gulp's Introduction

Getting Started

To get started, we need to install all dependencies for our new project:

npm install && bower install

Next, let's start our local web server. Our watch task will compile all necessary files when changed (Jade, SCSS, JS, etc):

gulp serve

At build time, if this is a project that will be integrated into a CMS:

gulp build

At build time, if this is a project that will be a static flat site:

gulp build:flat

To view our dist files locally to ensure all tasks are working properly, simply:

gulp serve:prod

To run our test files, simply

gulp serve:test

Output dev files

To output dev verions (unminified versions of css/jade components/js files), open up gulpfile.babel.js and set

global.devEnv = true;

Individual Tasks

Rebuild only our styles + dev styles

gulp task:styles

Rebuild only our scripts + dev scripts

gulp task:scripts

Useful Tasks

Lint our script file(s) for possible errors/warnings

gulp lint:scripts

Lint our gulp file(s) for possible errors/warnings:

gulp lint:gulp

Inject our app's script files to our _foot.jade file:

gulp inject:scripts

Inject our vendor dependencies from Bower to our _foot.jade file:

gulp wiredep

Clean our .tmp and dist folders to start fresh:

gulp clean

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.