Package Exports
- gladejs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gladejs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GladeJS
Description
A basic Rollup setup for bundling static Web Sites built with Marko components.
Installation
Create a new NodeJS project and install GladeJS as a "devDependency" :
$ mkdir example && cd example
$ npm init -y && npm i -D gladejs
Command Scripts
Use the following scripts configuration in the new "package.json
" file :
"scripts": {
"start": "rollup -c -w",
"build": "NODE_ENV='production' rollup -c",
"clean": "rimraf build **/*.marko.js && rimraf **/*.marko.js"
},
Rollup Configuration
Paste this one line in a new file named "rollup.config.js
" to hide the magic :
export { default } from './node_modules/gladejs/rollup.config'
... or copy the GladeJS config itself for the full mystical power of Rollup :
$ cp node_modules/gladejs/rollup*.js .
Pages & Components
Have a look at the minimal index page and the sample component.
Finally, as always RTFMD (Read The Fabulous Marko Documentation).