Vulcan Studios - Backbone Frontend Kit.
- Folder Structure
- Requirements
- Instalation
- Gulp Tasks
- Docs Español
Folder structure options and naming conventions for software projects
.
├── bower_components # Bower Components
│
├── dist # Compiled files (alternatively `build`)
│ ├── css # Css
│ ├── fonts # Fonts
│ ├── img # Images
│ └── js # JavaScript
│
├── docs # Documentation files (alternatively `doc`)
│
├── src # Source files (alternatively `lib` or `app`)
│ ├── fonts # Fonts
│ ├── img # Images
│ ├── app # Javascript
│ └── sass # Sass
│
├── tasks # Gulp Task
│ └── templates # Templates
│
├── test # Automated tests (alternatively `spec` or `tests`)
│ ├── benchmarks # Load and stress tests
│ ├── integration # End-to-end, integration tests (alternatively `e2e`)
│ └── unit # Unit tests
│
├── tools # Tools and utilities
│
├── .gitignore
├── LICENSE
├── README.md
├── bower.json # Bower file
├── config.json # Config Gulp
├── gulpfile.js # Gulpfile
└── package.json # Node modules
-
node >= 5
-
ruby >= 2.0
(if you build the sass files with compass)
Run the following commands:
-
sudo gem install compass sass
(if you build the sass files with compass) -
cd folder
-
sudo npm install
-
bower install
-
gulp
-
Navigate to:
http://localhost/yourproject/
This task run basic components to compile SASS and JavaScript files and reload your browser with the last version of the code:
gulp
This will be watching for changes in SASS files and changes into dist/css
, dist/js
and views
folders.
gulp compass
This will be watching for changes in SASS files to generate CSS files with compass.
gulp sass
This will be watching for changes in SASS files to generate CSS files with node-sass.
gulp rsass
This will be watching for changes in SASS files to generate CSS files with gulp-ruby-sass.
If you want to have the latest version of the code in the browser, make sure to run this command:
gulp watch
This will be watching for changes in dist/css
, dist/js
and views
files.
To compile the sass files with the preferred task, just run this command:
gulp watch:compass|sass|rsass
If you want push to production:
gulp build
This will be build the files for production.
##License
MIT © Vulcan Estudios Ltda