Skip to content

Commit 109972d

Browse files
author
Aitor Aznar Álvarez
committed
First version
0 parents  commit 109972d

2,419 files changed

Lines changed: 540526 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gruntfile.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
meta: {
5+
package: grunt.file.readJSON('package.json'),
6+
src: {
7+
main: 'src/main',
8+
test: 'src/test'
9+
},
10+
bin: {
11+
coverage: 'bin/coverage'
12+
}
13+
},
14+
15+
jshint: {
16+
files: ['Gruntfile.js', 'src/**/*.js', 'test/specs/**/*.js'],
17+
options: {
18+
globals: {
19+
jQuery: true
20+
}
21+
}
22+
},
23+
24+
watch: {
25+
files: ['<%= jshint.files %>'],
26+
tasks: ['jshint', 'jasmine_node']
27+
},
28+
29+
jasmine_node: {
30+
options: {
31+
coverage: {
32+
print: 'detail'
33+
},
34+
35+
forceExit: true,
36+
match: '.',
37+
matchAll: false,
38+
specFolders: ['<%= meta.src.test %>/specs/'],
39+
extensions: 'js',
40+
captureExceptions: true,
41+
junitreport: {
42+
report: false,
43+
savePath : './build/reports/jasmine/',
44+
useDotNotation: true,
45+
consolidate: true
46+
},
47+
specNameMatcher: 'spec'
48+
},
49+
all: ['<%= meta.src.main %>']
50+
}
51+
52+
});
53+
54+
grunt.loadNpmTasks('grunt-contrib-jshint');
55+
grunt.loadNpmTasks('grunt-contrib-watch');
56+
grunt.loadNpmTasks('grunt-jasmine-node');
57+
58+
// Custom Tasks
59+
grunt.registerTask('dev', ['watch']);
60+
grunt.registerTask('test', ['jasmine_node']);
61+
62+
grunt.registerTask('default', ['test']);
63+
64+
};

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
A basic node project with jasmine testing
2+
=================
3+
4+
### Instructions
5+
* *node .* To launch the app, see the results in the terminal.
6+
* *grunt test* To launch jasmine tests
7+
* *grunt dev* To start developing with jshint and jasmine testing
8+
9+
10+
Base example:
11+
```js
12+
var john = new Person("John", "Box");
13+
console.log(john.name);
14+
// should equal "John Box"
15+
john.name = "John Travolta";
16+
console.log(john.lastName);
17+
// should equal "Travolta"
18+
console.log(john.firstName);
19+
// should equal "John"
20+
```
21+
22+
23+
### License ISC
24+
25+
Copyright (c) 2015, Company or Person's Name renaitor@gmail.com
26+
27+
Permission to use, copy, modify, and/or distribute this software for any
28+
purpose with or without fee is hereby granted, provided that the above
29+
copyright notice and this permission notice appear in all copies.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
32+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
33+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
34+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
35+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
36+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
37+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

node_modules/.bin/grunt-jasmine-node

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/jasmine-node

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/async/.jscsrc

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/async/CHANGELOG.md

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/async/LICENSE

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)