Skip to content

Commit 85fc6c1

Browse files
committed
Initial
0 parents  commit 85fc6c1

Some content is hidden

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

44 files changed

+1079
-0
lines changed

.bowerrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "bower_components"
3+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
bower_components/
3+
.sass-cache/
4+
.tmp/
5+
dist/

.jshintrc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"globalstrict": true,
3+
"bitwise": true,
4+
"camelcase": true,
5+
"curly": true,
6+
"eqeqeq": true,
7+
"immed": true,
8+
"indent": 2,
9+
"latedef": true,
10+
"newcap": true,
11+
"noarg": true,
12+
"quotmark": "single",
13+
"regexp": true,
14+
"undef": true,
15+
"unused": true,
16+
"strict": true,
17+
"trailing": true,
18+
"smarttabs": true,
19+
"white": true,
20+
"validthis": true,
21+
"globals": {
22+
"angular": false,
23+
// Angular Mocks
24+
"inject": false,
25+
"module": false,
26+
// JASMINE
27+
"describe": false,
28+
"it": false,
29+
"before": false,
30+
"beforeEach": false,
31+
"after": false,
32+
"afterEach": false,
33+
"expect": false
34+
}
35+
}

.yo-rc.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"generator-gulp-angular": {
3+
"version": "0.11.0",
4+
"props": {
5+
"angularVersion": "~1.3.4",
6+
"angularModules": [
7+
{
8+
"key": "animate",
9+
"module": "ngAnimate"
10+
},
11+
{
12+
"key": "cookies",
13+
"module": "ngCookies"
14+
},
15+
{
16+
"key": "touch",
17+
"module": "ngTouch"
18+
},
19+
{
20+
"key": "sanitize",
21+
"module": "ngSanitize"
22+
}
23+
],
24+
"jQuery": {
25+
"key": "jquery2"
26+
},
27+
"resource": {
28+
"key": "none",
29+
"module": null
30+
},
31+
"router": {
32+
"key": "ui-router",
33+
"module": "ui.router"
34+
},
35+
"ui": {
36+
"key": "bootstrap",
37+
"module": null
38+
},
39+
"bootstrapComponents": {
40+
"key": "ui-bootstrap",
41+
"module": "ui.bootstrap"
42+
},
43+
"cssPreprocessor": {
44+
"key": "node-sass",
45+
"extension": "scss"
46+
},
47+
"jsPreprocessor": {
48+
"key": "none",
49+
"extension": "js",
50+
"srcExtension": "js"
51+
},
52+
"htmlPreprocessor": {
53+
"key": "none",
54+
"extension": "html"
55+
},
56+
"foundationComponents": {
57+
"name": null,
58+
"version": null,
59+
"key": null,
60+
"module": null
61+
},
62+
"paths": {
63+
"src": "src",
64+
"dist": "dist",
65+
"e2e": "e2e",
66+
"tmp": ".tmp"
67+
}
68+
}
69+
}
70+
}

bower.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "scriptfodder-stats",
3+
"version": "0.0.0",
4+
"dependencies": {
5+
"angular-animate": "~1.3.4",
6+
"angular-cookies": "~1.3.4",
7+
"angular-touch": "~1.3.4",
8+
"angular-sanitize": "~1.3.4",
9+
"jquery": "~2.1.1",
10+
"angular-ui-router": "~0.2.13",
11+
"bootstrap-sass-official": "~3.3.1",
12+
"angular-bootstrap": "~0.12.0",
13+
"angular": "~1.3.4",
14+
"jQuery.Marquee": "[email protected]:aamirafridi/jQuery.Marquee.git#~1.3.2"
15+
},
16+
"devDependencies": {
17+
"angular-mocks": "~1.3.4"
18+
},
19+
"resolutions": {
20+
"jquery": "~2.1.1",
21+
"angular": "~1.3.4"
22+
}
23+
}

e2e/.jshintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../.jshintrc",
3+
"globals": {
4+
"browser": false,
5+
"element": false,
6+
"by": false,
7+
"$": false,
8+
"$$": false
9+
}
10+
}

e2e/main.po.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* This file uses the Page Object pattern to define the main page for tests
3+
* https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ
4+
*/
5+
6+
'use strict';
7+
8+
var MainPage = function() {
9+
this.jumbEl = element(by.css('.jumbotron'));
10+
this.h1El = this.jumbEl.element(by.css('h1'));
11+
this.imgEl = this.jumbEl.element(by.css('img'));
12+
this.thumbnailEls = element(by.css('body')).all(by.repeater('awesomeThing in awesomeThings'));
13+
};
14+
15+
module.exports = new MainPage();

e2e/main.spec.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'use strict';
2+
3+
describe('The main view', function () {
4+
var page;
5+
6+
beforeEach(function () {
7+
browser.get('http://localhost:3000/index.html');
8+
page = require('./main.po');
9+
});
10+
11+
it('should include jumbotron with correct data', function() {
12+
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
13+
expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/);
14+
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
15+
});
16+
17+
it('list more than 5 awesome things', function () {
18+
expect(page.thumbnailEls.count()).toBeGreaterThan(5);
19+
});
20+
21+
});

gulp/.jshintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../.jshintrc",
3+
"node": true
4+
}

0 commit comments

Comments
 (0)