Skip to content

Commit

Permalink
v0.2.0 - Readme, release and package update
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshpaul committed Apr 2, 2015
1 parent 615b117 commit 2772bb1
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 60 deletions.
169 changes: 111 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,58 @@
# Generator for Frontend Projects

[![Join the chat at https://gitter.im/FuelFrontend/generator-smacss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/FuelFrontend/generator-smacss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

<!-- TODO: Resolve codeclimate issues and enable it
[![Code Climate](https://codeclimate.com/github/FuelFrontend/generator-smacss/badges/gpa.svg)](https://codeclimate.com/github/FuelFrontend/generator-smacss)
-->

[Work In Progress] Perfectionist generator that scaffolds out different types of Front-end application
[Work In Progress] Perfectionist generator that scaffolds out different types of Frontend application

# Features

- **Different Projects; One Generator** - Create your type of project in fairly simple steps
- **Highly Maintainable** - Uses [SMACSS](https://smacss.com/) approach (BEM, OOCSS, ITCSS to be followed soon)
- **Highly Maintainable** - Uses [SMACSS](https://smacss.com/) approach (BEM, OOCSS, ITCSS in backlog)
- **Readymade** — Directory structure, Naming convention, Linking your app done right.
- **Speedy Workflow** - CSS Preprocessor (Sass), Partials, Browser Sync, Live reload.
- **Performance Matters** - Minify HTML, CSS, & JS. Optimize Images.
- **Quick Commands** - Generate Build, Clean up, Zip project and more.
- **Quick Commands** - Generate Build, Clean up, Zip project, Angular commands and lot more to come.

# App Types

- **Simple Web App** — Sometimes you just need a gulp server(localhost), scss compiler & browser-sync(live reload). Well that's exactly what this app is for.
- **Full Pack Web App** - Thinking of creating a solid frontend base with proper structure, well optimization; choose this applicaton type which comes with power features.
- **Angular App** - Work In Progress
- **Angular App** - Angular app with basic configurations and quick commands for creating controllers, directives, services and filters. More to come!

# Getting Started

**Installation**

You need to have [NodeJS](http://nodejs.org/) & [Yeoman](http://yeoman.io/) installed on your machine
```````
npm install -g yo
````````

Install smacss generator
```````
npm install --global generator-smacss
```````

**Creating project**

- Run `yo smacss`
- Answer simple questions in terminal
- Generator will automatically try to install dependencies in your project folder.

- You got your installation successfull 'You are lucky', run the server following the instruction in next section.
- In case you got any error you may not have admin rights
- a) cd to your project folder
- b) Run `sudo bower install & npm install` followed by your machine password in Mac/Linux environment; Windows user try running as administrator

**Run your project**

At this stage your project is setup and dependencies are installed, It's showtime!

- Run `gulp` to run the server, and you are good to start your development.

# Directory Structure

Expand All @@ -31,8 +65,6 @@ Your directory structure will look like this
│ ├── images
│ ├── fonts
│ ├── js
│ │ └── lib
│ │ │ └── third-party-files.js
│ │ └── application.js
│ ├── css
│ │ └── master.css
Expand Down Expand Up @@ -60,8 +92,6 @@ Your directory structure will look like this
``````````
├── app
│ ├── bower_components
│ │ ├── jquery
│ │ └── modernizr
│ ├── images
│ ├── js
│ │ └── lib
Expand Down Expand Up @@ -98,83 +128,106 @@ Your directory structure will look like this

**Angular App**

_WIP_


# Getting Started

**Installation**

You need to have [NodeJS](http://nodejs.org/) & [Yeoman](http://yeoman.io/) installed on your machine
```````
npm install -g yo
````````
├── app
│ ├── bower_components
│ ├── images
│ ├── js
│ │ └── lib
│ │ │ └── third-party-files.js
│ │ └── controllers
│ │ └── directives
│ │ └── services
│ │ └── filters
│ │ └── application.js
│ ├── css
│ │ └── master.css
│ ├── partials
│ │ └── header.html
│ │ └── footer.html
│ ├── scss
│ │ └── modules
│ │ │ └── module-name.scss
│ │ └── pages
│ │ │ └── page-landing.scss
│ │ └── base.scss
│ │ └── layout.css
│ │ └── mixins.css
│ │ └── reset.css
│ │ └── variables.css
│ └── index.html
├── build
│ └── build-files
├── zip
│ └── compressed-files
├── node_modules
├── package.json
├── gulpfile.js
├── bower.json
├── .bowerrc
├── .gitattributes
└── .gitignore
````````

Install smacss generator
```````
npm install --global generator-smacss
```````

**Creating project**

- Run `yo smacss`
- Answer simple questions in terminal
- Generator will automatically try to install dependencies in your project folder.

- You got your installation successfull 'You are lucky', run the server following the instruction in next section.
- In case you got any error you may not have admin rights
- a) cd to your project folder
- b) Run `sudo bower install & npm install` followed by your machine password in Mac/Linux environment; Windows user try running as administrator

**Run your project**
# Quick commands

At this stage your project is setup and dependencies are installed, It's showtime!
Terminal commands to speed up repetitive tasks you do in projects. Simple app idea is to maintain as minimal as possible; so quick commands won't work.

- Run `gulp` to run the server, and you are good to start your development.
######General - Applies to Full Pack and Angular

# Quick commands
* **Clean** _Remove all files from your build folder_

```````
gulp clean
```````

**Angular App**
* **Zip** _Compress you app & save in `zip` folder with timestamp for quick sharing_

Use terminal to create controller, service, directive etc. Run following commands to create.
```````
gulp zip
```````

1) Controller
######Angular App

creates a controller in app/js/controllers
* **Controller** _Creates a controller in `app/js/controllers`_

```````
yo smacss:controller <name>
```````
```````
yo smacss:controller <name>
```````

* **Service** _Creates a service in `app/js/services`_

2) Service
```````
yo smacss:service <name>
```````

creates a service in app/js/services
* **Directive** _Creates a directive in `app/js/directives`_

```````
yo smacss:service <name>
```````
```````
yo smacss:directive <name>
```````

3) Directive
* **Filter** _Creates a filter in `app/js/filters`_

creates a directive in app/js/directives
```````
yo smacss:filter <name>
```````

```````
yo smacss:directive <name>
```````
# Environment

4) Filter
Generator Smacss comes with development and producution modes. In default it runs in development mode.

creates a filter in app/js/filters
You can switch to production mode using the following command

```````
yo smacss:filter <name>
gulp prod
```````

<!-- TODO: Add documentaiton and enable this
# Docs
To be updated soon... stay tuned
-->

# Options

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-smacss",
"version": "0.1.9",
"version": "0.2.0",
"description": "Perfectionist Frontend Generator",
"author": {
"name": "Logesh Paul",
Expand Down
7 changes: 6 additions & 1 deletion Version.md → release.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Version
# Release History

**v0.2.0**
- Two great and good to have features included
- Completely automated dependency installation, trigger local server, open the app in browser
- Angular app quick commands for creating - controller, directive, filter and services

**v0.1.9**
- Bower integrated to handle dependencies for full pack and angular apps
Expand Down

0 comments on commit 2772bb1

Please # to comment.