Skip to content

ncole458/generator-phonegapsass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-phonegapsass

Yeoman generator for an automated Cordova/PhoneGap (with Sass) project and build. Uses grunt-phonegap to automate platform builds and performs basic optimization tasks relevant for PhoneGap projects. Built from generator-phonegap.

We use this generator @ Hitori so will do my best to keep this maintained.

Installation

Yeoman

To use the generator you need to have yeoman installed. If you don't already, then:

$ npm install -g yo

Generator

Once you have downloaded the generator create a folder for your PhoneGap project and move to that folder:

$ mkdir my-phonegap-project && cd $_

Initiate the generator:

$ yo phonegapsass

It will prompt you for project name, package and the mobile platforms you want to build your project by default.

Project structure

config.xml											Phonegap configuration file
bower.json											
Gruntfile.js										
.gitignore
.bowerrc
app/												Application sources
	index.html										Auto-generated application entry html
	styles/											
	scripts/
	images/
	res/										
dist/												Processed source data from the app folder
phonegap/											A project structure generated by [phonegap CLI](https://npmjs.org/package/phonegap)
	www/											
	platforms/										Final output folder for platform specific builds
test/												

Working on your app

After generating your project, you can generate a full build for your desired platforms by issuing:

grunt platform-build

For the sample project this will automatically minify your source files and run platform builds as per your configuration. After the build has completed, you can find your appropriate platform specific code under the folder phonegap/platforms.

To perform a build without generating platform specific code and complete front-end dev in your web browser (browse to http://127.0.0.1:9000), simply use:

grunt serve

License

MIT License

About

Cordova/PhoneGap Sass Generator for Yeoman

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published