Noderize

Noderize

  • Docs
  • GitHub

›Guides

Get Started

  • Introduction
  • Create
  • Scripts
  • Examples

Configuration

  • Index
  • Noderize
  • Prettier
  • Jest

Features

  • Index
  • Modern JavaScript
  • Flow
  • TypeScript
  • Code Formatting
  • Testing
  • Linting

Guides

  • Index
  • Migrate
  • Publishing
  • Heroku
  • Firebase Cloud Functions
  • Google Cloud Functions

Tutorials

  • Index
  • Express
  • CLI

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 configure bundles (for building) and startFile (for watch/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!

← GuidesGuide: Publishing →
Noderize
Docs
Getting StartedConfigurationFeaturesGuidesTutorials
More
BlogGitHubStar
Copyright © 2018 Charles Crete.