Skip to content

Commit

Permalink
Init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Coow committed Oct 8, 2023
0 parents commit 8795d66
Show file tree
Hide file tree
Showing 23 changed files with 8,269 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a basic workflow to help you get started with Actions

name: Build & Release

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

push:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Install NodeJS and NPM
- uses: actions/setup-node@v3
with:
node-version: '18.x'
# Runs a single command using the runners shell
- name: Install dependencies
run: npm install

# Build the bundle
- name: Build bundle
run: |
npm run build --if-present --skipLibCheck
zip -r nodecg-themer.zip package.json node_modules package-lock.json dashboard extension README.md LICENSE
tar -cvf nodecg-themer.tar package.json node_modules package-lock.json dashboard extension README.md LICENSE
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v1.0.0"
prerelease: false
title: "Development Build"
files: |
*.zip
*.tar
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
coverage
bower_components
.parcel-cache
/dashboard
/graphics
/extension
6 changes: 6 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@parcel/config-default",
"validators": {
"*.{ts,tsx}": ["@parcel/validator-typescript"]
}
}
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2023 Coow <>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# nodecg-themer

nodecg-themer is a [NodeCG](http://github.com/nodecg/nodecg) bundle.
It works with NodeCG versions which satisfy this [semver](https://docs.npmjs.com/getting-started/semantic-versioning) range: `^2.0.0`
You will need to have an appropriate version of NodeCG installed to use it.


## Developing

Use the following commands:

- `npm run build`: Build the project once.
- `npm run watch`: Build the project and automatically rebuild on changes.
- `npm run dev`: Build the project, automatically rebuild on changes, launch the NodeCG server, and automatically restart the NodeCG server on changes.
- Only restarts the NodeCG server when server-side (i.e. extension) code changes. Changes to client-side code (i.e. dashboard panels and graphics) will not cause the server to restart, nor will they cause browser tabs to automatically refresh.


16 changes: 16 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"watch": ["src/extension/*", "src/types/*"],
"exec": "npm run build:extension && node ../../index.js",
"ext": "js,ts,json,yaml",
"delay": 500,
"ignoreRoot": [
".git",
"node_modules",
".nyc_output",
".parcel-cache",
"coverage",
"extension",
"graphics",
"dashboard"
]
}
Loading

0 comments on commit 8795d66

Please sign in to comment.