Little helper utilities for interacting with Augur
this command will do an npm install
for you
npm run vendor
npm run build
npm run watch
npm run serve
One caveat with this project is the vendoring of dependencies. To add a runtime dependency:
- open
build/vendor.ts
- create an entry in the array
- specify the dependency package name
- specify the path within the package that should be copied (whole folder will be vendored, usually this is a dist or out folder)
- the path (relative to the copied folder from previous step) to the index file
- from the root directory of this project run
npm run vendor
This will generate the runtime import map and embed it into your index.html
file so the browser can turn import { ... } from 'my-package'
into import { ... } from './vendor/my-package/index.js'
.