appDir <- "."
Install the dependencies…
npm install
…then start Rollup:
npm run dev
Navigate to localhost:5000. You should see your
app running. Edit a component file in src
, save it, and reload the
page to see your changes.
To create an optimised version of the app:
npm run build
You can run the newly built app with npm run start
.
This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:
node scripts/setupTypeScript.js
Or remove the script via:
rm scripts/setupTypeScript.js
If you want to use baseUrl
or path
aliases within your tsconfig
,
you need to set up @rollup/plugin-alias
to tell Rollup to resolve the
aliases. For more info, see this StackOverflow
question.