Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
r-park committed Aug 3, 2016
0 parents commit 7d83e80
Show file tree
Hide file tree
Showing 31 changed files with 1,133 additions and 0 deletions.
192 changes: 192 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,192 @@
root: true

extends: "eslint:recommended"

parserOptions:
ecmaVersion: 6
sourceType: "module"

env:
browser: true
es6: true
jasmine: true
node: true

rules:
accessor-pairs: [2, {setWithoutGet: true}]
array-bracket-spacing: 0
array-callback-return: 0
arrow-body-style: 0
arrow-parens: [2, "as-needed"]
arrow-spacing: [2, {before: true, after: true}]
block-scoped-var: 0
block-spacing: 2
brace-style: [2, "stroustrup", {allowSingleLine: true}]
callback-return: 0
camelcase: [2, {properties: "always"}]
comma-dangle: 2
comma-spacing: 2
comma-style: [2, "last"]
complexity: [0, 10]
computed-property-spacing: [2, "never"]
consistent-return: 0
consistent-this: 0
curly: [2, "multi-line"]
default-case: 2
dot-location: [2, "property"]
dot-notation: [2, {allowKeywords: true}]
eol-last: 2
eqeqeq: 2
func-names: 0
func-style: [2, "declaration", {allowArrowFunctions: true }]
generator-star-spacing: [2, {before: false, after: true}]
global-require: 0
guard-for-in: 2
handle-callback-err: 0
id-blacklist: 0
id-length: 0
id-match: 0
indent: [2, 2, {SwitchCase: 1, VariableDeclarator: 2}]
init-declarations: 0
jsx-quotes: 1
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: 2
linebreak-style: 0
lines-around-comment: 0
max-depth: 0
max-len: 0
max-lines: 0
max-nested-callbacks: 0
max-params: 0
max-statements: 0
max-statements-per-line: 0
multiline-ternary: 0
new-cap: 2
new-parens: 2
newline-after-var: 0
newline-before-return: 0
newline-per-chained-call: 0
no-alert: 2
no-array-constructor: 2
no-bitwise: 0
no-caller: 2
no-catch-shadow: 0
no-confusing-arrow: 0
no-continue: 0
no-div-regex: 0
no-duplicate-imports: 2
no-else-return: 0
no-empty-function: 0
no-eq-null: 0
no-eval: 2
no-extend-native: 2
no-extra-bind: 2
no-extra-label: 0
no-extra-parens: 0
no-floating-decimal: 2
no-implicit-coercion: 0
no-implicit-globals: 0
no-implied-eval: 2
no-inline-comments: 0
no-invalid-this: 2
no-iterator: 2
no-label-var: 2
no-labels: 2
no-lone-blocks: 0
no-lonely-if: 0
no-loop-func: 0
no-magic-numbers: 0
no-mixed-operators: 2
no-mixed-requires: 2
no-multi-spaces: 2
no-multi-str: 2
no-multiple-empty-lines: 0
no-negated-condition: 0
no-nested-ternary: 2
no-new: 2
no-new-func: 2
no-new-object: 2
no-new-require: 2
no-new-wrappers: 2
no-octal-escape: 2
no-param-reassign: 0
no-path-concat: 2
no-plusplus: 0
no-process-env: 0
no-process-exit: 2
no-proto: 2
no-prototype-builtins: 0
no-restricted-globals: 0
no-restricted-imports: 0
no-restricted-modules: 0
no-restricted-syntax: 0
no-return-assign: 0
no-script-url: 2
no-self-compare: 0
no-sequences: 2
no-shadow: 0
no-shadow-restricted-names: 2
no-spaced-func: 2
no-sync: 0
no-tabs: 2
no-ternary: 0
no-throw-literal: 0
no-trailing-spaces: 2
no-undef-init: 2
no-undefined: 0
no-underscore-dangle: [2, {allowAfterThis: true}]
no-unmodified-loop-condition: 2
no-unneeded-ternary: 0
no-unused-expressions: 2
no-unused-vars: [2, {vars: "all", args: "after-used"}]
no-use-before-define: 0
no-useless-call: 0
no-useless-computed-key: 0
no-useless-concat: 2
no-useless-constructor: 0
no-useless-escape: 0
no-useless-rename: 2
no-var: 0
no-void: 0
no-warning-comments: 0
no-whitespace-before-property: 2
no-with: 2
object-curly-newline: 0
object-curly-spacing: 0
object-property-newline: 0
object-shorthand: 0
one-var: 0
one-var-declaration-per-line: 0
operator-assignment: 0
operator-linebreak: 0
padded-blocks: 0
prefer-arrow-callback: 0
prefer-const: 0
prefer-reflect: 0
prefer-rest-params: 0
prefer-spread: 0
prefer-template: 0
quote-props: 0
quotes: [2, "single"]
radix: 0
require-jsdoc: 0
rest-spread-spacing: [2, "never"]
semi: 2
semi-spacing: [2, {before: false, after: true}]
sort-imports: 0
sort-vars: 0
space-before-blocks: 2
space-before-function-paren: [2, "never"]
space-in-parens: 0
space-infix-ops: 2
space-unary-ops: [2, {words: true, nonwords: false}]
spaced-comment: [2, "always", {exceptions: ["-", "="]}]
strict: 0
template-curly-spacing: 0
unicode-bom: 0
valid-jsdoc: [2, {prefer: {return: "returns"}}]
vars-on-top: 0
wrap-iife: 2
wrap-regex: 0
yield-star-spacing: 0
yoda: [2, "never"]
34 changes: 34 additions & 0 deletions .gitignore
@@ -0,0 +1,34 @@
#---------------------------------
# Directories
#---------------------------------
**/node_modules/
coverage/
target/
tmp/
typings/


#---------------------------------
# Extensions
#---------------------------------
*.gz
*.log
*.rar
*.tar
*.zip


#---------------------------------
# IDE generated
#---------------------------------
.idea/
.project
*.iml


#---------------------------------
# OS generated
#---------------------------------
__MACOSX/
.DS_Store
Thumbs.db
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2016 Richard Park <objectiv@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node server/main.js
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
[![CircleCI](https://circleci.com/gh/r-park/soundcloud-ngrx.svg?style=shield&circle-token=1a1c9e0d11ebc084768c68fa31349e93f48634e6)](https://circleci.com/gh/r-park/soundcloud-ngrx)


## WIP
22 changes: 22 additions & 0 deletions circle.yml
@@ -0,0 +1,22 @@
machine:
node:
version: 6.1

dependencies:
pre:
- rm -rf node_modules

test:
post:
- mv ./coverage ${CIRCLE_ARTIFACTS}

deployment:
dev:
branch: /^dev.*/
commands:
- git push -f git@heroku.com:${HEROKU_APP_DEV}.git ${CIRCLE_BRANCH}:master

staging:
branch: master
commands:
- git push -f git@heroku.com:${HEROKU_APP_STAGING}.git ${CIRCLE_BRANCH}:master
42 changes: 42 additions & 0 deletions karma.conf.js
@@ -0,0 +1,42 @@
const argv = require('yargs').argv;

module.exports = config => {
const options = {
frameworks: ['jasmine'],

files: ['karma.entry.js'],

preprocessors: {
'karma.entry.js': ['webpack', 'sourcemap']
},

webpack: require('./webpack.config'),

webpackServer: {
noInfo: true
},

reporters: ['dots'],

logLevel: config.LOG_INFO,

autoWatch: true,

singleRun: false,

browsers: ['Chrome']
};

if (argv.coverage) {
options.reporters.push('coverage');
options.coverageReporter = {
dir: 'coverage',
subdir: '.',
reporters: [
{type: 'lcov'}
]
};
}

config.set(options);
};
41 changes: 41 additions & 0 deletions karma.entry.js
@@ -0,0 +1,41 @@
require('core-js/es6/array');
require('core-js/es6/map');
require('core-js/es6/set');
require('core-js/es6/string');
require('core-js/es6/symbol');
require('core-js/es7/reflect');
require('core-js/fn/array/includes');
require('core-js/fn/object/assign');
require('zone.js/dist/zone');
require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test');
require('ts-helpers');


Error.stackTraceLimit = Infinity;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 2000;


// Specify platform and application providers
var browser = require('@angular/platform-browser-dynamic/testing');
var testing = require('@angular/core/testing');

testing.setBaseTestProviders(
browser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
browser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS
);


// Load source files
var context = require.context('./src', true, /\.ts/);

var exclude = [
'./main.ts',
'./polyfill.ts',
'./vendor.ts'
];

context.keys().forEach(function(key) {
if (exclude.indexOf(key) === -1) context(key);
});

0 comments on commit 7d83e80

Please sign in to comment.