Skip to content

Commit 631c8b8

Browse files
feat(build): update ci/build + deps + migrate to vitest (#66)
1 parent d7da58a commit 631c8b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+13231
-23676
lines changed

.circleci/config.yml

-63
This file was deleted.

.circleci/utils.sh

-4
This file was deleted.

.editorconfig

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
13

2-
[*.{js,ts}]
4+
[*]
35
charset = utf-8
46
indent_style = tab
7+
max_line_length = 150
8+
9+
[*.{js,ts}]
510
trim_trailing_whitespace = true
11+
spaces_around_operators = inside
12+
insert_final_newline = false
13+
14+
[package.json]
15+
insert_final_newline = true
616

717
[*.{json,yml,md}]
818
indent_size = 2
9-
indent_style = space
19+
indent_style = space

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc.js

-12
This file was deleted.

.eslintrc.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"!**/*"
5+
],
6+
"plugins": [
7+
"@nx",
8+
"@typescript-eslint"
9+
],
10+
"overrides": [
11+
{
12+
"files": [
13+
"src/**/*.ts",
14+
"src/**/*.tsx",
15+
"vite.config.ts"
16+
],
17+
"extends": [
18+
"plugin:@nx/typescript",
19+
"plugin:@typescript-eslint/recommended",
20+
"./node_modules/@ssv/tools/config/typescript-recommended.json"
21+
],
22+
"parserOptions": {
23+
"project": "./tsconfig.lint.json"
24+
},
25+
"rules": {}
26+
},
27+
{
28+
"files": [
29+
"*.js",
30+
"*.jsx"
31+
],
32+
"extends": [
33+
"plugin:@nx/javascript"
34+
],
35+
"rules": {}
36+
},
37+
{
38+
"files": [
39+
"*.json"
40+
],
41+
"parser": "jsonc-eslint-parser",
42+
"rules": {
43+
"@nx/dependency-checks": [
44+
"warn",
45+
{
46+
"ignoredFiles": [
47+
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
48+
],
49+
"ignoredDependencies": [
50+
"vitest"
51+
]
52+
}
53+
]
54+
}
55+
}
56+
]
57+
}

.github/workflows/ci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
paths-ignore:
9+
- '**.md'
10+
11+
pull_request:
12+
branches:
13+
- master
14+
- '*.x'
15+
paths-ignore:
16+
- '**.md'
17+
18+
workflow_dispatch:
19+
inputs:
20+
publish:
21+
description: 'Publish 🚀'
22+
required: false
23+
type: boolean
24+
default: false
25+
force-prerelease:
26+
description: 'Force Pre-release'
27+
required: false
28+
type: boolean
29+
default: true
30+
31+
jobs:
32+
package:
33+
name: Package
34+
uses: sketch7/.github/.github/workflows/node-lib.yml@master
35+
with:
36+
node-version: '18'
37+
publishable: ${{ contains(fromJSON('["develop", "master", "workflow"]'), github.ref_name) || endsWith(github.ref_name, '.x') || github.event.inputs.publish == 'true' }}
38+
force-preid: ${{ github.event.inputs.force-prerelease == 'true' }}
39+
secrets:
40+
npm-auth-token: ${{ secrets.NPM_KEY }}

.gitignore

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
.idea
2-
*.log
3-
*.tgz
4-
5-
_artifact
6-
.rpt2_*
7-
.rts2_*
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
82

93
# compiled output
10-
/dist
11-
/tmp
4+
dist
5+
tmp
126
/out-tsc
13-
# Only exists if Bazel was run
14-
/bazel-out
157

168
# dependencies
17-
/node_modules
9+
node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
1819

19-
# profiling files
20-
chrome-profiler-events*.json
21-
speed-measure-plugin*.json
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
2226

2327
# misc
2428
/.sass-cache
@@ -32,4 +36,4 @@ testem.log
3236

3337
# System Files
3438
.DS_Store
35-
Thumbs.db
39+
Thumbs.db

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ node_modules
55
/typings
66
/src
77
/test
8+
/examples
89
/build
910
/tools
1011
/.idea
1112
/.vscode
1213
/.circleci
1314
/.cache
15+
/.github
1416
npm-debug.log
1517
*.tgz
1618

1719
_artifact
1820
.eslintrc
21+
.eslintrc.js
1922
.stylelintrc
2023
.editorconfig
2124
.gitignore

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": false
3+
}

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3+
}

.vscode/launch.json

-34
This file was deleted.

.vscode/settings.json

-3
This file was deleted.

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [5.0.0](https://github.com/sketch7/signalr-client/compare/4.1.0...5.0.0) (2023-09-08)
2+
3+
### Features
4+
5+
- **deps** export `DesiredConnectionStatus`
6+
7+
### BREAKING CHANGES
8+
9+
- **deps** changed `@microsoft/signalr: ^7.0.0` as `peerDependency`
10+
- **build** output as `esm` and `cjs`
11+
112
## [4.1.0](https://github.com/sketch7/signalr-client/compare/4.0.0...4.1.0) (2022-11-24)
213

314
### Features

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[npm]: https://www.npmjs.com/package/@ssv/signalr-client
77

88
# @ssv/signalr-client
9-
[![CircleCI](https://circleci.com/gh/sketch7/signalr-client.svg?style=shield)](https://circleci.com/gh/sketch7/signalr-client)
9+
[![CI](https://github.com/sketch7/signalr-client/actions/workflows/ci.yml/badge.svg)](https://github.com/sketch7/signalr-client/actions/workflows/ci.yml)
1010
[![npm version](https://badge.fury.io/js/%40ssv%2Fsignalr-client.svg)](https://badge.fury.io/js/%40ssv%2Fsignalr-client)
1111

1212
SignalR client library built on top of **@aspnet/signalr**. This gives you more features and easier to use.

build/args.js

-30
This file was deleted.

0 commit comments

Comments
 (0)