Skip to content

Commit

Permalink
Merge 14b8545 into c8ba9e1
Browse files Browse the repository at this point in the history
  • Loading branch information
flut1 committed Aug 10, 2018
2 parents c8ba9e1 + 14b8545 commit f0cea3c
Show file tree
Hide file tree
Showing 35 changed files with 3,005 additions and 3,503 deletions.
34 changes: 34 additions & 0 deletions .babelrc
@@ -0,0 +1,34 @@
{
"presets": [
["@babel/env", {
"targets": {
"browsers": ["last 2 versions"],
"node": "6"
},
"loose": true,
"useBuiltIns": false
}],
"@babel/preset-stage-3",
"@babel/typescript"
],
"plugins": [
["@babel/plugin-transform-runtime", {
"helpers": true,
"polyfill": false,
"regenerator": false,
"moduleName": "@babel/runtime"
}]
],
"env": {
"test": {
"plugins": [
"./test/_setup/arrow-function-coverage-fix.js",
"istanbul"
]
}
},
"ignore": [
"src/lib/vendor/**/*.*",
"./test/_setup/arrow-function-coverage-fix.js"
]
}
21 changes: 8 additions & 13 deletions .editorconfig
@@ -1,20 +1,15 @@
# http://editorconfig.org
# see editorconfig.org

root = true

[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.json]
# Change these settings to your own preference
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2
# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .eslintignore
@@ -0,0 +1,2 @@
lib/**/*
src/lib/vendor/**/*
42 changes: 42 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,42 @@
// http://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
env: {
browser: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['import', 'prettier'],
settings: {
"import/resolver": {
"node": true,
"typescript": true
},
},
rules: {
'import/extensions': [
'error',
'always',
// hide known extensions that are resolved by webpack
{
js: 'never',
ts: 'never',
},
],
// prettier compatibility
'max-len': 0,
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'all', printWidth: 100, tabWidth: 2 },
],
// only for use with getter-setters
'no-underscore-dangle': 0,
// to correctly work on windows with some tools that create windows line-endings
// this will be correct by git when committed
'linebreak-style': 0
},
};
26 changes: 12 additions & 14 deletions .gitignore
@@ -1,19 +1,17 @@
# copy to .npmignore
.idea
node_modules
typings
.tscache
.sass-cache
## copy to .npmignore
.DS_Store
npm-debug.log
/coverage
/dist
/seng-*.zip
/seng-*.tar.gz
/test/*.js
!/test/index.js
.idea
npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules/
.npm
.eslintcache
/coverage/
/.nyc_output/
/tmp/

# only ignore in git
## only ignore in git
/lib
/index.js
/index.d.ts
39 changes: 20 additions & 19 deletions .npmignore
@@ -1,31 +1,32 @@
# .gitignore
.idea
node_modules
typings
.tscache
.sass-cache
## copy from .gitignore
.DS_Store
npm-debug.log
/coverage
/dist
/seng-*.zip
/seng-*.tar.gz
/test/*.js
!/test/index.js
.idea
npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules/
.npm
.eslintcache
/coverage/
/.nyc_output/
/tmp/

# .npmignore
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.nvmrc
.nycrc
.prettierignore
.prettierrc
.travis.yml
AUTHORS.md
CONTRIBUTING.md
tsconfig.json
tslint.json
karma.conf.js
CONTRIBUTING.md
AUTHORS.md
/docs
/example
/src
/test
/script
/definition
/config
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
8
28 changes: 28 additions & 0 deletions .nycrc
@@ -0,0 +1,28 @@
{
"sourceMap": false,
"instrument": false,
"check-coverage": true,
"per-file": true,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"src/**/*.{js,ts}"
],
"exclude": [
"test/**/*.spec.{js,ts}",
"src/lib/vendor/**/*.*"
],
"reporter": [
"lcov",
"text-summary"
],
"extension": [
".js",
".ts"
],
"cache": true,
"all": true,
"report-dir": "./coverage"
}
3 changes: 3 additions & 0 deletions .prettierignore
@@ -0,0 +1,3 @@
# for potential vendor files in src
lib/**/*
src/lib/vendor/**/*
14 changes: 14 additions & 0 deletions .prettierrc
@@ -0,0 +1,14 @@
{
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 999999
}
}
]
}
43 changes: 7 additions & 36 deletions .travis.yml
@@ -1,63 +1,34 @@
language: node_js

cache: yarn

node_js:
- 'stable'
- '4'
- '5'
- '6'
- '8'

sudo: false

before_install:
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
- npm install -g codeclimate-test-reporter
- yarn global add codeclimate-test-reporter

script:
- npm run build
- npm run validate
- yarn test

after_script:
- codeclimate-test-reporter < coverage/lcov.info
- node_modules/.bin/coveralls < coverage/lcov.info

before_deploy:
- npm run build:dist && node ./script/package-dist.js

deploy:
- provider: npm
email: 'devmonk@mediamonks.com'
api_key:
secure: 'EJ0oYw32Aql1fjKNV0TEgqLqPsQ6gKRTWePunEVQpeDVgGPV62N3befreJHMouWMFPOawCQl6vJFyts2QPUTo+YRhpcwDJipZb0hzYDV5D6zgnlpxiri+UD1GOcI+ZwVq3XCC4q+PW6v+HM5rNMWsNC/MWMBPYkf45ceduXXXZqgSe8t1difwp9+1Kz/lrDQz5H4g3/PSlQmIYIT1TZZrIdrMQvURX4H5qpBcZetC0zlqPWnlRtvP+mFNcf8NuyMAlR+pZDNjag6uSIqzLAtL00zrSDzxyONWh3vU2FlNb5iYYvYPQdImgvWYBMHb7V2P62N2VJV066Mdkv++tZFkVbgXhHA4V70/jeLTYunkz9SQWqrfIMyk6b8JoWOu4sRFUYSpxf/ZX7St1sa5lWhExADE3q0EqF8xMSIns8zGr7Fbbuml2b1a7KIeD1zR6UdNFNHULd+49wvjQkbO7FrJAMr5sAJaSw93GW7Zej4EYD3Zvl3AE04Vgu3ohI+FHJKv68mZoH+A1DQJ3Va5b16/Y1QBKmFnKUwTZUzr4vSIkiOCC7RUmMNvU/NTzW19b+2rekNfbmIHEJRHwBK0f0Ud/K43kqzaj71i7r9yuydBWxO9vNZ/CqEIEaxre+VncRljZL9mqBFX8Hr1j1AOpx2uPGFjH8DK3zOLM4s98zIxvY='
on:
tags: true
node: '4'
node: '8'
skip_cleanup: true

# - provider: s3
# access_key_id:
# secure: 'BV9B80rsAWYaQkF23vQIT9o7536RCG9SYHUKff/aTlgRHnA9FqbBDork2CZ/u2FZO1XaX8CIDjRolLAFqCYfzO4kSufUdMEhkYtx+j0AX27lszVr4Xw0JZqIgZ6EfQq6rCs+Rq4nRR/qIjaifpxpXHdtbte2KTAhdLlAWgJM0JB8DZl8JGxwpByRxcRw+aJw1STqF4yCV7gV5R7LxBrlyFnOEgvTGR80L+d8twzIAoa3IRLYz8cW7SHLffaRVJLr6I0/Jcw8+LryXKHPkQd+/qrqOAtwZiUSlEmp9d+drqIHTre2nvN4gXzVas9Qg00aKStE3qnJJ9um0UiaGb0yQqXjNlTYLlwNZtT62DMI6UFIEs+/79WLWQ6hgvQS8IJ9wjzsB1is/Ml1OqvKyNOGaQp1bdJBlgmPUOcd9OCLLK7DcG22b2Ic9vMFEy5PAmQIZeYf5j6rRvXqy8eYJJt0TOrS1m024Y5Zau1WcrlVc/RM91QOlw3UOGZ6be5VRQRZ3tFhh+Wx1618x8UNVckiWZ9iqhtW90c0E6kZJDR7n+byKrxUQeyeGrJxpC8U5+ZuzfDgB6wcJ8SmNL1nR81L/jXx/TvvK7x/rEZgWw8Ra/8yB9W54Zb35frRCtF6XE907fIBOS1fMJ8sjNX8T0mXg3RdpWei8ZZUX9aadscKQDc='
# secret_access_key:
# secure: 'DRV5VfnUuuFjh5ZCAqHU2U8fqu+wnWeGxOeCUenC/4Zvt5w6h27c6p/SbHXtslN1PtotLiMrkb5T8fx0WmVVK51LeTaDeIa91XgKamemXBzrdNlfsYa2Iiag6m0aLqzVsM73TvLQaFR0YUy933MidZTiX/y1hy6rVOQT8OPRqnEog7gSy4IrlGe8hUyCqrPeQmzWuIj+UYDsJbkJ0lBGyJDf5s0XV4KjmT/s79v/McRS/9drlG0n0/v7uHdoMEXqTFeqQlwZuLwVsNdX1YT57fM4ES4U/ECPHPtcbAY6qJ3WS1WSLKXbLqNocNxTd3Xp6du6hpHsecvAWTvRwzI3YQasqtmZKDNLwkIw8H9YmhIP6sjnexWYZVbJDZFkBykvXCXj/NvBmH8a7yYc3uLAtULe5mSULz7fi2WvfYYwDz8ulDYYKpH4yt3D+4OHrWXQMiq8o6RogSV9jcXGb/aIFIBTArwEMlnBVEcu++wc9ORFi44AYRRe3dImD//cGGXn88Of/djKK1r+KquwUC631KHIi7Yif1RboDlwV7mBTM5f1DfhFad79Xmq/xBNbG2PKp6O6sQ93/pAAN80cVC9N0pI9nV4pjYv1XF8AhDgRjHhVV05K9n8RJq4mlA3Wwnswh+nwrDhpk9u3d52uATZFuRP3MGeCzJLOvZbX6jqhzw='
# bucket: "mediamonks-development"
# local_dir: 'dist'
# upload-dir: 'seng/libs'
# on:
# tags: true
# node: '4'
# skip_cleanup: true
# region: eu-west-1

# - provider: releases
# api_key:
# secure: 'ahH+HZuXibkorBAflGeMNpxYEt2JHJ+z7t+ydktQZ8Umqn+dOEubTNZNqp4kmLC8lKD/EAPggSQGuRob9zP/m9tZGMnrqfy+RpokYP0OkVJnxW9NeMNBFMshTrxgH8CecHsJU59zrSUqRJA4EJkisQCQPj+i3go/xIVIOe0gYPxzNdobj5cuMQCahaMTHAkBACNcdkMkoo0Sg6+0pf4O/mG2g2sWYk3E4je8IVQkXTVsc/72TcRWBWRFsUlO8yLWp6DvgEZjC9fl28EvJTitIYCdIibhvrGnm4kl6jjIYrZ7cqXaPDnBL7vm+TQCfitg58OFgm+SsVU36lEIjT0IMMZm9lwPIA71K+OirnYw51lL6AibYuN2krfCWYNA8HT8O6D9g5DLFDfyqK1iQmZv0KXKjL2bdhluG+KT6jKGq1A9WgybcA2+0y6/lR5pXaMCRwM5fH4Fwf5IJtUz5H/3fFt1fHkYZ+y565E5ObS8TsutqrMzuwDZehQcr9OABRgkdEyETziW6FFD1Sq22PMZzLPR/tXDz5Uf4gu2iO/T0hxK6gtACTT/L+7UY7wG12xQqkMPd/k9fiwjnd3RWBAwweI1BId/xEPIUS1Vj/obTimCg3wnVpyH4nJyZ78U4guNfp+A9d67y04F8kPwq6rrSLYhtpaKkEj2TZsv8ACSMPM='
# file:
# - "seng-*.zip"
# - "seng-*.tar.gz"
# file_glob: true
# on:
# tags: true
# node: '4'
# skip_cleanup: true

addons:
code_climate:
repo_token:
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.md
@@ -1 +1,2 @@
* [Stuart van Beek](https://github.com/art0rz)
* [Floris Bernard](https://github.com/flut1)

0 comments on commit f0cea3c

Please sign in to comment.