Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennGeenen committed Feb 19, 2015
1 parent c164631 commit c566791
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
23 changes: 23 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,33 @@ var PhaserGenerator = yeoman.generators.Base.extend({
name: 'projectName',
message: 'What\'s the name of your application',
default: foldername
}, {
type: 'list',
name: 'phaserBuild',
message: 'Which version of Phaser do you want?',
choices: [
{
value: 'phaser.min.js',
name: 'Arcade Physics + P2 Physics (Default)'
},
{
value: 'custom/phaser-arcade-physics.min.js',
name: 'Arcade Physics'
},
{
value: 'custom/phaser-ninja-physics.min.js',
name: 'Ninja Physics'
},
{
value: 'custom/phaser-no-physics.min.js',
name: 'No Physics'
}
]
}];

this.prompt(prompts, function (props) {
this.projectName = props.projectName || ' ';
this.phaserBuild = props.phaserBuild || 'phaser.min.js';
done();
}.bind(this));
},
Expand Down
2 changes: 1 addition & 1 deletion app/templates/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ paths = {
assets: 'src/assets/**/*',
css: 'src/css/*.css',
libs: [
'src/bower_components/phaser-official/build/phaser.min.js'
'src/bower_components/phaser-official/build/<%= phaserBuild %>'
],
js: ['src/js/**/*.js'],
dist: './dist/'
Expand Down
2 changes: 0 additions & 2 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"readme": "",
"repository": "",
"version": "0.0.0",
"readme": "",
"repository": "",
"dependencies": {},

"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions app/templates/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<script src="http://localhost:35729/livereload.js"></script>
<!-- /build -->

<!-- build:js phaser.min.js-->
<script src="bower_components/phaser-official/build/phaser.min.js"></script>
<!-- build:js <%= phaserBuild.substring(phaserBuild.lastIndexOf('/') + 1) %>-->
<script src="bower_components/phaser-official/build/<%= phaserBuild %>"></script>
<!-- /build -->

<!-- build:js main.min.js -->
Expand Down

0 comments on commit c566791

Please sign in to comment.