Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rollup/rollup-starter-app
Bare-bones example of how to create an application using Rollup
https://github.com/rollup/rollup-starter-app
Last synced: 19 days ago
JSON representation
Bare-bones example of how to create an application using Rollup
- Host: GitHub
- URL: https://github.com/rollup/rollup-starter-app
- Owner: rollup
- License: mit
- Created: 2017-07-09T20:29:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T08:57:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T21:16:45.550Z (27 days ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 427
- Watchers: 9
- Forks: 101
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - rollup-starter-app - Create a bare-bones application using Rollup. (Packages / Community Packages)
README
# rollup-starter-app
This repo contains a bare-bones example of how to create an application using Rollup, including importing a module from `node_modules` and converting it from CommonJS.
*See also https://github.com/rollup/rollup-starter-lib*
## Getting started
Clone this repository and install its dependencies:
```bash
git clone https://github.com/rollup/rollup-starter-app
cd rollup-starter-app
npm install# or
npx degit "rollup/rollup-starter-app" my-app
cd my-app
npm install
```The `public/index.html` file contains a `` tag, which means we need to create `public/bundle.js`. The `rollup.config.js` file tells Rollup how to create this bundle, starting with `src/main.js` and including all its dependencies, including [date-fns](https://date-fns.org).
`npm run build` builds the application to `public/bundle.js`, along with a sourcemap file for debugging.
`npm start` launches a server, using [serve](https://github.com/zeit/serve). Navigate to [localhost:3000](http://localhost:3000).
`npm run watch` will continually rebuild the application as your source files change.
`npm run dev` will run `npm start` and `npm run watch` in parallel.
## License
[MIT](LICENSE).