2.0.0 • Published 1 year ago
@schrodinger/ui-scripts v2.0.0
@schrodinger/ui-scripts
A Rollup-based build script for @schrodinger/ui. This script will read info from the module's package.json in order to output the relevant dist bundles. Both a CommonJS (dist/index.cjs.js
) and ES6 (dist/index.esm.js
) bundle will be generated using Babel (React preset) for transpilation.
Supports:
- JS
- Typescript
- CSS / CSS modules
- Sass
Images in stylesheets will be base64 inlined with postCSS.
Usage
It's expected that projects using this script have a package.json that specifies the following options:
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"src": "src/index.tsx",
"types": "dist/index.d.ts",
"directories": {
"src": "src",
},
"files": [
"dist",
"src"
],
"devDependencies": {
"@schrodinger/ui-scripts": "<version>"
}
"scripts": {
"build": "ui-scripts"
}
Execute:
<npm run|yarn> build