2.0.1 • Published 4 years ago
@scriptless/tinyapp v2.0.1
@scriptless/tinyapp
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=3001It'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. |
2.0.1
4 years ago
2.0.0
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
5 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago