chore: adjustments for building/deploying website

This commit is contained in:
Thomas Allmer 2021-03-15 14:40:59 +01:00 committed by Thomas Allmer
parent f3e54c5615
commit 82722168f1
8 changed files with 15 additions and 10 deletions

View file

@ -7,7 +7,7 @@ Its purpose is to make it easy to use our Overlay System declaratively.
import { html } from '@lion/core';
import '@lion/dialog/define';
import { demoStyle } from './src/demoStyles.js';
import { demoStyle } from './src/demoStyle.js';
```
```js preview-story

View file

@ -1,5 +1,5 @@
import { html, LitElement } from '@lion/core';
import { OverlayMixin } from '@lion/overlays/src/OverlayMixin.js';
import { OverlayMixin } from '@lion/overlays';
/**
* @typedef {import('../types/OverlayConfig').OverlayConfig} OverlayConfig

View file

@ -2,8 +2,8 @@
```js script
import { html } from '@lion/core';
import './assetsets/demo-overlay-system.js';
import './assetsets/applyDemoOverlayStyles.js';
import './assets/demo-overlay-system.js';
import './assets/applyDemoOverlayStyles.js';
```
The `OverlayController` has many configuration options.

View file

@ -5,7 +5,7 @@ import { html, render } from '@lion/core';
import { Validator } from '@lion/form-core';
import '@lion/input/define';
import '../../docs/systems/form/src/helper-wc/h-output.js';
import '../../docs/systems/form/assets/h-output.js';
```
Custom fields can be created in just a few steps. All you need is an interaction element (like for instance a slider, a listbox or a combobox) and connect it to the [input components](../../components/inputs/input/overview.md).

View file

@ -7,7 +7,7 @@
"packages-node/*"
],
"scripts": {
"build:docs": "wca analyze \"packages/tabs/**/*.js\"",
"build": "rocket build",
"build:types": "tsc -p tsconfig.build.types.json",
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
"custom-elements-manifest": "node scripts/workspaces-scripts.mjs run custom-elements-manifest",
@ -25,7 +25,7 @@
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"lint:types": "tsc",
"lint:versions": "node ./scripts/lint-versions.js",
"release": "npm run build:types && npm run build:docs && changeset publish",
"release": "npm run build:types && changeset publish",
"rocket:build": "rocket build",
"rocket:build:start": "web-dev-server --root-dir _site --open",
"start": "rocket start",

View file

@ -31,9 +31,6 @@
"prepublishOnly": "npm run publish-docs",
"test": "cd ../../ && npm run test:browser -- --group form-integrations"
},
"sideEffects": [
"./docs/helper-wc/h-output.js"
],
"dependencies": {
"@lion/button": "0.9.1",
"@lion/checkbox-group": "0.14.5",

View file

@ -30,6 +30,7 @@
"test": "cd ../../ && npm run test:browser -- --group helpers"
},
"sideEffects": [
"define.js",
"sb-action-logger.js",
"sb-locale-switcher.js"
],

View file

@ -1,7 +1,14 @@
import { rocketLaunch } from '@rocket/launch';
import { rocketSearch } from '@rocket/search';
import { rocketBlog } from '@rocket/blog';
import { adjustPluginOptions } from 'plugins-manager';
export default {
presets: [rocketLaunch(), rocketSearch(), rocketBlog()],
setupBuildPlugins: [
adjustPluginOptions('copy', config => {
config.patterns = [...config.patterns, 'docs/**/assets/**'];
return config;
}),
],
};