0.8.4 • Published 3 years ago

encirclelabs v0.8.4

Weekly downloads
99
License
ISC
Repository
github
Last release
3 years ago

Welcome to Cybertron - EncircleLabs inner UI library 👋

Quick start

To get it worked with published npm library:

  • Add to aliases.js the next rows:
const getLibrary = () => process.env.REACT_APP_LIBRARY_PATH || 'encirclelabs';

module.exports = {
...
  • To overwrite the default order in which webpack will look for your dependencies and make your parent application node_modules more prioritized than component node module resolution order (the same should be used for all packages that are used in both projects):

react: resolveApp('node_modules/react'), 'react-router-dom': resolveApp('node_modules/react-router-dom'), '@material-ui/styles': resolveApp('node_modules/@material-ui/styles'), '@material-ui/core': resolveApp('node_modules/@material-ui/core'),

  • Add path to component library (for local development it'll be path from env.local to local library, for deployed version of parent app it'll be published npm library):

'@library': getLibrary(),

}

  • config-override.js should include removeModuleScopePlugin option and looks like that
const { addWebpackAlias, override, removeModuleScopePlugin } = require('customize-cra');
const aliases = require('./aliases');

module.exports = override(removeModuleScopePlugin(), addWebpackAlias(aliases));

To work with locally run instance:

  1. In the project directory, you can run yarn

  2. Run yarn watch

  3. Add to env.local file your own local path to dist folder of cybertron library REACT_APP_LIBRARY_PATH =/Users/yourUsername/yourPathToFolder/cybertron/dist

  4. To publish changes to npm it's enough just to merge changes to main, they will be published automatically

0.8.4

3 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.6.19

3 years ago

0.6.20

3 years ago

0.6.10

3 years ago

0.6.12

3 years ago

0.6.11

3 years ago

0.6.18

3 years ago

0.6.17

3 years ago

0.6.14

3 years ago

0.6.13

3 years ago

0.6.16

3 years ago

0.6.15

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.7

3 years ago

0.6.9

3 years ago

0.6.8

3 years ago

0.6.6

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.2

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.9

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.4.9

3 years ago

0.4.8

3 years ago

0.3.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.5.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.5.1

3 years ago

0.3.3

3 years ago

0.3.9

3 years ago

0.4.5

3 years ago

0.2.7

3 years ago

0.4.4

3 years ago

0.2.6

3 years ago

0.4.7

3 years ago

0.2.9

3 years ago

0.4.6

3 years ago

0.2.8

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.3

3 years ago

0.2.5

3 years ago

0.4.2

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.5

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago