Skip to content

gnordhielm/scriptless.tinyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

Option Default Type Description
from Try to find src {string} Path your entrypoint.
to 'build' {string} Directory to write your app to.
develop false {bool} Set to true to run your app with reloading and all that fun stuff.
port 3000 {string} Port to serve your app on.

About

A tool for generating minimal setup React apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages