A full-fledge Vue 3 + NUI boilerplate to get you developing beautiful and responsive UI's in no time!
- True Hot Middle Reload [HMR] (No need to restart scripts to see your changes)
- Page Routing via Vue Router
- State Management via pinia
- Minification and Bundled via webpack
- ES6 Ready via babel
- Modern http requests via axios
- Modern CSS Framework via tailwindcss
- Auto build releases via GitHub Actions (See below)
- Download this repo
- Copy and paste
bcc-vue-boilerplate
folder toresources/bcc-vue-boilerplate
- Open Project in terminal.
- Navigate to the UI folder
cd ui
- Install Yarn Packages
yarn i
- Add
ensure bcc-vue-boilerplate
to yourserver.cfg
file - Now you are ready to get coding!
yarn run serve
- Run build:local to update the FX Manifest and build/zip your project for production release.
- The release version is determined by the version number within
/ui/package.json
- This will output your production build of the script as a .zip file within
/releases/version/yourscript.zip
yarn run build:local
or if you want to have the release build without being zipped, run
yarn run build:local:unzip
This allows your project to automatically build and release your UI/project to a github release whenever someone pushes to your main branch (This is HIGHLY recommended for any open source scripts)
- Prior to pushing to your repo
- Run build to update the FX Manifest for production
yarn run build
- Open release.yml (.github/workflows)
- Modify line 26 (files) to include all of your static files
- folders are denoted by its name without an extension
- include all files you need in the release (images for inventory etc.)
- Rename line 28 (dest) to your scripts name.zip
- Rename line 41 (files) to your scripts name.zip
- Open your GitHub repository
- Go to Settings
- Click on Actions on the left side
- Click on General
- Under Workflow Permissions set to Read and Write access
- Open the package.json file (ui/package.json)
- This value is used as the release tag
- Update the version on line 3
- Open the fxmanifest.lua
- Update the version on the bottom
yarn run lint