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

feat: support windows. #52

Merged
merged 39 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
1104349
chore: upgrade deps.
knightedcodemonkey Jun 29, 2024
9317965
ci: os, node matrix.
knightedcodemonkey Jun 30, 2024
c3b1645
chore: normalize line endings.
knightedcodemonkey Jun 30, 2024
b0e8ca0
ci: run on eol branch.
knightedcodemonkey Jun 30, 2024
b680846
refactor: use platform var.
knightedcodemonkey Jun 30, 2024
1d65b78
ci: quote globs for c8 on windows.
knightedcodemonkey Jun 30, 2024
06a5d06
ci: remove quotes globs from npm test script.
knightedcodemonkey Jun 30, 2024
1f16f7e
fix: use shell in utils for win32.
knightedcodemonkey Jun 30, 2024
3ed0a1c
test: use resolve for cli test.
knightedcodemonkey Jun 30, 2024
59b39a6
ci: recursive copy.
knightedcodemonkey Jun 30, 2024
239f709
ci: fix lint.
knightedcodemonkey Jun 30, 2024
e5bfc29
ci: try copyFile.
knightedcodemonkey Jun 30, 2024
318ed43
ci: mkdir always.
knightedcodemonkey Jul 1, 2024
8451cfd
ci: remove digits.
knightedcodemonkey Jul 1, 2024
d66c720
chore: update deps.
knightedcodemonkey Sep 30, 2024
02088f5
chore: upgrade node types.
knightedcodemonkey Sep 30, 2024
cf0b6f6
test: spawn shell.
knightedcodemonkey Sep 30, 2024
96daa87
refactor: use os eol.
knightedcodemonkey Sep 30, 2024
895defc
test: restore, use shell for mono.
knightedcodemonkey Sep 30, 2024
88b1661
refactor: try cp.
knightedcodemonkey Sep 30, 2024
47983ec
refactor: try cp again.
knightedcodemonkey Sep 30, 2024
4e05ff4
test: shell for exec.
knightedcodemonkey Sep 30, 2024
481af61
test: try skipping import attrs on win.
knightedcodemonkey Sep 30, 2024
1b10517
test: monorepos.
knightedcodemonkey Sep 30, 2024
cda7e7e
ci: test integration without coverage.
knightedcodemonkey Sep 30, 2024
9005b99
test: skip some.
knightedcodemonkey Sep 30, 2024
60659a4
ci: increase node memory.
knightedcodemonkey Sep 30, 2024
adb2aa0
test: split files.
knightedcodemonkey Sep 30, 2024
b0b7554
test: skip 4.
knightedcodemonkey Sep 30, 2024
0dd08bf
test: skip 3
knightedcodemonkey Sep 30, 2024
48bbce9
test: skip 2
knightedcodemonkey Sep 30, 2024
4581a24
test: skip cli.
knightedcodemonkey Sep 30, 2024
4fa67b5
test: correct os paths.
knightedcodemonkey Sep 30, 2024
4700ca0
test: no cwd for cli.
knightedcodemonkey Sep 30, 2024
28424d5
test: skip cli for win.
knightedcodemonkey Sep 30, 2024
b5b448b
ci: no run on branch push.
knightedcodemonkey Sep 30, 2024
756ce8f
ci: remove redundant name.
knightedcodemonkey Sep 30, 2024
5a04b9b
ci: remove other name.
knightedcodemonkey Oct 1, 2024
0bf2f05
ci: whats in a name.
knightedcodemonkey Oct 1, 2024
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
23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ on:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
version: ['20.11.0', '22.9.0']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.2.0
- name: Setup Node
uses: actions/[email protected].2
uses: actions/[email protected].4
with:
node-version: '20.11.0'
node-version: ${{ matrix.version }}
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v4.3.0
uses: actions/upload-artifact@v4.4.0
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
Expand All @@ -32,7 +36,7 @@ jobs:
- name: Test
run: npm test
- name: Report Coverage
uses: codecov/codecov-action@v4.1.0
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.2.0
- name: Setup Node
uses: actions/[email protected].2
uses: actions/[email protected].4
with:
node-version: '20.11.0'
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v4.2.0
uses: actions/upload-artifact@v4.4.0
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Pack
run: npm pack
- name: Push to NPM registry
uses: JS-DevTools/npm-publish@v3.0.1
uses: JS-DevTools/npm-publish@v3.1.1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
tag: ${{ contains(github.ref, '-') && 'next' || 'latest' }}
Expand Down
41 changes: 41 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import eslint from '@eslint/js'
import nodePlugin from 'eslint-plugin-n'
import globals from 'globals'

export default [
eslint.configs.recommended,
nodePlugin.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 2023,
globals: {
...globals.es2015,
...globals.node,
},
parserOptions: {
sourceType: 'module',
},
},
rules: {
'no-console': 'error',
'n/no-process-exit': 'off',
'n/hashbang': [
'error',
{
convertPath: {
'src/*.js': ['^src/(.+)$', 'dist/esm/$1'],
},
},
],
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: [
// No longer experimental with v22.3.0
'fs/promises.cp',
],
},
],
},
},
]
Loading
Loading