Coder Social home page Coder Social logo

gulp-static-site-workflow's Introduction

Gulp Static Site Workflow

Version 2.0.2

Gulp workflow for simple static site/landing page development.

Features:

  1. Browser refreshing using BrowserSync
  2. Sass compilation, mapping, auto-prefixing, minifying, sourcemaps
  3. Javascript module bundling with Rollup, transpiling with Babel, linting with ES Lint, minifying, sourcemaps

Installation:

  1. Download zip/extract this repo to your local dev area
  2. Install packages
npm install
  1. Start a local server from the root of this repo
php -S localhost:8000
  1. Build the "dist" directory
gulp build
  1. Run the default task to get started
gulp

You Take It From Here:

At this point you should have the project open in your browser at: http://localhost:3000/

Work in the "src" directory. A directory structure is already created. All starting files can be removed, however, gulp tasks may need to be reconfigured. For example:

gulp.task('js', () => {
  gulp
    .src('./src/js/scripts.js')

The "js" task in gulpfile.js assumes you have an entry point for all of your scripts named "scripts.js." This will need to be adjusted if you don't want to use that name.

By default, JS and Sass files are not minified. You can add a flag called "production" to enable minifying:

gulp build --production

Everything that should be deployed, gets compiled to the "dist" directory.

gulp-static-site-workflow's People

Contributors

cstielper avatar

Stargazers

Shane Biggs avatar

Watchers

James Cloos avatar

gulp-static-site-workflow's Issues

Disable Prettier in HTML, CSS, JS

"[javascript]": { "editor.formatOnSave": false }, "[css]": { "editor.formatOnSave": false }, "[html]": { "editor.formatOnSave": false },

I think adding this to the vs-code settings will disable my prettier settings for formatting.

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.