Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.3.0 #226

Merged
merged 5 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lib/
src/coverage/
webpack.config.js
vite.config.ts
src/imgurClient/index.js
_site/
examples
dist
*.md
biketag.js
biketag.js.map
biketag.node.js
biketag.node.js.map
index.js
index.js.map
index.mjs
index.mjs.map
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.eleventy.js export-ignore
.eslintrc.js export-ignore
webpack.config.js export-ignore
.husky/**/* export-ignore
tests/assets/**/* export-ignore
examples/**/* linguist-documentation
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Install dependencies
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: Run linters
- name: Run Linters
run: npm run lint
- name: Build
- name: Run Build
run: npm run build:prod
- name: Compile
run: npm run compile:prod
- name: Run tests
- name: Run Tests
run: npm run test:ci
- name: Release
- name: Run Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ jobs:
- name: Run linters
run: npm run lint
- name: Build
run: npm run build --if-present
- name: Compile
run: npm run compile:prod
run: npm run build:prod
- name: Listing
run: ls -a
- name: Run tests
run: node -e "console.log(require.resolve('biketag'))" && npm run test:ci
run: npm run test:ci
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ contributing.md
index.md
jest.*.js
tsconfig.json
webpack.config.js
tsoa.json
jest.*.ts
vite.config.ts
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ src/coverage/
dist
examples/
_site/
webpack.config.js
*.md
/biketag.*
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ This package follows the lead of the Open-Source API [node-imgur][node-imgur], w
[msw]: https://mswjs.io/
[commitizen]: https://github.com/commitizen/cz-cli
[conventional commits]: https://www.conventionalcommits.org/
[code of conduct]: CODE_OF_CONDUCT.md
[code of conduct]: code_of_conduct.md
[node-imgur]: https://github.com/kaimallea/node-imgur
2 changes: 1 addition & 1 deletion examples/browser/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>BikeTag API test</title>
<script
type="text/javascript"
src="/dist/biketag.js"
src="/dist/index.js"
></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/imgur.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>BikeTag API test (imgur)</title>

<script type="text/javascript" src="/dist/biketag.js"></script>
<script type="text/javascript" src="/dist/index.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- <script src="https://cdn.jsdelivr.net/npm/biketag/biketag.js"></script> -->

<!-- Local BikeTag Client -->
<script src="/dist/biketag.js"></script>
<script src="/dist/index.js"></script>

<!-- Lazy Load Client -->
<script src="https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/browser/sanity.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<title>BikeTag API test</title>
<script type="text/javascript" src="/dist/biketag.js"></script>
<script type="text/javascript" src="/dist/index.js"></script>
</head>
<body>
<div id="data"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
} = require('path')
const {
BikeTagClient
} = require('../../dist/biketag.node.js')
} = require('../../dist/index.js')
require('dotenv').config()

const host = process.env.BIKETAG_API_HOST
Expand Down
2 changes: 1 addition & 1 deletion examples/node/test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
BikeTagClient
} = require('../../biketag.node.js')
} = require('../../dist/index.js')
require('dotenv').config()

const gamePayload = {
Expand Down
2 changes: 1 addition & 1 deletion examples/node/update.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
BikeTagClient
} = require('../../dist/biketag.node.js')
} = require('../../dist/index.js')
require('dotenv').config()

const host = process.env.BIKETAG_API_HOST
Expand Down
Loading