Excludes packages from .env file instead of hardcoded

This commit is contained in:
scures 2022-06-01 09:34:42 +02:00
parent da72a9c4b5
commit 10cdf83315
3 changed files with 12 additions and 2 deletions

View File

@ -9,11 +9,16 @@ During the transition to the new folder structured in 2.6.5 required by the plug
- Run the script `./scripts/rejig` to move folders to their new location in the `shell` folder and update the appropriate import statements
Use this to convert older PRs to the new format
- Run the script `./scripts/rejig -d` to move folders to their old location and update imports again
Use this to convert newer branches to the old format (possibly useful for branches)
Use this to convert newer branches to the old format (possibly useful for branches)
For more information on plugins see [Plugins](./docs/developer/PLUGINS.md).
## Running for Development
Create an .env file, this will allow us to specifiy an Rancher API endpoint and exclude different packages.
```bash
# Create your new .env file
cp env.template .env
```
This is what you probably want to get started.
```bash
# Install dependencies

5
env.template Normal file
View File

@ -0,0 +1,5 @@
# Rancher API Endpoint
API="URL"
# Packages to exclude
EXCLUDES_PKG="epinio, rancher-comonents"

View File

@ -1,7 +1,7 @@
import config from './shell/nuxt.config';
export default config(__dirname, {
excludes: ['epinio', 'rancher-components'],
excludes: [...process.env.EXCLUDES_PKG.split(',')],
// excludes: ['fleet', 'example']
// autoLoad: ['fleet', 'example']
});