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

Replace Webpack with Vite #219

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
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
Loading