-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: working analytics adapter (#1)
* 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
Showing
18 changed files
with
11,409 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.