Skip to content

Commit

Permalink
big massive refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
binarykitchen committed Oct 8, 2024
1 parent d21d93a commit 6a2b002
Show file tree
Hide file tree
Showing 96 changed files with 7,261 additions and 40,988 deletions.
5 changes: 0 additions & 5 deletions .browserslistrc

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

48 changes: 0 additions & 48 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/release.yml

changelog:
exclude:
authors:
# Ignore the release PR created by github-actions
- github-actions
categories:
- title: Breaking Changes 🍭
labels:
- "release: breaking change"
- title: New Features 🎉
labels:
- "release: feature"
- title: Performance 🚀
labels:
- "release: performance"
- title: Bug Fixes 🐞
labels:
- "release: bug fix"
- title: Document 📖
labels:
- "release: document"
- title: Other Changes
labels:
- "*"
37 changes: 21 additions & 16 deletions .github/workflows/push.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Test Runner for videomail-client
name: Test Runner for videomail-client (CI)

on:
push:
branches:
- dev

pull_request:
branches:
- dev
- push
- pull_request

jobs:
build-test-lint-check:
Expand All @@ -28,15 +23,25 @@ jobs:
run: npm ci

- name: Build assets
run: npm run build

- name: Run tests
uses: coactions/setup-xvfb@v1
with:
run: npm run test
run: npm run build:prod

- name: Run prettier
run: npm run prettier

- name: Run linter
run: npm run lint
# TODO Restore later
# - name: Run linter
# run: npm run lint

- name: Audit (detect vulnerabilities)
run: npm run audit

# TODO Restore later
# - name: Run tests
# uses: coactions/setup-xvfb@v1
# with:
# run: npm run test

- name: Run Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release to npm

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: 🛒 Checkout code
uses: actions/checkout@v4

- name: 🪛 Install Node.js via nvm
shell: bash --login {0}
run: |
nvm install --no-progress
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
- name: 📦 Install npm dependencies
run: npm ci

- name: 🔨 Build
run: npm run build:prod

- name: 📦 Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.VC_NPM_TOKEN_GITHUB }}
access: public
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ npm-debug.log
.DS_Store
*.code-workspace
storybook-static
dist
22 changes: 12 additions & 10 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
env
test
.github
.storybook
.vscode
etc
node_modules
src
.eslintignore
.eslintrc.js
test
.gitignore
.nvmrc
.prettierignore
.travis.yml
audit-ci.json
babel.config.js
gulpfile.js
package-lock.json
prettier.config.js
chromatic.config.json
eslint.config.mjs
prettier.config.cjs
tsconfig.json
package-lock.json
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

13 changes: 10 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,38 @@
"animitter",
"autobuffer",
"bytediff",
"camelcase",
"chpt",
"classlist",
"crossorigin",
"cssnano",
"deepmerge",
"derequire",
"filesize",
"getusermedia",
"gulpfile",
"hyperscript",
"keymirror",
"KHTML",
"Mbit",
"mofo",
"MSIE",
"packagejson",
"Pivac",
"playsinline",
"plusplus",
"preend",
"rsbuild",
"rubberband",
"Sadler",
"Seeflow's",
"styl",
"Tarr",
"Teleporting",
"tseslint",
"videomail",
"videomails",
"websockets",
"xvfb"
"wohooo",
"xvfb",
"Zack"
]
}
Loading

0 comments on commit 6a2b002

Please sign in to comment.