Skip to content

Commit

Permalink
chore: upgrade storybook and clean up unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 4, 2024
1 parent c6b05ad commit a3c7d76
Show file tree
Hide file tree
Showing 4 changed files with 17,042 additions and 10,809 deletions.
14 changes: 11 additions & 3 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ module.exports = {
async viteFinal(config, { configType }) {
return mergeConfig(config, {});
},

stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
core: {
builder: '@storybook/builder-vite',
},

env: (config) => ({
...config,
VITE_APP_DEPLOY: 'DEV',
}),

framework: {
name: '@storybook/react-vite',
options: {}
},

docs: {
autodocs: true
}
};
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ Production URLs:

### Layers and Tables

| name | type | required fields |
|------------------------------|--------------------------------------------|-----|
| `RS2477 Centerlines` | polyline feature layer | `OBJECTID` `RD_ID` `S_Name` |
| `Video_Routes - Video Route` | points feature layer | `Date_Time` `GPS_Track_ID` |
| `Video End Point` | point feature layer with photo attachments | `OBJECTID` |
| name | type | required fields |
|------------------------------|--------------------------------------------|------------------------------------------|
| `RS2477 Centerlines` | polyline feature layer | `OBJECTID` `RD_ID` `S_Name` |
| `Video_Routes - Video Route` | points feature layer | `Date_Time` `GPS_Track_ID` |
| `Video End Point` | point feature layer with photo attachments | `OBJECTID` |
| `Video Report` | table | `RD_ID` `GPS_Track_ID` `Date_Time` `URL` |

Note: Field names are configurable in `config.js`
Expand All @@ -31,10 +31,4 @@ Note: Field names are configurable in `config.js`

## Releasing

1. Create .env file with appropriate values.
1. `npm run release`
1. Production:
1. `npm run build-prod`
1. Run `deploy.bat` from the directory on the server.
1. Stage:
1. `npm run deploy-stage`
Releases are managed automatically via [release-composite-action](https://github.com/agrc/release-composite-action).
Loading

0 comments on commit a3c7d76

Please sign in to comment.