Git Product home page Git Product logo

compile-tools's Introduction

Compiling Tools

Simple examples of compile tools using NPM scripts.

Requirements

Nodejs

ESLint

Helps to detect errors and potential problems in your JavaScript. Watches all JavaScript files for changes.

Instructions

  1. Install Node modules npm install
  2. Lint JavaScript npm run compile:js

Sass

Basic Sass configuration and setup, uses node-sass to compile Sass to CSS. Watches all Sass files for changes.

Instructions

  1. Install Node modules npm install
  2. Watch for changes and compile SCSS to CSS npm run compile:sass

SVG Sprite / Sass SVG Sprite

Automated SVG spriting.

Instructions

  1. Install Node modules npm install
  2. compile Sprite npm run sprite

Browserify / ESLint Browserify / ESLint Browserify Minifyify

Browserify lets you require modules in the browser and bundles all your dependencies. Example with ESLint lints JavaScript before bundling and the example with Minifyify compresses JavaScript after bundling and maintains a sourcemap for easier debugging in the browser. Watches all JavaScript files for changes.

Instructions

  1. Install Node modules npm install
  2. compile JavaScript npm run compile:js

Critical

Critical extracts & inlines critical-path (above-the-fold) CSS from HTML.

Instructions

  1. Install Node modules npm install

  2. compile JavaScript npm run critical

Browser-sync

Browser-sync updates the browser automatically every time you save a change to your project files.

Instructions

  1. Install Node modules npm install

  2. Sync browser npm run browser-sync

Licence

Licensed under MIT Licence

compile-tools's People

Stargazers

 avatar

Watchers

 avatar  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.