Code Monkey home page Code Monkey logo

gulp-handlebars-livereload's Introduction

How to run this example

Requires global gulp and gulp-cli to be installed

Also requires node/npm > 18.x.

If you have homebrew installed on OSX this is as easy as brew install node.

If you don't have homebrew on OSX, visit http://brew.sh

To run the demo, additionally check out https://github.com/scottlet/gulp-handlebars-livereload-src-example then copy into the root of this folder as "src" (This is now included by default as a git submodule)

NPM pre 7: npm install - NPM 7 and above: npm install --legacy-peer-deps

Then npm run develop to run the livereload local server ( http://localhost:9000 ) - also there will be a documentation server on http://localhost:9001

npm run deploy to deploy - this puts all of the required files into a deploy directory. You can now put this directory somewhere else and run it.

What this gives you

  • Everything neatly wrapped in a src folder.
  • Fast build using gulp
  • Linting using eslint and sass-lint
  • Livereload - any change to any of the source files will be almost instantly reflected in a browser
  • Serve to your local network - ifconfig (or ipconfig on PC) will tell you your IP address, http://<ip address>:9000 will work on most networks.
  • Static resources precompressed with both brotli and gzip to serve using nginx or apache - How To Enable GZIP & Brotli Compression for Nginx on Linux or Precompress a static website with Brotli and Gzip for apache
  • Breakpoints shared between CSS and JS
  • Static resource path versioned and that version number shared between build and Javascript (so you can serve static resources from a CDN and not care about expiry date).
  • Linting
  • jsconfig.json for type checking/autocomplete in VSCode/VSCodium
  • ES6 modules and imports/exports in Javascript, ~/ shortcut to local modules at src/js/modules
  • auto generated documentation from JSDoc.

gulp-handlebars-livereload's People

Contributors

scottlet avatar

Stargazers

Dashpilot avatar Dan Peddle avatar

Watchers

James Cloos avatar

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.