Skip to content

Commit 75b6b31

Browse files
committed
closes #11
1 parent 9d67c2f commit 75b6b31

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

app/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ module.exports = yeoman.generators.Base.extend({
1414
install: function () {
1515
var prompts = [];
1616

17-
this.name = "jQuery Boilerplate";
17+
this.name = 'jQuery Boilerplate';
1818

19-
this.files = this.expandFiles('**/*', { cwd: this.sourceRoot(), dot: true });
19+
this.files = this.expandFiles('**/*', { cwd: this.sourceRoot(), dot: true });
2020

21-
var ignores = [
22-
'.git',
23-
'LICENSE',
24-
'README.md',
25-
];
21+
var ignores = [
22+
'.git',
23+
'LICENSE',
24+
'README.md',
25+
];
2626

2727
this.files.forEach(function(file) {
28-
if (ignores.indexOf(file) !== -1) {
29-
return;
30-
}
28+
if (ignores.indexOf(file) !== -1) {
29+
return;
30+
}
3131

32-
this.copy(file, file);
33-
}, this);
32+
this.copy(file, file);
33+
}, this);
3434

3535
this.config.save();
3636

37-
this.package = JSON.parse(this.readFileAsString(path.resolve(__dirname, '../package.json')));
37+
this.package = JSON.parse(this.readFileAsString(path.resolve(__dirname, '../package.json')));
3838

39-
this.log.writeln('Generating from ' + chalk.cyan('jQuery Boilerplate') + ' v' + chalk.cyan(this.package.version) + '...');
39+
this.log.writeln('Generating from ' + chalk.cyan('jQuery Boilerplate') + ' v' + chalk.cyan(this.package.version) + '...');
4040
}
4141

4242
});

test/test.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ describe('jQuery Boilerplate generator test', function () {
1010

1111
var runGen, options;
1212

13-
beforeEach(function () {
14-
options = {
15-
'skip-install': true
16-
};
13+
beforeEach(function () {
14+
options = {
15+
'skip-install': true
16+
};
1717

18-
runGen = helpers
19-
.run(path.join(__dirname, '../app'))
20-
.inDir(path.join(__dirname, './temp'))
21-
.withGenerators(['../../app', [helpers.createDummyGenerator(), 'mocha:app']]);
22-
});
18+
runGen = helpers
19+
.run(path.join(__dirname, '../app'))
20+
.inDir(path.join(__dirname, './temp'))
21+
.withGenerators(['../../app', [helpers.createDummyGenerator(), 'mocha:app']]);
22+
});
2323

24-
it('creates expected files', function (done) {
25-
var expected = [
26-
'.editorconfig',
27-
'.gitignore',
28-
'.jshintrc',
29-
'.travis.yml',
30-
'Gruntfile.js',
31-
'boilerplate.jquery.json',
32-
'demo/index.html',
33-
'dist/jquery.boilerplate.js',
34-
'dist/jquery.boilerplate.min.js',
35-
'package.json',
36-
'src/jquery.boilerplate.coffee',
37-
'src/jquery.boilerplate.js'
38-
];
24+
it('creates expected files', function (done) {
25+
var expected = [
26+
'.editorconfig',
27+
'.gitignore',
28+
'.jshintrc',
29+
'.travis.yml',
30+
'Gruntfile.js',
31+
'boilerplate.jquery.json',
32+
'demo/index.html',
33+
'dist/jquery.boilerplate.js',
34+
'dist/jquery.boilerplate.min.js',
35+
'package.json',
36+
'src/jquery.boilerplate.coffee',
37+
'src/jquery.boilerplate.js'
38+
];
3939

40-
runGen.withOptions(options).on('end', function () {
40+
runGen.withOptions(options).on('end', function () {
4141
assert.file(expected);
42-
done();
43-
});
44-
});
42+
done();
43+
});
44+
});
4545
});

0 commit comments

Comments
 (0)