0.2.2 • Published 2 years ago

lapnn-dao-proposal v0.2.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Development Guide

Development

yarn
# then
yarn dev

Build

yarn
# then
yarn build

Publish

We are using clean-publish to make sure react (together with other unneeded stuff) is excluded in the published package.json:

npm run publish

Troubleshootting

I see no react in depedencies and devDependencies, how can we run the project locally?

Having react in dependencies and devDependencies will cause issues while we try to test the lib out locally (e.g. installing to another project). Biggest problem is the app will see 2 different instance of React, one from itself & one from the lib. Things like hooks will stop working. Therefore, it's best we only specify react as peerDependencies.

So that's the problem, what's the solution?

Just symlink react and react-dom from other projects' node_modules:

npm link ../project_that_uses_the_lib/node_modules/react
npm link ../project_that_uses_the_lib/node_modules/react-dom
0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.36

2 years ago

0.1.35

2 years ago

0.1.34

2 years ago

0.1.33

2 years ago

0.1.32

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago