First of all you need to install:
Available scripts:
Open http://localhost:3000 to view it in the browser.
To install project dependencies run:
For testing firebase functions purposes:
export GOOGLE_APPLICATION_CREDENTIALS={path-to-service-account-file}/service-account.json
(on Unix)
set GOOGLE_APPLICATION_CREDENTIALS={path-to-service-account-file}/service-account.json
(on Windows)
- set env (prod or dev)
make deploy
Available firebase CLI commands:
firebase use dev
firebase use prod
Switches your env to dev/prod mode
- Functions env config can be set only manually through the console :
firebase functions:config:set env.mode="prod"
- component with *Field prefix belongs to final-form components
You can use one of these scripts to setup the project:
make bootstrap
will install all dependencies and build the project for you.make clean
will remove allnode_modules
folder from packages.
It must be executed from the root
folder.
-
npm run bootstrap
will install all packages dependencies and link them all together. -
npm run link
willsymlink
dependencies -
npm run build
will executenpm run lerna:build
command from each packages.
The file lerna.json
contains all configurations related to lerna including the packages location.
$ npx lerna add @booklake/new-module
$ npx lerna add @booklake/new-module --scope=homebase --scope=@design-system