The Box
Build & Publish
Build
npm run build
Build & Watch
npm run dev
Publish
npm run publish
Local testing
create a sync.paths file with the local projects
cd the-box
echo 'paths=(
"./examples/next-ts"
"./examples/react-js"
"../box-demo"
)
entries=(
"./examples/next-ts/pages/\_app.tsx"
"./examples/react-js/src/index.js"
"../box-demo/pages/\_app.tsx"
)' > sync.paths
run the local projects
cd the-box/examples/next-ts
npm run dev
cd the-box/examples/react-js
npm run start
building manually syncs the package to other local projects
cd the-box
npm run build
watching for changes automatically syncs the package to other local projects
cd the-box
npm run dev