Skip to content

Commit

Permalink
Merge pull request #219 from KenEucker/develop
Browse files Browse the repository at this point in the history
Replace Webpack with Vite
  • Loading branch information
KenEucker authored Jan 22, 2024
2 parents 2394300 + 9ddf446 commit c85d3ac
Show file tree
Hide file tree
Showing 14 changed files with 6,359 additions and 17,943 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lib/
src/coverage/
dist/
webpack.config.js
vite.config.ts
example
imgur.js
imgur.node.js
imgur.mjs
16 changes: 7 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint
run: npm run lint:release
- name: Build
run: npm run build:prod
- name: Compile
run: npm run compile:prod
run: npm run build
- name: Run tests
run: npm run test:ci
- name: Release
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [18.x, 20.x]

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint
- name: Run Linters
run: npm run lint:release
- name: Build
run: npm run build --if-present
- name: Compile
run: npm run compile:prod
- name: Run tests
run: npm run test:ci
310 changes: 155 additions & 155 deletions LICENSE → LICENSE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ImgurClient, getAuthorizationHeader } = require('../dist/imgur.node');
const { ImgurClient, getAuthorizationHeader } = require('../');
const { createReadStream } = require('fs');
const { join } = require('path');
require('dotenv').config();
Expand Down
Loading

0 comments on commit c85d3ac

Please sign in to comment.