Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mint-dewit/casparcg-vue-boilerplate
A boilerplate to develop templates for CasparCG using Vue.
https://github.com/mint-dewit/casparcg-vue-boilerplate
Last synced: about 2 months ago
JSON representation
A boilerplate to develop templates for CasparCG using Vue.
- Host: GitHub
- URL: https://github.com/mint-dewit/casparcg-vue-boilerplate
- Owner: mint-dewit
- Created: 2019-02-17T09:42:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T19:15:01.000Z (about 2 years ago)
- Last Synced: 2024-10-19T15:39:56.010Z (3 months ago)
- Language: Vue
- Size: 1.68 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CasparCG Vue based HTML graphics boilerplate
A boilerplate to develop multiple HTML templates for CasparCG using the Vue framework.
## Project setup
```
git clone https://github.com/baltedewit/casparcg-vue-boilerplate.git
cd casparcg-vue-boilerplate
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
yarn install
```### Compiles and hot-reloads for development
```
yarn run serve
```
Open `http://localhost:8080` in a browser or send `CG 1 ADD http://localhost:8080/index.html 1` to CasparCG.### Compiles and minifies for production
```
yarn run build
```### Lints and fixes files
```
yarn run lint
```### Adding a template to the bundle:
1. Create a file in the `public` directory called `{{template-name}}.html` similar to the other files
2. Copy-paste one of the boilerplate templates in the `src` directory and rename it to `{{template-name}}`
3. Edit `vue.config.js` and add your template to the `pages` object.### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).## Developing for the browser
Note that your browser and the renderer in CasparCG will be different! Both 2.1.0.NRK and 2.2.0 run on Chromium 63 and they are configured in a different way than your normal browser. (E.g. web security features are disabled, webgl is disabled by default, hardware acceleration is disabled by default) You can attach debugging tools to the renderer in CasparCG, but you will lose the ability to use Vue devtools. Development will most likely be a combination of testing code and logics in Chrome and testing visual output in CasparCG.