@centrifuge/axis-token-input v0.4.1-develop.131
Axis
Single source of truth used to build user interfaces for Centrifuge
Develop branch
https://develop.axis.centrifuge.io
Master branch
How to use
// canary releases from develop branch
npm install @centrifuge/axis-[packageName]@canary // Ex: npm install @centrifuge/axis-theme@canary
// releases from master
npm install @centrifuge/axis-[packageName] // Ex: npm install @centrifuge/axis-themeDevelopment
Use node v12.16.3: nvm use (the version is specified in .nvmrc)
Install and link all dependencies: npm install
Build and watch all packages: npm run build-watch
In a separate terminal, run storybook to view all examples: npm start
Linking
If you want to develop tinlake-ui, then you can use linking to depend on the local version of an axis component rather than the one in the npm package library. There are a few steps for this:
- In
packages/[some_component], runnpm linkto link[some_component]to your globalnode_modules. - In the root of
axis, runnpm link [tinlake_ui_path]/node_modules/react, where[tinlake_ui_path]is the path to your local tinlake-ui repo. This tells the axis components to use thereactdependency from the tinlake-ui package, rather than the one from the axisnode_modulesfolder. This prevents errors with React Hooks due to there being multiple instances ofreact. - In your tinlake-ui repo, run
npm link @centrifuge/axis-[some_component].
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago