@pie-lib/*
Some reusable react components, mostly used in pie components.
Elements are in packages.
Documentation
install
yarn installCommands
| Action | Cmd | Notes |
|---|---|---|
| test | npm test |
|
| lint | npm run lint |
|
| build | npm run build |
|
| release | npm run release |
|
| dev | scripts/dev --scope $package-name |
run the demo site on localhost:3000 --scope if optional |
| static | scripts/wip $alias-name |
build and deploy the static site tno now.sh |
Workflow
- merging to
developreleasesnextversions and deploys topie-lib-next.now.sh - merging to
masterreleaseslatestversions and deploys topie-lib.now.sh
test a single package
Just point jest to the dir/file:
./node_modules/.bin/jest packages/pkg-name/src/contributing
- the packages use
independentversioning, meaning that a change in 1 package won't bump another package's version. - use conventional commits syntax when commiting, lerna will detect the appropriate version bump.
rebase
To skip husky during a rebase do:
HUSKY_SKIP_HOOKS=1 git rebase ...dependencies
Test issues
Sometimes the project test set up can get out of synch
- try
npm run build,rm -fr packages/test-utils/node_modulesand run again.
Building and deploying a pre-release
# make sure the local demo is working first: scripts/dev then:
./node_modules/.bin/next build packages/demo
./node_modules/.bin/next export packages/demo
cd out
# you can now deploy using now (or if you have another static site handler)
now .Linking pslb
You'll have to run the link commands in the pslb repo, then you can run
yarn clean-install && yarn link-pslb && yarn print-module