Skip to content

This is a simple workflow to start new projects, focused in performance.

Notifications You must be signed in to change notification settings

leonardofaria/frontend-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend boilerplate

This is a simple workflow to start new projects, focused in performance.

license license

Features

Instalation

You will need to install NodeJS.

# Clone the repository:
$ git clone  --recursive git@github.com:leonardofaria/frontend-boilerplate.git
$ cd frontend-boilerplate

# Installs all the dependencies:
$ npm install && npm start

# Starts a local server on port 3000:
$ gulp

Styles

The style structure is initially divided into:

@import "variables";
@import "bootstrap";
@import "mixins";

You probably don't need to use the complete Bootstrap version. The bootstrap.scss file specifies which files to import. Here is what is imported:

  • _variables.scss: variables used by Bootstrap to setup HTML styling
  • _mixins.scss: mixins that are used by other files
  • _normalize.scss: Nicolas Gallagher's normalize.css
  • _reboot.scss: global reset and additional rules on top of normalize.css
  • _grid.scss: flexbox grid
  • _utilities.scss: utilities classes

The mixins.scss contains an image-replacement mixin.

Tasks

  • gulp serve: start local server
  • gulp css: compile sass, auto-prefix, write sourcemap, minify CSS
  • gulp lint:css: lint css according to .stylelintrc file
  • gulp js: concat and minify JS
  • gulp deploy:github: create a gh-pages branch with public directory content
  • gulp rsync: sync the public directory content via SSH

Todo

  • Rewrite the gulpfile.js in a ES6 format (or replace to NPM scripts)
  • Finish the stylelint settings
  • Add a JS linter

Maintainer

Contributing

Once you've made your great commits:

  1. Fork
  2. Create a branch with a clear name
  3. Make your changes (Please also add/change spec, README and CHANGELOG if applicable)
  4. Push changes to the created branch
  5. Create an Pull Request

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

This is a simple workflow to start new projects, focused in performance.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published