Skip to content

Commit

Permalink
Merge pull request #85 from vansergen/v5
Browse files Browse the repository at this point in the history
[BREAKING CHANGE]: Change the package type from commonjs to module
  • Loading branch information
vansergen authored Oct 30, 2021
2 parents da9497f + dc4bd88 commit 5ef78dc
Show file tree
Hide file tree
Showing 20 changed files with 3,524 additions and 5,726 deletions.
1 change: 1 addition & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "exclude": ["build/test/*"] }
6 changes: 0 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ build/

# Documentation
docs/

# nyc test coverage
.nyc_output/

# Coverage directory used by nyc
coverage/
61 changes: 18 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,33 @@ jobs:
- name: npm version
run: npm --version

- name: Git version
run: git --version

- name: Install dependencies
run: npm ci

- name: Tests
run: npm test

- name: Tests:js
run: npm run test:js
- name: Commitlint
run: npm run commitlint:all

- name: Prettier
run: npm run prettier

- name: commitlint
run: npm run commitlint:all

- name: ESLint
run: npm run lint

- name: Publish test
- name: Tests
run: npm run test:ci

- name: Publish (test)
run: npm run publish:test

- name: Docs
run: npm run docs:build
- name: Coverage
run: npm run coverage:ci

- name: npm vulnerabilities
run: npm audit --production
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

coverage:
docs:
runs-on: ubuntu-latest

steps:
Expand All @@ -63,48 +59,27 @@ jobs:
node-version: 16
check-latest: true

- name: Node.js version
run: node --version

- name: npm version
run: npm --version

- name: Install dependencies
run: npm ci

- name: Coverage
run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Docs
run: npm run docs:build

release:
needs: [test, coverage]
needs: [test, docs]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Node.js version
run: node --version

- name: npm version
run: npm --version

- name: git version
run: git --version

- name: gpg version
run: gpg --version

- name: Install dependencies
run: npm ci

Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "*": "npm run prettier:write", "*.{ts,js}": "npm run lint:fix" }
{ "*": "npm run prettier:write", "*.ts": "npm run lint:fix" }
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# Coverage directory used by nyc
coverage

# c8 config - https://github.com/bcoe/c8
.c8rc.json

# GitHub folder
.github/

Expand Down
10 changes: 5 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# nyc test coverage
.nyc_output/

# Coverage directory used by nyc
coverage/
coverage

# nyc test coverage
.nyc_output

# Documentation
docs/
docs
12 changes: 6 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from "./src/public";
export * from "./src/signer";
export * from "./src/auth";
export * from "./src/websocket";
export * from "./src/currencies";
export * from "./src/currencypairs";
export * from "./src/public.js";
export * from "./src/signer.js";
export * from "./src/auth.js";
export * from "./src/websocket.js";
export * from "./src/currencies.js";
export * from "./src/currencypairs.js";
Loading

0 comments on commit 5ef78dc

Please sign in to comment.