Skip to content

Commit

Permalink
Fix linting, fix dist bundling, add circleCI build and codecov reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Dec 6, 2019
1 parent 9aec5b7 commit ae13914
Show file tree
Hide file tree
Showing 12 changed files with 4,676 additions and 2,847 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/node:10

working_directory: ~/repo

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}

# run tests!
- run: npm run lint

- run: npm run test

- run: npm run webpack

- run: npm run compile

- run: npm run codecovUpload
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
tests/unitTests/lib
28 changes: 15 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"parser": "babel-eslint",
"plugins": ["flowtype"],
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint" ],
"parserOptions": {
"sourceType": "module",
"project": [
"tsconfig.json",
"tests/tsconfig.json"
]
},
"env": {
"browser": false,
"es6": true,
"node": true,
},
"ecmaFeatures": {
"modules": true
"node": true
},
"rules": {
"comma-dangle": ["error", "never"],
"quotes": [2, "single"],
"comma-dangle": [ 2, "never" ],
"quotes": [ 2, "single" ],
"eol-last": 2,
"no-debugger": 1,
"no-mixed-requires": 0,
Expand All @@ -28,8 +31,7 @@
"prefer-const": 2,
"new-cap": 0,
"camelcase": 2,
"semi": [2, "never"],
"flowtype/define-flow-type": 1,
"valid-jsdoc": ["error"]
"semi": [ 2, "never" ],
"valid-jsdoc": "error"
}
}
}
11 changes: 0 additions & 11 deletions .flowconfig

This file was deleted.

4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
src/
unused
unused
.nyc_output
coverage
Loading

0 comments on commit ae13914

Please sign in to comment.