restackx-injector

1.0.1 • Public • Published

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:

git clone https://github.com/rollup/rollup-starter-app
cd rollup-starter-app
npm install

The public/index.html file contains a <script src='bundle.js'> 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.

npm run build builds the application to public/bundle.js, along with a sourcemap file for debugging.

npm start launches a server, using serve. Navigate to localhost:5000.

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.

Readme

Keywords

none

Package Sidebar

Install

npm i restackx-injector

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

11.9 kB

Total Files

10

Last publish

Collaborators

  • hibad