Giter Club home page Giter Club logo

fts-gulp's Introduction

FTS-gulp

Fresh Tilled Soil's default gulp config.

Getting Started

git clone
cd FTS-gulp
npm install

Commands

// Run build and watch for changes
npm start

// Build dist folder
npm run dist

Project Structure

All development is limited to the /src folder. Running npm start will run a gulp task to compile and build a /dist folder which is referenced via the built in server at localhost:3000. With gulp running, saving a file within the /src folder will run the associated gulp task and update the /dist folder accordingly.

Developer

FTS uses linter configs to ensure consistent code. The npm start task will watch JS and SCSS files and run a linting report every time they are changed. While this is helpful, sometimes it's nice to have an automated way to make the suggested changes. If you're using the Atom browser, install the following plugins:

  • linter-eslint
  • stylefmt
  • linter-stylelint

The two linter plugins will allow you to see in real time in your editor any linting warnings and errors. When you want to try an automated fix within atom, open the command panel (shift cmd P) and then run: stylefmt: execute or Linter Eslint:Fix File

You could also install the command line utilities if you prefer, and run: stylefmt src/assets/css/**/*.css or eslint --fix src/assets/js/**/*.js

For now, this solution is preferred instead of a gulp task so the developer still has final say over the file format.

Tasks

serve()

BrowserSync

html()

Moves .html files to /dist folder.

svgmin()

gulp-svgmin

fonts()

Moves font files to /dist folder.

imagemin()

gulp-imagemin

styles()

gulp-sass

gulp-autoprefixer

es6()

webpack

fileinclude()

gulp-file-include

fts-gulp's People

Contributors

mattcass avatar scottaohara avatar aholachek 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.