Coder Social home page Coder Social logo

grunt-boilerplate's Introduction

#Grunt Boilerplate for Web Designers and Front End Developers

Read all about this boilerplate in this blog post.

##Instructions

Open the terminal in the root of the project and type npm install, this will take care of all the dependencies. Also run npm install grunt-postcss pixrem autoprefixer-core cssnano to install the postcss plugins. Once done, type grunt, a browser window will open with your website running and will watch for changes and live reload accordingly.

Warning

This is a php project so in the gruntfile.js I'm proxying my htdocs xampp folder. Be sure to edit that if your project is somewhere else

		browserSync : {
			dev : {
				bsFiles : {
					src : ['css/*.css', 'images/*.*', 'js/build/production.min.js', '*.php', 'includes/*.php']
				},
				options : {
					proxy: "localhost/grunt-boilerplate", // <-- this here					
					watchTask : true 
				}
			}
		}

Also consider changing the url line in the penthouse task

url : 'http://localhost/grunt-boilerplate',

#Gems

The gems used in this project are Sass and Compass. If you don't have already installed them, type each of these commands in the terminal (anywhere):

gem install sass

gem install compass

##Deploying via FTP

Edit the .ftppass file with real data and edit the data in the gruntfile.js ftpush task. Once done deploy via ftp typing grunt ftpush

grunt-boilerplate's People

Stargazers

Kariston Stefane da Silva avatar Anton Kristensen avatar Andy Smith avatar

Watchers

James Cloos avatar Valerio 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.