Guide: Migrate
You can use Noderize with an existing project.
- Move all your source into
src
or any configured directory. - Add
@noderize/scripts
and@noderize/runtime
to your project:yarn add @noderize/runtime yarn add -D @noderize/scripts # or npm install @noderize/runtime npm install -D @noderize/scripts
- Add your Noderize scripts (from the template) and set
main
:{ "...": "...", "main": "dist/index.js" "scripts": { "watch": "noderize-scripts watch", "build": "noderize-scripts build", "start": "noderize-scripts start", "format": "noderize-scripts format", "test": "noderize-scripts test", "clean": "noderize-scripts clean" } }
- If your entry is not at
src/index.js
(or whichever your source directory is, you will need to configurebundles
(for building) andstartFile
(forwatch
/start
).
Try it out! Use the build
command to see if it compiles.
If everything works, you can throw away all your other tools' configuration!