@ied/launchpad
v2.8.8
Published
Internal fulll launchpad for React and symfony app
Downloads
121
Readme
🚨 This is a temporary solution, waiting a proper web service
How to
yarn add @fulll/launchpad
import { Launchpad, toggle } from '@fulll/launchpad'
<Launchpad
locale={locale}
displayAppNames={false}
platform={platform} // if "fr" it will display practitioner bookmarks
onAccountingFirmChange={() => console.log('onAccountingFirmChange')}
/>
🚨🚨🚨 React version problem between project, temporary solution
If your project use react 16 use launchpad version 2.4.17
or 2.4.19
If your project use react 17 use launchpad version 2.4.18
Dev localy
- use node 10
- launch app on firefox (doesn't work with Chrome)
- make sure you have previously logged in with the browser you are using
In order to test localy Launchpad in App.js instead of passing this.state.module
use the mocks
🚨 Projects to update when bumping launchpad version
Front
- [ ] bank
- [ ] bridge-admin.web
- [ ] buro.web
- [ ] crm.web
- [ ] dashboard
- [ ] document-manager.web
- [ ] forecast
- [ ] image-posting.web
- [ ] indicator
- [ ] invoicing.web
- [ ] marketing.web
- [ ] marketplace.web
- [ ] messenger.web
- [ ] task-manager.web
Back
- Dashboard V1
- Simple Accounting
- Cashdesk
- Invoicing V1
- Data Collector
Use token in .env to test launchpad locally
Shell script to optimize front-end updates on above applications
on MacOS :
- install gh
brew install gh
and hubbrew install hub
- make sure to login using
gh auth
- in your directory, make sure you have all the applications listed above
- change the following variables:
- VERSION: launchpad version
- REF: reference issue
- REVIEWERS: pull request reviewers
- manually add correct values to this line
sed -i '' 's/launchpad": "^2.4.8/launchpad": "^2.4.12/g' package.json
- to enable automatic generation of pull requests, you must install on your macos gh
brew install gh
- copy/paste the following script in a new file
updateLaunchpad
, and put it in the same directory than your projects - right click on the file , get information, unlock clicking on lock (bottom right)
- from your terminal launch : chmod 700 script_name (to give required access)
- launch the script from your terminal by running
./updateLaunchpad
NB
- if you already have deployed the latest version of the launchpad on an app for testing purposes, you can remove it from the for loop in the script
- if a project updates its node version, please update the script
- monorepos are supported
#!/bin/bash
TITLE=config/update-launchpad
VERSION=$'2.4.13'
NEWLINE=$'\n'
REF=$'[SH#4176](https://github.com/fulll/superheroes/issues/4176)'
BODY="Related to ${REF}${NEWLINE}${NEWLINE}Version${NEWLINE}Preprod${NEWLINE}${NEWLINE}Modification${NEWLINE}Update @fulll/launchpad to ${VERSION}."
REVIEWER='CySsD'
if [ -f ~/.nvm/nvm.sh ]; then
echo 'sourcing nvm from ~/.nvm'
. ~/.nvm/nvm.sh
fi
for APP in crm.web marketing.web messenger.web task-manager.web bridge-admin.web document-manager.web image-posting.web bank dashboard indicators forecast marketplace.web invoicing.web
do
if [ $APP = "bank" ] || [ $APP = "indicators" ] || [ $APP = "forecast" ] || [ $APP = "dashboard" ]
then
cd "$HOME/Projects/$APP/front-end" || exit
else
cd "$HOME/Projects/$APP" || exit
fi
if [ $APP = "bank" ] || [ $APP = "indicators" ] || [ $APP = "forecast" ] || [ $APP = "dashboard" ] || [ $APP = "marketplace.web" ]
then
if command -v nvm ; then
nvm use 12
else
echo "Cannot change Node version"
fi
elif [ $APP = "invoicing.web" ]
then
if command -v nvm ; then
nvm use 14
else
echo "Cannot change Node version"
fi
else
if command -v nvm ; then
nvm use 10
else
echo "Cannot change Node version"
fi
fi
git checkout master
hub sync
git checkout -b $TITLE
sed -i '' 's/launchpad": "^2.4.12/launchpad": "^2.4.13/g' package.json
yarn
git add . && git commit -m "$BODY"
git push --set-upstream origin $TITLE
gh pr create --base master --title "$TITLE" --body "$BODY" --reviewer $REVIEWER --assignee "@me"
done