Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
:shipit:
  • Loading branch information
jacebot committed Jul 18, 2017
0 parents commit caa0b84
Show file tree
Hide file tree
Showing 85 changed files with 17,507 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .babelrc
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
}]
]
}
19 changes: 19 additions & 0 deletions .editorconfig
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

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
74 changes: 74 additions & 0 deletions .eslintrc
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
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea
/node_modules
/coverage
1 change: 1 addition & 0 deletions .reduxrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"sourceBase":"src","testBase":"test","smartPath":"containers","dumbPath":"components","fileCasing":"default"}
22 changes: 22 additions & 0 deletions .travis.yml
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
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class <%= pascalEntityName %>Controller {
constructor () {

}
}

export default <%= pascalEntityName %>Controller;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= dashesEntityName %> {
display: block;
}
11 changes: 11 additions & 0 deletions blueprints/component/files/__root__/components/__name__/index.js
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 added blueprints/component/index.js
Empty file.
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class <%= pascalEntityName %>Controller {
constructor () {

}
}

export default <%= pascalEntityName %>Controller;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= dashesEntityName %> {
display: block;
}
11 changes: 11 additions & 0 deletions blueprints/container/files/__root__/containers/__name__/index.js
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 added blueprints/container/index.js
Empty file.
14 changes: 14 additions & 0 deletions blueprints/reducer/files/__root__/reducers/__name__.js
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 added blueprints/reducer/index.js
Empty file.
5 changes: 5 additions & 0 deletions browserslist
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
2 changes: 2 additions & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
103 changes: 103 additions & 0 deletions karma.conf.js
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')]
: []
),
});
};
Loading

0 comments on commit caa0b84

Please sign in to comment.