-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a9259f5
Showing
38 changed files
with
1,181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"plugins": ["angular"], | ||
"env": { | ||
"browser": true, | ||
"jasmine": true | ||
}, | ||
"globals": { | ||
"angular": true, | ||
"module": true, | ||
"inject": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/ | ||
bower_components/ | ||
coverage/ | ||
.sass-cache/ | ||
.idea/ | ||
.tmp/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"generator-gulp-angular": { | ||
"version": "1.0.0-rc2", | ||
"props": { | ||
"angularVersion": "~1.4.2", | ||
"angularModules": [ | ||
{ | ||
"key": "animate", | ||
"module": "ngAnimate" | ||
}, | ||
{ | ||
"key": "touch", | ||
"module": "ngTouch" | ||
}, | ||
{ | ||
"key": "sanitize", | ||
"module": "ngSanitize" | ||
} | ||
], | ||
"jQuery": { | ||
"key": "jquery1" | ||
}, | ||
"resource": { | ||
"key": "$http", | ||
"module": null | ||
}, | ||
"router": { | ||
"key": "ui-router", | ||
"module": "ui.router" | ||
}, | ||
"ui": { | ||
"key": "bootstrap", | ||
"module": null | ||
}, | ||
"bootstrapComponents": { | ||
"key": "noBootstrapComponents", | ||
"module": null | ||
}, | ||
"cssPreprocessor": { | ||
"key": "less", | ||
"extension": "less" | ||
}, | ||
"jsPreprocessor": { | ||
"key": "coffee", | ||
"extension": "coffee", | ||
"srcExtension": "coffee" | ||
}, | ||
"htmlPreprocessor": { | ||
"key": "noHtmlPrepro", | ||
"extension": "html" | ||
}, | ||
"foundationComponents": { | ||
"name": null, | ||
"version": null, | ||
"key": null, | ||
"module": null | ||
}, | ||
"paths": { | ||
"src": "src", | ||
"dist": "dist", | ||
"e2e": "e2e", | ||
"tmp": ".tmp" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "morano2017", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"angular-animate": "~1.4.2", | ||
"angular-touch": "~1.4.2", | ||
"angular-sanitize": "~1.4.2", | ||
"jquery": "~1.11.3", | ||
"angular-ui-router": "~0.2.15", | ||
"bootstrap": "~3.3.5", | ||
"moment": "~2.10.6", | ||
"angular": "~1.4.2" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "~1.4.2" | ||
}, | ||
"overrides": { | ||
"bootstrap": { | ||
"main": [ | ||
"less/bootstrap.less", | ||
"dist/fonts/glyphicons-halflings-regular.eot", | ||
"dist/fonts/glyphicons-halflings-regular.svg", | ||
"dist/fonts/glyphicons-halflings-regular.ttf", | ||
"dist/fonts/glyphicons-halflings-regular.woff", | ||
"dist/fonts/glyphicons-halflings-regular.woff2" | ||
] | ||
} | ||
}, | ||
"resolutions": { | ||
"jquery": "~1.11.3", | ||
"angular": "~1.4.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"arrow_spacing": { | ||
"level": "ignore" | ||
}, | ||
"camel_case_classes": { | ||
"level": "error" | ||
}, | ||
"coffeescript_error": { | ||
"level": "error" | ||
}, | ||
"colon_assignment_spacing": { | ||
"level": "ignore", | ||
"spacing": { | ||
"left": 0, | ||
"right": 0 | ||
} | ||
}, | ||
"cyclomatic_complexity": { | ||
"value": 10, | ||
"level": "ignore" | ||
}, | ||
"duplicate_key": { | ||
"level": "error" | ||
}, | ||
"empty_constructor_needs_parens": { | ||
"level": "ignore" | ||
}, | ||
"indentation": { | ||
"value": 2, | ||
"level": "error" | ||
}, | ||
"line_endings": { | ||
"level": "ignore", | ||
"value": "unix" | ||
}, | ||
"max_line_length": { | ||
"value": 150, | ||
"level": "error", | ||
"limitComments": true | ||
}, | ||
"missing_fat_arrows": { | ||
"level": "ignore" | ||
}, | ||
"newlines_after_classes": { | ||
"value": 3, | ||
"level": "ignore" | ||
}, | ||
"no_backticks": { | ||
"level": "error" | ||
}, | ||
"no_debugger": { | ||
"level": "warn" | ||
}, | ||
"no_empty_functions": { | ||
"level": "ignore" | ||
}, | ||
"no_empty_param_list": { | ||
"level": "ignore" | ||
}, | ||
"no_implicit_braces": { | ||
"level": "ignore", | ||
"strict": true | ||
}, | ||
"no_implicit_parens": { | ||
"strict": true, | ||
"level": "ignore" | ||
}, | ||
"no_interpolation_in_single_quotes": { | ||
"level": "ignore" | ||
}, | ||
"no_plusplus": { | ||
"level": "ignore" | ||
}, | ||
"no_stand_alone_at": { | ||
"level": "ignore" | ||
}, | ||
"no_tabs": { | ||
"level": "error" | ||
}, | ||
"no_throwing_strings": { | ||
"level": "error" | ||
}, | ||
"no_trailing_semicolons": { | ||
"level": "error" | ||
}, | ||
"no_trailing_whitespace": { | ||
"level": "error", | ||
"allowed_in_comments": false, | ||
"allowed_in_empty_lines": true | ||
}, | ||
"no_unnecessary_double_quotes": { | ||
"level": "ignore" | ||
}, | ||
"no_unnecessary_fat_arrows": { | ||
"level": "warn" | ||
}, | ||
"non_empty_constructor_needs_parens": { | ||
"level": "ignore" | ||
}, | ||
"prefer_english_operator": { | ||
"level": "ignore", | ||
"doubleNotLevel": "ignore" | ||
}, | ||
"space_operators": { | ||
"level": "ignore" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"globals": { | ||
"browser": false, | ||
"element": false, | ||
"by": false, | ||
"$": false, | ||
"$$": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* This file uses the Page Object pattern to define the main page for tests | ||
* https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var MainPage = function() { | ||
this.jumbEl = element(by.css('.jumbotron')); | ||
this.h1El = this.jumbEl.element(by.css('h1')); | ||
this.imgEl = this.jumbEl.element(by.css('img')); | ||
this.thumbnailEls = element(by.css('body')).all(by.repeater('awesomeThing in main.awesomeThings')); | ||
}; | ||
|
||
module.exports = new MainPage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
describe('The main view', function () { | ||
var page; | ||
|
||
beforeEach(function () { | ||
browser.get('/index.html'); | ||
page = require('./main.po'); | ||
}); | ||
|
||
it('should include jumbotron with correct data', function() { | ||
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!'); | ||
expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/); | ||
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman'); | ||
}); | ||
|
||
it('should list more than 5 awesome things', function () { | ||
expect(page.thumbnailEls.count()).toBeGreaterThan(5); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
} | ||
} |
Oops, something went wrong.