* initial docusaurus set-up * Delete why-prettier.md * Update README.md * Update Docusaurus structure * Update package.json * Update siteConfig.js * Remove ~ files * chore(website): update build script * Add redirect script * Get eslint working on website * Fix to allow for baseUrl of '/' * Update docusaurus version * Update README.md * Change redirect script to use baseUrl of '/' * Fix index.js formatting * Load redirect script * General cleanup * Add projects using prettier * Update service worker to just scope to playground * Reduce link repeatition * Link "Try it out" button to /playground/ * Make header of playground approximately same as main site * Remove .html from URLs (e.g. users.html -> users/) * Link Gitter Chat * Add circleci.yml * Only run builds on master * Do deployment using Travis
20 lines
688 B
JavaScript
20 lines
688 B
JavaScript
import baseConfig from "./rollup.base.config.js";
|
|
import resolve from "rollup-plugin-node-resolve";
|
|
import commonjs from "rollup-plugin-commonjs";
|
|
import globals from "rollup-plugin-node-globals";
|
|
import json from "rollup-plugin-json";
|
|
|
|
const filepath = process.env.filepath;
|
|
const filename = filepath.replace(/.+\//, "");
|
|
const basename = filename.replace(/\..+/, "");
|
|
|
|
export default Object.assign(baseConfig, {
|
|
entry: "dist/" + filepath,
|
|
dest: "website/static/lib/" + filename,
|
|
format: "iife",
|
|
plugins: [json(), resolve({ preferBuiltins: true }), commonjs(), globals()],
|
|
useStrict: false,
|
|
moduleName: basename.replace(/.+-/, ""),
|
|
external: ["assert", "fs", "module"]
|
|
});
|