This repository was archived by the owner on Apr 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Fix/npm workspaces #268
Merged
Merged
Fix/npm workspaces #268
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
51e2bca
Move all services into ./services
TimTechDev 3098f3d
Using npm-workspaces
TimTechDev 775d410
Remove type mapping
TimTechDev b14b2b3
Solve dashboard monaco-editor dependency problem
TimTechDev 2975655
Little fix
TimTechDev 92fa036
Final touches on create-service.py
TimTechDev ee19272
Update repository field of all service packages
TimTechDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,39 @@ | ||
|
||
name: Update docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.repository, 'codeoverflow-org') # don't run this in forks | ||
steps: | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8.3 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout docs | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: codeoverflow-org/nodecg-io-docs | ||
path: docs | ||
ssh-key: ${{ secrets.DOCS_SSH_KEY }} | ||
ref: ${{ github.ref }} | ||
build: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.repository, 'codeoverflow-org') # don't run this in forks | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8.3 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout docs | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: codeoverflow-org/nodecg-io-docs | ||
path: docs | ||
ssh-key: ${{ secrets.DOCS_SSH_KEY }} | ||
ref: ${{ github.ref }} | ||
|
||
- name: Build docs | ||
run: python .scripts/build-docs.py | ||
- name: Build docs | ||
run: python .scripts/build-docs.py | ||
|
||
- name: GitHub Push | ||
run: | | ||
cd docs | ||
git config --global user.email "<>" | ||
git config --global user.name "codeoverflow-org" | ||
git add . | ||
git diff-index --quiet HEAD || git commit --message "Update generated documentation (codeoverflow-org/nodecg-io@${{ github.sha }})" | ||
git push origin "${GITHUB_REF#refs/heads/}" | ||
- name: GitHub Push | ||
run: | | ||
cd docs | ||
git config --global user.email "<>" | ||
git config --global user.name "codeoverflow-org" | ||
git add . | ||
git diff-index --quiet HEAD || git commit --message "Update generated documentation (codeoverflow-org/nodecg-io@${{ github.sha }})" | ||
git push origin "${GITHUB_REF#refs/heads/}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as fs from "fs"; | ||
|
||
const DIRS = ["./samples", "./services", "./utils"]; | ||
|
||
for (const dir of DIRS) { | ||
let tsconfig = { | ||
files: [], | ||
references: [] | ||
} | ||
let contents = fs.opendirSync(dir); | ||
let item; | ||
while ((item = contents.readSync()) !== null) { | ||
if (item.isDirectory() && fs.readdirSync(`${dir}/${item.name}`).includes("tsconfig.json")) { | ||
tsconfig.references.push({ | ||
path: "./" + item.name | ||
}) | ||
} | ||
} | ||
|
||
let content = "// This file will be overwritten automatically! Do not store options here.\n" + JSON.stringify(tsconfig) | ||
fs.writeFileSync(dir + "/tsconfig.json", content, { encoding: "utf8" }); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"extends": "../../tsconfig.common.json", | ||
"compilerOptions": { | ||
"target": "ES2015", | ||
|
||
"lib": ["ES2015", "dom"], | ||
"module": "ES2015", | ||
"sourceMap": true, | ||
"declaration": false | ||
"module": "ES2015" | ||
}, | ||
"extends": "../../tsconfig.common.json" | ||
"references": [ | ||
{ | ||
"path": "../" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.