Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monorepo: Lerna #16

Merged
merged 10 commits into from
Jul 12, 2020
Merged

monorepo: Lerna #16

merged 10 commits into from
Jul 12, 2020

Conversation

MuYunyun
Copy link
Owner

@MuYunyun MuYunyun commented Jul 7, 2020

refactor using lerna

-- packages
  -- create-react-doc // bin command
  -- crd-scripts           // env logic such as webpack and babel
  -- crd-templates      // default crd templates
  -- crd-theme            // default crd theme
  • crd-theme --------used in--------> crd-scripts --------used in--------> create-react-doc
    • start
    • build
  • crd-templates --------used in--------> create-react-doc
    • init

How to debug code using lerna when not publish each child project.

Adjust Reference

const initProject = require('../src/commands/initProject');
const initCache = require('../src/utils/initCache');
const Servers = require('../src/server');
const Build = require('../src/build');
const Deploy = require('../src/deploy');
const paths = require('../src/conf/path');
const {
  initProject,
  initCache,
  Servers,
  Build,
  Deploy,
  paths,
// to reserve crd-scripts
} = require('crd-scripts');

Advandage

  • Quick jump to reference file.
    • Instead webpack alias maybe do extra config.

image

  • one key to publish

image

@MuYunyun MuYunyun mentioned this pull request Jul 8, 2020
6 tasks
@MuYunyun MuYunyun self-assigned this Jul 9, 2020
@MuYunyun MuYunyun added the enhancement New feature or request label Jul 12, 2020
@MuYunyun MuYunyun merged commit 410b907 into master Jul 12, 2020
@MuYunyun MuYunyun changed the title WIP: monorepo: Lerna monorepo: Lerna Jul 12, 2020
@MuYunyun MuYunyun deleted the lerna branch July 13, 2020 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant