Skip to content

Commit

Permalink
feat: working analytics adapter (#1)
Browse files Browse the repository at this point in the history
* package file & analytics dependencies

* Additional files added/set up

* file upload

* remove payload converter file, and change filename

* minor clean up

* Adjusted agnostic adapter file. added in jasmine for testing.

* commit changes

* added babel and typescript , fixed importing errors on 2/3 spec files.

* push

* Error:describe with no children/describe() or it()

* push

* Create LICENSE

* fixes

* Remove ignored files

* Remove files

* Remove files

* Remove files

* renaming and fixes

* lint

* nits

* more nits

* update dependencies

* fix linter

* prep for 1.0.0

* Return the promise

* improve documentation and tests

* improve test names

* Update README.md

* added ci.yml and release.yml

* release.yml change

* add ci.yml

* Update README.md

* Update README.md

* add codecov

* Update README.md

* codecov_fix

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* updage package files

Co-authored-by: Corey <[email protected]>
  • Loading branch information
adonawa and cbaker6 authored Feb 7, 2022
1 parent 933cde2 commit 4d09ebe
Show file tree
Hide file tree
Showing 18 changed files with 11,409 additions and 676 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"root": true,
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parser": "@babel/eslint-parser",
"plugins": [
"flowtype"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": 2,
"eol-last": 2,
"space-in-parens": ["error", "never"],
"no-multiple-empty-lines": 1,
"prefer-const": "error",
"space-infix-ops": "error",
"no-useless-escape": "off",
"require-atomic-updates": "off"
}
}
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- '**'
env:
NODE_VERSION: 14.16.1
jobs:
check-circular:
name: Circular Dependencies
timeout-minutes: 5
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- name: Install dependencies
run: npm ci
- run: npm run madge:circular
check-lint:
name: Lint
timeout-minutes: 5
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- name: Install dependencies
run: npm ci
- run: npm run lint
check-tests:
name: Tests
timeout-minutes: 5
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- run: npm ci
- run: npm test
env:
CI: true
- uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: release
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# node / npm
node_modules
package-lock.json
.size-snapshot.json
*.log
.netlify
lib-cov
coverage
.nyc_output
# IDE stuff
**/.idea

# OS stuff
.DS_Store
.tmp
lib

dist
misc
queues
TODO.md
types/
misc.js
Loading

0 comments on commit 4d09ebe

Please sign in to comment.