Important
This previously experiment is wrapped up, moving forward the development will happen at https://github.com/tinijs/tinijs.
If you want to use the experimental version still, please use the version 0.16.0
.
The base structure of a TiniJS app.
You can create an app automatically with the help of the CLI or manually creating it.
Using the CLI (recommended):
npx @tinijs/cli@0.16.0 new my-app --latest
Or, manually:
- Download or this repo:
git clone https://github.com/tinijs/skeleton.git
- Run:
cd skeleton && npm i
npm run dev
: to start the development serve.npm run build
: to build the production package.npm run preview
: to preview the production build locally.
To access the app from other devices on the same network:
- Run
ifconfig
to retrieve the IP of the host machine. - Preview the app:
192.168.1.XXX:3000
- Create a home for TiniJS:
mkdir TiniJS && cd TiniJS
- Install the CLI:
npm i -g @tinijs/cli@0.16.0
- Fork the repo
- Install dependencies:
cd skeleton && npm i
- Make changes & preview:
npm run dev
- Push changes & create a PR 👌
@tinijs/skeleton is released under the MIT license.