Giter Site home page Giter Site logo

frontend-starter-kit's Introduction

Features

Automation

  • Gulp - Task Runner.
  • Bower - Package Manager.
  • Browsersync - Watch project changes and updates browsers.

HTML

CSS

Javascript

Test

Visual regression testing

Coverage

HTML

Assets

Release

Instalation

You will need to install NodeJS.

# Clone the repository.
$ git clone [email protected]:amazingSurge/frontend-starter-kit.git project
$ cd project

# Install Gulp, Bower and babel-cli, if you haven't already.
$ npm install -g gulp-cli babel-cli bower assemble

# Installs all the dependencies.
$ npm install

# gulp-scss-lint plugin requires Ruby and scss-lint
$ gem install scss_lint

# Installs all packages.
$ bower install

# Start a mini server to view the project and watch their changes on http://localhost:3000/
$ gulp

Available Tasks

  • gulp or gulp watch Start watch for changes and server with Browsersync.
  • gulp build Run all development tasks
  • gulp serve Start server with Browsersync.
  • gulp clean Clean output directories.
  • gulp lint Lint everything.
  • gulp pagespeed Run PageSpeed Insights.

Html

  • gulp html Complie handlebar templates into html files.
  • gulp htmlhint Lint html files using htmlhint.
  • gulp w3cjs Lint html files using w3c.
  • gulp a11y Lint html files using a11y.
  • gulp clean:html Clean out distribution html files.

Javascript

  • gulp bundler Bundle javasript modules.
  • gulp scripts Concatenate and minify JavaScript.
  • gulp eslint Lint ES6 files using eslint.
  • gulp jshint Lint Javascript files using jshint.
  • gulp clean:scripts Clean out distribution javascript files.

CSS

  • gulp styles Compile and automatically prefix stylesheets.
  • gulp csslint Lint css files using csslint.
  • gulp scsslint Lint scss files using scsslint.
  • gulp stylelint Lint css files using stylelint.
  • gulp clean:styles Clean out distribution stylesheets files.

Assets

  • gulp images Optimize all images.
  • gulp svg Create svg sprites.
  • gulp fonts Create fontface files.
  • gulp favicons Create favicon images.
  • gulp icons Create icons.
  • gulp assets Copy assets to distribution directory.
  • gulp assets:clean Clean out assets from distribution directory.

Tests

  • gulp tdd Test for Test Driven Development purposes.
  • gulp test Test for Continuous Integration purposes.

Visual regression testing

  • gulp visual Run tests for visual regression.
  • gulp clean:visual Clean out visual regression testing screenshots and results files.

Coverage

  • gulp coverage Generate coverage report.

Release

  • gulp release Bump version and release to npm and github.
Standalone file tasks
  • gulp html --page=index.hbs
  • gulp scripts --file=index.js
  • gulp styles --file=styles.scss
  • gulp svgs --folder=example
  • gulp assets --package=jquery
  • gulp assets:clean --package=jquery

Directories

  • src/html - Source files for html.
  • src/js - Source files for javascript.
  • src/scss - Source files for css.
  • src/svgs - Svg files for sprites.
  • src/images - Source files for images.
  • src/icons - Source files for icons.
  • src/fonts - ttf fonts that will generated into fontface files.

Other directories:

  • build - Intermediate files produced by the development server.
  • dist - The output of gulp dist, which contains your distribution-ready app.

Main application files:

  • src/js/index.js - The application's entry point
  • src/scss/style.scss - Global styles for your application

Main build files:

  • gulpfile.babel.js - Build scripts written with gulp

frontend-starter-kit's People

Contributors

itcat99 avatar

Watchers

turbine yan 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.