chore: adjustments for building/deploying website
This commit is contained in:
parent
f3e54c5615
commit
82722168f1
8 changed files with 15 additions and 10 deletions
|
|
@ -7,7 +7,7 @@ Its purpose is to make it easy to use our Overlay System declaratively.
|
||||||
import { html } from '@lion/core';
|
import { html } from '@lion/core';
|
||||||
import '@lion/dialog/define';
|
import '@lion/dialog/define';
|
||||||
|
|
||||||
import { demoStyle } from './src/demoStyles.js';
|
import { demoStyle } from './src/demoStyle.js';
|
||||||
```
|
```
|
||||||
|
|
||||||
```js preview-story
|
```js preview-story
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { html, LitElement } from '@lion/core';
|
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
|
* @typedef {import('../types/OverlayConfig').OverlayConfig} OverlayConfig
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
```js script
|
```js script
|
||||||
import { html } from '@lion/core';
|
import { html } from '@lion/core';
|
||||||
import './assetsets/demo-overlay-system.js';
|
import './assets/demo-overlay-system.js';
|
||||||
import './assetsets/applyDemoOverlayStyles.js';
|
import './assets/applyDemoOverlayStyles.js';
|
||||||
```
|
```
|
||||||
|
|
||||||
The `OverlayController` has many configuration options.
|
The `OverlayController` has many configuration options.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { html, render } from '@lion/core';
|
||||||
import { Validator } from '@lion/form-core';
|
import { Validator } from '@lion/form-core';
|
||||||
|
|
||||||
import '@lion/input/define';
|
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).
|
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).
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"packages-node/*"
|
"packages-node/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:docs": "wca analyze \"packages/tabs/**/*.js\"",
|
"build": "rocket build",
|
||||||
"build:types": "tsc -p tsconfig.build.types.json",
|
"build:types": "tsc -p tsconfig.build.types.json",
|
||||||
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
|
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
|
||||||
"custom-elements-manifest": "node scripts/workspaces-scripts.mjs run custom-elements-manifest",
|
"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:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
|
||||||
"lint:types": "tsc",
|
"lint:types": "tsc",
|
||||||
"lint:versions": "node ./scripts/lint-versions.js",
|
"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": "rocket build",
|
||||||
"rocket:build:start": "web-dev-server --root-dir _site --open",
|
"rocket:build:start": "web-dev-server --root-dir _site --open",
|
||||||
"start": "rocket start",
|
"start": "rocket start",
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,6 @@
|
||||||
"prepublishOnly": "npm run publish-docs",
|
"prepublishOnly": "npm run publish-docs",
|
||||||
"test": "cd ../../ && npm run test:browser -- --group form-integrations"
|
"test": "cd ../../ && npm run test:browser -- --group form-integrations"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
|
||||||
"./docs/helper-wc/h-output.js"
|
|
||||||
],
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lion/button": "0.9.1",
|
"@lion/button": "0.9.1",
|
||||||
"@lion/checkbox-group": "0.14.5",
|
"@lion/checkbox-group": "0.14.5",
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
"test": "cd ../../ && npm run test:browser -- --group helpers"
|
"test": "cd ../../ && npm run test:browser -- --group helpers"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
|
"define.js",
|
||||||
"sb-action-logger.js",
|
"sb-action-logger.js",
|
||||||
"sb-locale-switcher.js"
|
"sb-locale-switcher.js"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,14 @@
|
||||||
import { rocketLaunch } from '@rocket/launch';
|
import { rocketLaunch } from '@rocket/launch';
|
||||||
import { rocketSearch } from '@rocket/search';
|
import { rocketSearch } from '@rocket/search';
|
||||||
import { rocketBlog } from '@rocket/blog';
|
import { rocketBlog } from '@rocket/blog';
|
||||||
|
import { adjustPluginOptions } from 'plugins-manager';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
presets: [rocketLaunch(), rocketSearch(), rocketBlog()],
|
presets: [rocketLaunch(), rocketSearch(), rocketBlog()],
|
||||||
|
setupBuildPlugins: [
|
||||||
|
adjustPluginOptions('copy', config => {
|
||||||
|
config.patterns = [...config.patterns, 'docs/**/assets/**'];
|
||||||
|
return config;
|
||||||
|
}),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue