Skip to content

Make build scripts better #2748

@compulim

Description

@compulim

Feature Request

❓ = needs investigation

Implementations

Make build scripts simpler

  • npm start will do development build + watch
  • npm run prepublishOnly will do production build
  • npm test will run Jest + watch
  • npm tableflip will run stuff from NPX

Development build

  • Leave node_dev as-is (undefined)
    • When running on VSTS, npm test should run cross-env node_dev=test npm test --coverage true --no-watch
  • Setup source map correctly, so can debug easily in browser

Lerna

  • Remove samples from lerna.json
    • We no longer symlink packages/* to create-react-app samples
    • We can run npm ci manually when we build the sample
  • Remove embed from lerna.json
  • Update CONTRIBUTING.md

[Enhancement]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions