Skip to content

a boilerplate to start the most basic projects

Notifications You must be signed in to change notification settings

blmorito/ironwood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ironwood

a boilerplate to start the most basic projects

About Ironwood

This project was created to be a boilerplate for creating simple frontend sites (HTML,CSS,JS) with the help of more advanced tools like a task runner (Gulp) with various plugins (sass, babel, autoprefixer, autoreload, etc..) to make development more efficient.

Prerequisites

You need to have node.js and npm(comes with node.js) installed in your computer.

You also need to be familiar with the task runner gulp.js since that is the backbone of this project. (Please do send a pull request if you want to implement a different task runner or to use plain npm scripts). There is a good tutorial from css-tricks on how to use gulp.

This project also assumes you have basic knowledge with Sass.

Project Structure

├───src -> Source files for the project
│   ├───img -> Image assets
│   ├───videos -> Video assets
│   ├───fonts  -> font assets
│   ├───scss -> Sass styles
│   │   └───styles.scss -> Main file in where all other sass files should be included.
│   └───html -> htmls 
│   │   ├───components -> Htmls to be used for gulp-html-extend
│   └───js -> Scripts
├───package.json -> NodeJS configuration file for manage node and project dependencies
├───gulpfile.js -> Gulp Tasks

Features

  • Local http server with autoreload (Browsersync)
  • Babel to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in old browsers or environments.
  • Autoprefixer to automatically add prefix to css properties that require different prefix for different browsers
  • Sourcemaps for js and css to easily debug js and css code in the browser

All features mentioned above are already set up and integrated to the gulp tasks.

How to use

  1. Make sure you run npm install to install project dependencies.
  2. To start the local server and start developing, run npm run dev in the terminal.

Adding additional js/css libraries

To add additional libraries, make sure they are installed through npm (or bower/yarn) and then add their paths in the src of copy:plugins:js and copy:plugins:css gulp tasks (or you can also import the sass src of the library in styles.scss). Update your imports in the <head></head> in the html accordingly.

About

a boilerplate to start the most basic projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published