0.3.3 • Published 9 years ago

generator-bs v0.3.3

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

A Yeoman Generator for Bootstrap Projects:

  • LESS
  • Bootstrap mixins
  • Lesshat mixins
  • Font Awesome option
  • Preconfigured Grunt tasks
  • HTML Templating for better reuse of templates
  • Live reload :)
  • Coffee Script support for custom scripting (if you are coffee script fan... )

It can be used as a quick way to setup responsive bootstrap projects.

Getting Started

1. Install Yeoman

npm install -g yo

2. Install bootstrap project generator

To install generator-bs from npm, run:

npm install -g generator-bs

Finally, initiate the generator:

# create a project folder
mkdir project_dir && cd $_
yo bs

Start development.

# run grunt command to start development
grunt dev

Start editing the templates/index.html file

###Follow the mobile first approach ( read more )

Use css/less/variables.less to define less variables

Use css/less/styles.less to define your css

Use Mixins:

	// less/variables.less
	@my-btn-color:  #000;
	@my-btn-bg-color: #CCEEFF;
	@my-btn-border: #AAEECC;

	// less/styles.less
	.my-custom-btn{
    	.button-variant(@my-btn-color; @my-btn-bg-color; @my-btn-border);
    	.box-shadow(4px 4px 2px #888888);
    	font-weight : bold;
	}

	// templates/index.html
	<button class="btn my-custom-btn">My Button</button>
	

###Todo:

  • Grunt task for distribution build
  • Grouping media queries css together
  • Pretty formatted distribution build
  • Ability to choose responsive menu jquery plugin
  • Support multiple pages instead of only index.html

###Issue Tracking: Please log any issues or suggesstions @ https://github.com/surajair/generator-bs/issues

License

MIT

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago