6555a68fa9
Serve the front-end sources of the new back-office through the current satellite admin server under the path `/back-office`. The front-end is served in the same way than the current one, which is through an indicated directory path with a configuration parameter or embed in the binary when that configuration parameter is empty. The commit also slightly changes the test that checks serving these static assets for not targeting the empty file in the build folder. build folders must remain because of the embed directive. Change-Id: I3c5af6b75ec944722dbdc4c560d0e7d907a205b8 |
||
---|---|---|
.. | ||
build | ||
public | ||
src | ||
.gitignore | ||
assets_noembed.go | ||
assets.go | ||
index.html | ||
jsconfig.json | ||
package.json | ||
README.md | ||
vite.config.js | ||
yarn.lock |
essentials
Project setup
# yarn
yarn
# npm
npm install
# pnpm
pnpm install
Compiles and hot-reloads for development
# yarn
yarn dev
# npm
npm run dev
# pnpm
pnpm dev
Compiles and minifies for production
# yarn
yarn build
# npm
npm run build
# pnpm
pnpm build
Lints and fixes files
# yarn
yarn lint
# npm
npm run lint
# pnpm
pnpm lint