Skip to content

Commit

Permalink
feat: add code-splitting and node_modules support (PreMiD#6922)
Browse files Browse the repository at this point in the history
* feat: add code-splitting and node_modules

* chore: remove console.log

* fix: can't check folder name

* fix: remove unused

* fix: wrong path

* chore: rename variables

* fix: workflow?

* fix: workflow?

* fix: workflow?

* fix: workflow?

* fix: workflow?

* fix: workflow?

* fix: presencevalidator

* chore: format

* chore: bump version

* chore: refactor

* fix: ternary

* Update tools/util/getLatestSchema.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/util/getLatestSchema.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceUpdater.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceUpdater.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceUpdater.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceValidator.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceValidator.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/classes/PresenceCompiler.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/auto/presenceValidator.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/util/getLatestSchema.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/util/getLatestSchema.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/classes/PresenceCompiler.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/classes/PresenceCompiler.ts

Signed-off-by: Florian Metz <me@timeraa.dev>

Update tools/classes/PresenceCompiler.ts

Signed-off-by: Florian Metz <me@timeraa.dev>
Co-Authored-By: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>

* chore: remove uncommitted

* chore: log validated Presence name

* fix: use service name instead

* chore: use npm instead

* fix: missing package-lock

* chore: add compile message

* chore: are you happy now

* chore: remove is-ci

* Update tools/auto/presenceUpdater.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* Update tools/auto/presenceValidator.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* Update tools/classes/PresenceCompiler.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* Update tools/metadataSorter.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* Update tools/util.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* chore: yes

* Update tools/classes/PresenceCompiler.ts

Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Signed-off-by: Florian Metz <me@timeraa.dev>

* chore: yes

* chore: remove since unused

* style: fix curly

* chore: change name

Signed-off-by: Florian Metz <me@timeraa.dev>
Co-authored-by: Rhys Rakoff <64903135+EncryptedDev@users.noreply.github.com>
Co-authored-by: Rhys <rhyss.rakoff@gmail.com>
  • Loading branch information
3 people authored Oct 29, 2022
1 parent 97734fa commit 4ba018e
Show file tree
Hide file tree
Showing 52 changed files with 13,227 additions and 6,141 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
util
tools
.vscode
**/*.js
*.json
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml → .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DePloY
name: CD
on:
push:
branches:
Expand All @@ -7,21 +7,21 @@ on:
- "**.ts"
- "**.json"
jobs:
UpdatePresences:
runs-on: ubuntu-18.04
update:
if: github.repository_owner == 'PreMiD'
name: Update Presences
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3.5.1
with:
node-version: 16
cache: "yarn"
cache: npm
- name: Install dependencies
run: yarn
run: HUSKY=0 npm ci
- name: Update Presences
env:
MONGO_URL: ${{ secrets.MONGO_URL }}
GHTOKEN: ${{ secrets.GHTOKEN }}
run: yarn pu
run: npm run presenceUpdater
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
uses: actions/setup-node@v3.5.1
with:
node-version: 16
cache: "yarn"
cache: npm
- name: Install dependencies
run: yarn
run: HUSKY=0 npm ci
- name: Compile changed files
run: |
git config --global core.quotePath false
yarn compile ${{ github.event_name }} $GITHUB_BASE_REF
npm run compile ${{ github.event_name }}
- name: Check Lint
run: yarn lint:ci
run: npm run lint:ci
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Schema Validation Check
name: Presence Validator
on: pull_request
jobs:
validate:
name: Schema Validation Check
name: Presence Validator
runs-on: ubuntu-latest
steps:
- name: Checkout Project
Expand All @@ -13,10 +13,10 @@ jobs:
uses: actions/setup-node@v3.5.1
with:
node-version: 16
cache: "yarn"
cache: npm
- name: Install dependencies
run: yarn
- name: Run SV
run: HUSKY=0 npm ci
- name: Run Presence Validator
run: |
git config --global core.quotePath false
yarn sv ${{ github.event_name }}
npm run presenceValidator ${{ github.event_name }}
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
uses: actions/setup-node@v3.5.1
with:
node-version: 16
cache: "yarn"
cache: npm
- name: Install dependencies
run: yarn
run: HUSKY=0 npm ci
- name: Start SE
run: |
git config --global core.quotePath false
git config --global core.precomposeunicode true
yarn se
npm run schemaEnforcer
- name: Commit any changes
if: always()
run: |
Expand Down
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# General files
.idea
node_modules
package-lock.json
pnpm-lock.yaml
pnpm-lock.json
yarn.lock
.env

# Compiled files
Expand Down Expand Up @@ -40,4 +40,7 @@ lerna-debug.log*
**/.history

# Exception for extension recommendations
!**/.vscode/extensions.json
!**/.vscode/extensions.json

# PresenceUpdater
dist
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
*.js
*.md
*.json
*.json
Loading

0 comments on commit 4ba018e

Please sign in to comment.