Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
soycode committed Feb 23, 2015
1 parent e11062c commit b253ff2
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
generator-freedom
=================

Yeoman generator for freedom apps
Yeoman generator for freedom.js web
applications. Current capabilities:

- fetch freedom.js (either regular or platform-specific flavors) from
npm, bower, or [freedomjs.org](http://freedomjs.org/)
- create appropriate freedom.js-specific boilerplate files for a
simple working demo application ([Counter]
(http://www.freedomjs.org/dist/freedom/latest/demo/counter/))
- Perform various optional tasks:
- Initiate a git repository with appropriate .gitignore
- Create a Gruntfile with some useful tasks (installing needed npm packages)
- Installing Bootstrap from bower

Current known issues:
- Need to publish other freedom.js flavors to bower
- Demo application only works with regular freedom.js (i.e. not
Chrome/Firefox/Node versions)
- Could use more testing (i.e. it's not been run much on many
platforms -
[filing issues](https://github.com/freedomjs/generator-freedom/issues)
is very welcome!)

Planned features:
- Options to load in more advanced freedom.js functionality (see
[freedom.js interfaces](https://github.com/freedomjs/freedom/tree/master/interface))
- Secondary generator to customize freedom app API (in manifest.json
file)
- Boilerplate for tests and test running
- Maybe more optional features/3rd party integration (make Git repo on
GitHub, test running on 3rd party services, packaging/deploying app, etc.)
14 changes: 14 additions & 0 deletions app/USAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Description:
Creates a basic freedom.js-powered web application

Example:
yo freedom

This will create:
Gruntfile.js: Grunt tasks for building/running the application
package.json: Development packages installed by npm

src/index.html: Index for freedom.js application
src/main.js: Main application logic
src/manifest.json: Manifest describing API for freedom.js application
src/static/style.css: Initial stylesheet for demo application
3 changes: 2 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ module.exports = generators.Base.extend({
setupgrunt: function () {
if (gruntfile) {
this.npmInstall(['grunt-contrib-clean', 'grunt-contrib-connect',
'grunt-contrib-copy', 'grunt-contrib-jshint']);
'grunt-contrib-copy', 'grunt-contrib-jshint'],
{ 'saveDev': true });
var freedompath;
if (freedomsource === 'npm') {
freedompath = 'require.resolve(\'' + freedomtype + '\')';
Expand Down
2 changes: 1 addition & 1 deletion app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"contributors": [
"You <[email protected]>"
],
"dependencies": {
"devDependencies": {
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-connect": "^0.9.0",
"grunt-contrib-copy": "^0.5.0",
Expand Down

0 comments on commit b253ff2

Please sign in to comment.