Skip to content

Commit

Permalink
Merge pull request #27 from adambullmer/update-app
Browse files Browse the repository at this point in the history
Bumped angular-bro app version
  • Loading branch information
adambullmer authored Apr 3, 2017
2 parents 8130964 + fce4230 commit ba5eaa6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ module.exports = generators.Base.extend({
this.destinationPath('Gruntfile.js')
);

this.fs.copyTpl(
this.templatePath('index.html'),
this.destinationPath('index.html'),
this
);

this.fs.copy(
this.templatePath('karma.conf.js'),
this.destinationPath('karma.conf.js')
Expand All @@ -83,6 +77,12 @@ module.exports = generators.Base.extend({
this
);

this.fs.copyTpl(
this.templatePath('app/index.html'),
this.destinationPath('app/index.html'),
this
);

this.fs.copyTpl(
this.templatePath('app/router.js'),
this.destinationPath('app/router.js'),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion generators/app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"angular-bro-app": "0.10.0",
"angular-bro-app": "0.10.1",
"broccoli": "0.16.9",
"grunt": "^1.0.1",
"grunt-broccoli": "^0.4.1",
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-angular-bro",
"version": "0.9.0",
"version": "0.10.0",
"description": "Angular app scaffolding and build chain",
"main": "generators/app/index.js",
"files": [
Expand Down
9 changes: 4 additions & 5 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ describe('generator-angular-bro:app', function () {

it('creates files', function () {
assert.file([
'.jscsrc',
'.jshintrc',
'.eslintrc',
'bower.json',
'Brocfile.js',
'circle.yml',
'Gruntfile.js',
'index.html',
'karma.conf.js',
'package.json',
'app/app.js',
'app/index.html',
'app/router.js',
'app/test-app.js',
'assets/.gitkeep',
Expand Down Expand Up @@ -52,8 +51,8 @@ describe('generator-angular-bro:app', function () {
assert.fileContent('bower.json', /\n "name": "test-app",\n/);
});

it('index.html', function () {
assert.fileContent('index.html', /\n <title>Test App<\/title>\n/);
it('app/index.html', function () {
assert.fileContent('app/index.html', /\n <title>Test App<\/title>\n/);
});

it('package.json', function () {
Expand Down

0 comments on commit ba5eaa6

Please sign in to comment.