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(build): update ci/build + deps + migrate to vitest #66

Merged
merged 27 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ecb3ba1
feat(deps): update libs + ci
stephenlautier Aug 27, 2023
a13b213
pkg lock
stephenlautier Aug 27, 2023
3591a28
fix all lint
stephenlautier Aug 27, 2023
86472c7
up build to use rollup
stephenlautier Aug 27, 2023
d82b8fe
export DesiredConnectionStatus
stephenlautier Aug 27, 2023
b0a62b9
nx init
stephenlautier Aug 27, 2023
4fabb6f
nx init workspace - subfolder
stephenlautier Aug 27, 2023
923ea3a
move files
stephenlautier Aug 27, 2023
9acd353
vitest
stephenlautier Sep 3, 2023
ec67029
fix more tests
stephenlautier Sep 3, 2023
0121f66
convert more connection tests
stephenlautier Sep 3, 2023
0ccb261
migrate all connection tests
stephenlautier Sep 3, 2023
0911fac
convert some to promise
stephenlautier Sep 3, 2023
4cae5f9
migrate dispose tests
stephenlautier Sep 3, 2023
f647a6a
remove unused
stephenlautier Sep 3, 2023
e9da307
convert setData tests + with failing test
stephenlautier Sep 3, 2023
bce0d20
partial fix skipped test
stephenlautier Sep 3, 2023
0e21ac2
move changes to root from ssv
stephenlautier Sep 7, 2023
caefdbf
change to esbuild + fix folder name
stephenlautier Sep 7, 2023
bcf3eb2
change to rollup + fix build
stephenlautier Sep 7, 2023
12af48b
remove esbuild
stephenlautier Sep 7, 2023
4bafec2
change signalr as peer + bump + rename nx proj name
stephenlautier Sep 7, 2023
a10a2c4
clean ci + pkg
stephenlautier Sep 7, 2023
0663aa3
fix lint
stephenlautier Sep 8, 2023
f2a1012
fix all lints
stephenlautier Sep 8, 2023
1dc77cb
cl+badge + remove redundant
stephenlautier Sep 8, 2023
a461a89
remove readme
stephenlautier Sep 8, 2023
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
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .circleci/utils.sh

This file was deleted.

14 changes: 12 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Editor configuration, see https://editorconfig.org
root = true

[*.{js,ts}]
[*]
charset = utf-8
indent_style = tab
max_line_length = 150

[*.{js,ts}]
trim_trailing_whitespace = true
spaces_around_operators = inside
insert_final_newline = false

[package.json]
insert_final_newline = true

[*.{json,yml,md}]
indent_size = 2
indent_style = space
indent_style = space
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

57 changes: 57 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"root": true,
"ignorePatterns": [
"!**/*"
],
"plugins": [
"@nx",
"@typescript-eslint"
],
"overrides": [
{
"files": [
"src/**/*.ts",
"src/**/*.tsx",
"vite.config.ts"
],
"extends": [
"plugin:@nx/typescript",
"plugin:@typescript-eslint/recommended",
"./node_modules/@ssv/tools/config/typescript-recommended.json"
],
"parserOptions": {
"project": "./tsconfig.lint.json"
},
"rules": {}
},
{
"files": [
"*.js",
"*.jsx"
],
"extends": [
"plugin:@nx/javascript"
],
"rules": {}
},
{
"files": [
"*.json"
],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"warn",
{
"ignoredFiles": [
"{projectRoot}/vite.config.{js,ts,mjs,mts}"
],
"ignoredDependencies": [
"vitest"
]
}
]
}
}
]
}
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- master
- '*.x'
paths-ignore:
- '**.md'

pull_request:
branches:
- master
- '*.x'
paths-ignore:
- '**.md'

workflow_dispatch:
inputs:
publish:
description: 'Publish 🚀'
required: false
type: boolean
default: false
force-prerelease:
description: 'Force Pre-release'
required: false
type: boolean
default: true

jobs:
package:
name: Package
uses: sketch7/.github/.github/workflows/node-lib.yml@master
with:
node-version: '18'
publishable: ${{ contains(fromJSON('["develop", "master", "workflow"]'), github.ref_name) || endsWith(github.ref_name, '.x') || github.event.inputs.publish == 'true' }}
force-preid: ${{ github.event.inputs.force-prerelease == 'true' }}
secrets:
npm-auth-token: ${{ secrets.NPM_KEY }}
36 changes: 20 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
.idea
*.log
*.tgz

_artifact
.rpt2_*
.rts2_*
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
dist
tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules
node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
Expand All @@ -32,4 +36,4 @@ testem.log

# System Files
.DS_Store
Thumbs.db
Thumbs.db
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ node_modules
/typings
/src
/test
/examples
/build
/tools
/.idea
/.vscode
/.circleci
/.cache
/.github
npm-debug.log
*.tgz

_artifact
.eslintrc
.eslintrc.js
.stylelintrc
.editorconfig
.gitignore
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": false
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
34 changes: 0 additions & 34 deletions .vscode/launch.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## [5.0.0](https://github.com/sketch7/signalr-client/compare/4.1.0...5.0.0) (2023-09-08)

### Features

- **deps** export `DesiredConnectionStatus`

### BREAKING CHANGES

- **deps** changed `@microsoft/signalr: ^7.0.0` as `peerDependency`
- **build** output as `esm` and `cjs`

## [4.1.0](https://github.com/sketch7/signalr-client/compare/4.0.0...4.1.0) (2022-11-24)

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[npm]: https://www.npmjs.com/package/@ssv/signalr-client

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

SignalR client library built on top of **@aspnet/signalr**. This gives you more features and easier to use.
Expand Down
30 changes: 0 additions & 30 deletions build/args.js

This file was deleted.

Loading
Loading