This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 caa0b84
Showing
85 changed files
with
17,507 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,13 @@ | ||
{ | ||
"presets": [ | ||
"latest" | ||
], | ||
"plugins": [ | ||
"angularjs-annotate", | ||
"transform-object-rest-spread", | ||
["transform-runtime", { | ||
"polyfill": false, | ||
"regenerator": 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,19 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# 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 @@ | ||
build/ |
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,74 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true, | ||
"mocha": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"modules": true, | ||
"experimentalObjectRestSpread": true | ||
}, | ||
"ecmaVersion": 2017 | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": 2, | ||
"arrow-parens": 2, | ||
"arrow-spacing": 2, | ||
"brace-style": 2, | ||
"block-spacing": 2, | ||
"comma-spacing": 2, | ||
"comma-style": 2, | ||
"computed-property-spacing": 2, | ||
"curly": [2, "all"], | ||
"eqeqeq": 2, | ||
"func-call-spacing": 2, | ||
"indent": ["error", 2, { "SwitchCase": 1 }], | ||
"key-spacing": 2, | ||
"keyword-spacing": 2, | ||
"max-statements-per-line": 2, | ||
"newline-after-var": 2, | ||
"newline-before-return": 2, | ||
"no-alert": 2, | ||
"no-array-constructor": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-multi-spaces": ["error", { | ||
"exceptions": { | ||
"VariableDeclarator": true | ||
} | ||
}], | ||
"no-multiple-empty-lines": ["error", { "max": 1 }], | ||
"no-new-object": 2, | ||
"no-return-assign": 2, | ||
"no-unneeded-ternary": 2, | ||
"no-unused-vars": 1, | ||
"no-var": 1, | ||
"no-whitespace-before-property": 2, | ||
"object-curly-spacing": [2, "always"], | ||
"object-shorthand": [2, "always"], | ||
"one-var": [2, "never"], | ||
"padded-blocks": ["error", { | ||
"blocks": "never", | ||
"classes": "never", | ||
"switches": "never" | ||
}], | ||
"prefer-arrow-callback": 1, | ||
"prefer-const": 2, | ||
"prefer-spread": 1, | ||
"prefer-template": 2, | ||
"quote-props": [2, "as-needed"], | ||
"quotes": [2, "single"], | ||
"semi": 2, | ||
"space-before-blocks": 2, | ||
"space-before-function-paren": 2, | ||
"space-in-parens": 2, | ||
"space-infix-ops": 2, | ||
"space-unary-ops": 2, | ||
"spaced-comment": 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 @@ | ||
* text=auto |
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 @@ | ||
/.idea | ||
/node_modules | ||
/coverage |
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 @@ | ||
{"sourceBase":"src","testBase":"test","smartPath":"containers","dumbPath":"components","fileCasing":"default"} |
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,22 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- 8 | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
install: | ||
- yarn install | ||
|
||
script: | ||
- yarn run test && yarn run cover | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
after_success: | ||
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | ||
- cat ./coverage/coverage-final.json | ./node_modules/codecov.io/bin/codecov.io.js |
14 changes: 14 additions & 0 deletions
14
blueprints/component/files/__root__/components/__name__/__name__.component.js
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,14 @@ | ||
import template from './<%= dashesEntityName %>.html'; | ||
import controller from './<%= dashesEntityName %>.controller'; | ||
|
||
const component = { | ||
restrict: 'E', | ||
bindings: { | ||
|
||
}, | ||
template, | ||
controller, | ||
controllerAs: 'vm' | ||
}; | ||
|
||
export default component; |
7 changes: 7 additions & 0 deletions
7
blueprints/component/files/__root__/components/__name__/__name__.controller.js
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 @@ | ||
class <%= pascalEntityName %>Controller { | ||
constructor () { | ||
|
||
} | ||
} | ||
|
||
export default <%= pascalEntityName %>Controller; |
1 change: 1 addition & 0 deletions
1
blueprints/component/files/__root__/components/__name__/__name__.html
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 @@ | ||
<div></div> |
3 changes: 3 additions & 0 deletions
3
blueprints/component/files/__root__/components/__name__/__name__.scss
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 @@ | ||
<%= dashesEntityName %> { | ||
display: block; | ||
} |
11 changes: 11 additions & 0 deletions
11
blueprints/component/files/__root__/components/__name__/index.js
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,11 @@ | ||
import angular from 'angular'; | ||
import component from './<%= dashesEntityName %>.component'; | ||
|
||
import './<%= dashesEntityName %>.scss'; | ||
|
||
const module = angular | ||
.module('<%= camelEntityName %>', []) | ||
.component('<%= camelEntityName %>', component) | ||
.name; | ||
|
||
export default module; |
Empty file.
14 changes: 14 additions & 0 deletions
14
blueprints/container/files/__root__/containers/__name__/__name__.component.js
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,14 @@ | ||
import template from './<%= dashesEntityName %>.html'; | ||
import controller from './<%= dashesEntityName %>.controller'; | ||
|
||
const component = { | ||
restrict: 'E', | ||
bindings: { | ||
|
||
}, | ||
template, | ||
controller, | ||
controllerAs: 'vm' | ||
}; | ||
|
||
export default component; |
7 changes: 7 additions & 0 deletions
7
blueprints/container/files/__root__/containers/__name__/__name__.controller.js
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 @@ | ||
class <%= pascalEntityName %>Controller { | ||
constructor () { | ||
|
||
} | ||
} | ||
|
||
export default <%= pascalEntityName %>Controller; |
1 change: 1 addition & 0 deletions
1
blueprints/container/files/__root__/containers/__name__/__name__.html
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 @@ | ||
<div></div> |
3 changes: 3 additions & 0 deletions
3
blueprints/container/files/__root__/containers/__name__/__name__.scss
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 @@ | ||
<%= dashesEntityName %> { | ||
display: block; | ||
} |
11 changes: 11 additions & 0 deletions
11
blueprints/container/files/__root__/containers/__name__/index.js
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,11 @@ | ||
import angular from 'angular'; | ||
import component from './<%= dashesEntityName %>.component'; | ||
|
||
import './<%= dashesEntityName %>.scss'; | ||
|
||
const module = angular | ||
.module('<%= camelEntityName %>', []) | ||
.component('<%= camelEntityName %>', component) | ||
.name; | ||
|
||
export default module; |
Empty file.
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,14 @@ | ||
/* | ||
* Add your reducer to index.js and remove this message | ||
*/ | ||
|
||
const initialState = { | ||
|
||
}; | ||
|
||
export default function reducer (state = initialState, action = {}) { | ||
switch (action.type) { | ||
default: | ||
return state; | ||
} | ||
} |
Empty file.
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 @@ | ||
# Browsers that we support | ||
|
||
> 1% | ||
Last 2 versions | ||
IE 10 # sorry |
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,2 @@ | ||
* | ||
!.gitignore |
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,103 @@ | ||
// Karma configuration | ||
// Generated on Mon Mar 23 2015 07:31:02 GMT+0200 (EET) | ||
const makeWebpackConfig = require('./make-webpack-config'); | ||
|
||
module.exports = function (config) { | ||
const webpackConfig = makeWebpackConfig({ | ||
devtool: 'inline-source-map', | ||
separateStylesheet: true, | ||
debug: true, | ||
cover: process.env.COVERAGE, | ||
}); | ||
|
||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'src/index.test.js', | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
'src/**/*.test.js': ['webpack', 'sourcemap'], | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: process.env.COVERAGE | ||
? ['progress', 'coverage-istanbul'] | ||
: ['progress'], | ||
|
||
coverageIstanbulReporter: { | ||
reports: [ | ||
'text-summary', | ||
'lcov', | ||
'json', | ||
], | ||
fixWebpackSourcePaths: true, | ||
}, | ||
|
||
// web server port | ||
port: 9876, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: false, | ||
|
||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: [process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome'], | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true, | ||
|
||
webpack: webpackConfig, | ||
|
||
webpackMiddleware: { | ||
// webpack-dev-middleware configuration | ||
// i. e. | ||
noInfo: true, | ||
}, | ||
|
||
plugins: [ | ||
require('karma-firefox-launcher'), | ||
require('karma-chrome-launcher'), | ||
require('karma-jasmine'), | ||
require('karma-sourcemap-loader'), | ||
require('karma-webpack'), | ||
].concat( | ||
process.env.COVERAGE | ||
? [require('karma-coverage-istanbul-reporter')] | ||
: [] | ||
), | ||
}); | ||
}; |
Oops, something went wrong.