- chrome side panel
- terminal cli for login
- webpack build plugin
- deprecate: zephyr-api
- examples folder
- lib: zephyr-edge-contract with shared types
- CloudFlare edge worker: ze-worker-to-generate-build-id - to generate build id
- CloudFlare edge worker: ze-worker-for-static-upload - to upload and serve files
- locally
ZE_API=http://localhost:3333
- dev
ZE_API=https://api-dev.zephyr-cloud.io
npx nx run sample-webpack-application:build --watch --skip-nx-cache
npx nx run sample-webpack-application:build --watch --skip-nx-cache
npx nx run-many -t build --parallel=1 --skip-nx-cache --verbose -p team-blue team-green team-red
npx nx run team-green:build --skip-nx-cache --watch
- install dependencies
- setup local dns (once)
- run local edge
- run local zephyr-api\ui
- deprecate: run local event server
- run one of sample apps (sample-webpack-app or react-micro-frontends)
Local DNS proxy to make wildcard links work locally (*.edge.lan)
- for win Acrylic DNS Proxy
- for mac
brew install dnsmasq
sudo brew services start dnsmasq
add to Acrylic hosts:
127.0.0.1 edge.lan *.edge.lan
npm ci
npx nx run zephyr-side-panel:build:development
set pg_url for ze_api, ask @valorkin or make your own
# start logger server
npx nx run zephyr-api:serve
# start local edge
npx nx run ze-worker-for-static-upload:start
clean workers cache for demo
rm -rf ./workers/.wrangler
working locally with verdaccio
# terminal 1
npm run registry
#termianl 2
npx nx run zephyr-webpack-plugin:build
npm publish dist/libs/zephyr-edge-contract
npm publish dist/libs/zephyr-webpack-plugin
set ZE_DEV=local
for terminal
#terminal 3
# react webpack
npm create nx-workspace
cd your-new-folder
npm i -D zephyr-webpack-plugin
git remote add origin [email protected]:valorkin/demo.git
add to webpack config
const { composePlugins, withNx } = require('@nx/webpack');
const { withReact } = require('@nx/react');
// import withZephyr
const { withZephyr } = require('zephyr-webpack-plugin');
// Nx plugins for webpack.
module.exports = composePlugins(
withNx(),
withReact(),
// use with zephyr
withZephyr(),
(config) => {
// Update the webpack config as needed here.
// e.g. `config.plugins.push(new MyPlugin())`
return config;
}
);
bump versions -> do commit
npm run build-libs
npm publish dist/libs/zephyr-edge-contract
npm publish dist/libs/zephyr-webpack-plugin
npm publish dist/libs/zephyr-agent
npm publish dist/libs/rollup-plugin-zephyr
npm pack dist/libs/zephyr-edge-contract
npm pack dist/libs/zephyr-webpack-plugin
npm pack dist/libs/rollup-plugin-zephyr
npm pack dist/libs/zephyr-agent
npm run build-libs
npm pack dist/libs/rollup-plugin-zephyr
npm pack dist/libs/zephyr-agent
cd dist/libs/zephyr-agent
npm pack ../zephyr-edge-contract
npm i ./zephyr-edge-contract-0.0.10.tgz