Helper functions shared by React and NextJS Apps
- In the AppHelper folder run
npm unlink ../../Chums/ChumsApp/node_modules/react ../../Chums/ChumsApp/node_modules/react-dom ../../Chums/ChumsApp/node_modules/react-router-dom
plugging, in the path to the app you plan to test with. - Run
npm build
AppHelper folder - Run
npm unlink ../../Chums/ChumsApp/node_modules/react ../../Chums/ChumsApp/node_modules/react-dom ../../Chums/ChumsApp/node_modules/react-router-dom
- Run
npm link
- Switch to the test project folder and run
npm link @churchapps/apphelper
to point to your local copy - Run
npm start
ornpm run dev
within your test project
- Run
npm build
andnpm pack
in AppHelper folder - In your project folder point to the .tgz file like so
"@churchapps/apphelper": "file:../../packages/AppHelper/churchapps-apphelper-0.0.24.tgz"
. Your path may be different. - Run
npm i
on your test project.
- Update version number in package.json
- Run
npm run build
- Run
npm publish --access=public