2.0.1 • Published 2 years ago

@scriptless/tinyapp v2.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
2 years ago

@scriptless/tinyapp

npm npm

A tool for generating minimal setup React apps.

Getting Started

Install with npm install @scriptless/tinyapp.

# Build once and walk away
$ tinyapp

# Build with development bells and whistles on a custom port
$ tinyapp --develop --port=3001

It's recommended that you tie these scripts to npm setup, especially if you need to add some custom configuration. For example:

// package.json
    ...
    "scripts" {
        "build": "tinyapp --from='./source/index.js' --to='./dist/'",
        "start": "tinyapp --from='./source/index.js' --develop"
    }
    ...

Note that while tinyapp does take care of all the bundling tools, you'll want to include react and react-dom yourself.

CLI

Run in a project with tinyapp installed by simply running tinyapp.

OptionDefaultTypeDescription
fromTry to find src{string}Path your entrypoint.
to'build'{string}Directory to write your app to.
developfalse{bool}Set to true to run your app with reloading and all that fun stuff.
port3000{string}Port to serve your app on.