mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:01:16 +08:00
Cleanup and add example app
This commit is contained in:
parent
422bc3a177
commit
65a8886ac7
@ -7,6 +7,7 @@ export {
|
||||
getStorybook,
|
||||
forceReRender,
|
||||
raw,
|
||||
setFetchStoryHtml,
|
||||
} from './preview';
|
||||
|
||||
if (module && module.hot && module.hot.decline) {
|
||||
|
@ -3,18 +3,19 @@ import { start } from '@storybook/core/client';
|
||||
import { ClientStoryApi, Loadable } from '@storybook/addons';
|
||||
|
||||
import './globals';
|
||||
import render, { setFetchStoryHtml } from './render';
|
||||
import render from './render';
|
||||
import { StoryFnServerReturnType, IStorybookSection, FetchStoryHtmlType } from './types';
|
||||
|
||||
const framework = 'server';
|
||||
|
||||
interface ClientApi extends ClientStoryApi<StoryFnServerReturnType> {
|
||||
setAddon(addon: any): void;
|
||||
configure(fetch: FetchStoryHtmlType, loader: Loadable, module: NodeModule): void;
|
||||
configure(loader: Loadable, module: NodeModule): void;
|
||||
getStorybook(): IStorybookSection[];
|
||||
clearDecorators(): void;
|
||||
forceReRender(): void;
|
||||
raw: () => any; // todo add type
|
||||
setFetchStoryHtml: FetchStoryHtmlType;
|
||||
}
|
||||
|
||||
const api = start(render);
|
||||
@ -25,12 +26,7 @@ export const storiesOf: ClientApi['storiesOf'] = (kind, m) => {
|
||||
});
|
||||
};
|
||||
|
||||
const setRenderFecthAndConfigure: ClientApi['configure'] = (fetch, ...args) => {
|
||||
setFetchStoryHtml(fetch);
|
||||
api.configure(...args, framework);
|
||||
};
|
||||
|
||||
export const configure: ClientApi['configure'] = setRenderFecthAndConfigure;
|
||||
export const configure: ClientApi['configure'] = (...args) => api.configure(...args, framework);
|
||||
export const addDecorator: ClientApi['addDecorator'] = api.clientApi.addDecorator;
|
||||
export const addParameters: ClientApi['addParameters'] = api.clientApi.addParameters;
|
||||
export const clearDecorators: ClientApi['clearDecorators'] = api.clientApi.clearDecorators;
|
||||
@ -38,3 +34,4 @@ export const setAddon: ClientApi['setAddon'] = api.clientApi.setAddon;
|
||||
export const forceReRender: ClientApi['forceReRender'] = api.forceReRender;
|
||||
export const getStorybook: ClientApi['getStorybook'] = api.clientApi.getStorybook;
|
||||
export const raw: ClientApi['raw'] = api.clientApi.raw;
|
||||
export { setFetchStoryHtml } from './render';
|
||||
|
0
examples/server-kitchen-sink/.babelrc
Normal file
0
examples/server-kitchen-sink/.babelrc
Normal file
18
examples/server-kitchen-sink/client/storybook.html
Normal file
18
examples/server-kitchen-sink/client/storybook.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<div id="docs-root"></div>
|
||||
<script src="./storybook.js"></script>
|
||||
<div class="sb-errordisplay sb-wrapper">
|
||||
<div id="error-message" class="sb-heading"></div>
|
||||
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
32
examples/server-kitchen-sink/client/storybook.js
Normal file
32
examples/server-kitchen-sink/client/storybook.js
Normal file
@ -0,0 +1,32 @@
|
||||
import camelcase from 'camelcase';
|
||||
import { configure, setFetchStoryHtml } from '@storybook/server';
|
||||
import stories from '../server/stories';
|
||||
|
||||
const port = process.env.PORT || 8080;
|
||||
|
||||
const fetchHtml = async (id, params) => {
|
||||
const [component, story] = id.split('--').map(s => camelcase(s));
|
||||
|
||||
const url = `http://localhost:${port}/storybook_preview/${component}/${story}`;
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
const response = await fetch(url);
|
||||
return response.text();
|
||||
};
|
||||
|
||||
const storyBookStories = Object.keys(stories).map(component => {
|
||||
const storybookDescription = {
|
||||
default: {
|
||||
title: component,
|
||||
},
|
||||
};
|
||||
Object.keys(stories[component]).forEach(storyName => {
|
||||
storybookDescription[storyName] = () => {};
|
||||
});
|
||||
|
||||
return storybookDescription;
|
||||
});
|
||||
|
||||
setFetchStoryHtml(fetchHtml);
|
||||
|
||||
configure(() => storyBookStories, module);
|
18
examples/server-kitchen-sink/package.json
Normal file
18
examples/server-kitchen-sink/package.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "server-kitchen-sink",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "PORT=1337 nodemon server/app.js",
|
||||
"start": "PORT=1337 node server/app.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/server": "5.3.0-rc.3",
|
||||
"camelcase": "^5.3.1",
|
||||
"concurrently": "^5.0.0",
|
||||
"express": "~4.16.4",
|
||||
"morgan": "^1.9.1",
|
||||
"nodemon": "^2.0.2",
|
||||
"parcel-bundler": "^1.12.4"
|
||||
}
|
||||
}
|
24
examples/server-kitchen-sink/server/app.js
Normal file
24
examples/server-kitchen-sink/server/app.js
Normal file
@ -0,0 +1,24 @@
|
||||
const express = require('express');
|
||||
const morgan = require('morgan');
|
||||
const Bundler = require('parcel-bundler');
|
||||
const Path = require('path');
|
||||
|
||||
const renderStory = require('./renderStory');
|
||||
|
||||
const port = process.env.PORT || 8080;
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(morgan('tiny'));
|
||||
|
||||
app.get('/', (req, res) => res.send('Hello World!'));
|
||||
|
||||
app.get('/storybook_preview/:component/:story', (req, res) => {
|
||||
res.send(renderStory(req.params.component, req.params.story, req.query));
|
||||
});
|
||||
|
||||
const storybookFile = Path.join(__dirname, '../client/storybook.html');
|
||||
const bundler = new Bundler(storybookFile, {});
|
||||
app.use(bundler.middleware());
|
||||
|
||||
app.listen(port);
|
11
examples/server-kitchen-sink/server/renderStory.js
Normal file
11
examples/server-kitchen-sink/server/renderStory.js
Normal file
@ -0,0 +1,11 @@
|
||||
const stories = require('./stories');
|
||||
const templates = require('./templates');
|
||||
|
||||
const renderStory = (component, story, params) => {
|
||||
const template = templates[component];
|
||||
const defaultParams = stories[component][story];
|
||||
|
||||
return template({ ...defaultParams, ...params });
|
||||
};
|
||||
|
||||
module.exports = renderStory;
|
12
examples/server-kitchen-sink/server/stories.js
Normal file
12
examples/server-kitchen-sink/server/stories.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
button: {
|
||||
withShortText: { text: 'OK' },
|
||||
withLongText: { text: 'Push Me Please!' },
|
||||
withReallyLongText: { text: 'Push Me Please! You know you want to!!' },
|
||||
},
|
||||
message: {
|
||||
hello: { message: 'Hello World!', color: 'black' },
|
||||
red: { message: 'Hello World!', color: 'red' },
|
||||
goodbye: { message: 'Bye!', color: 'green' },
|
||||
},
|
||||
};
|
4
examples/server-kitchen-sink/server/templates.js
Normal file
4
examples/server-kitchen-sink/server/templates.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
button: params => `<button>${params.text}</button>`,
|
||||
message: params => `<div style="color: ${params.color}">${params.message}</div>`,
|
||||
};
|
234
yarn.lock
234
yarn.lock
@ -5011,6 +5011,13 @@ analytics-node@3.3.0:
|
||||
remove-trailing-slash "^0.1.0"
|
||||
uuid "^3.2.1"
|
||||
|
||||
ansi-align@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f"
|
||||
integrity sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=
|
||||
dependencies:
|
||||
string-width "^2.0.0"
|
||||
|
||||
ansi-align@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb"
|
||||
@ -7350,6 +7357,19 @@ boxen@4.1.0, boxen@^4.1.0:
|
||||
type-fest "^0.5.2"
|
||||
widest-line "^3.1.0"
|
||||
|
||||
boxen@^1.2.1:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b"
|
||||
integrity sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==
|
||||
dependencies:
|
||||
ansi-align "^2.0.0"
|
||||
camelcase "^4.0.0"
|
||||
chalk "^2.0.1"
|
||||
cli-boxes "^1.0.0"
|
||||
string-width "^2.0.0"
|
||||
term-size "^1.2.0"
|
||||
widest-line "^2.0.0"
|
||||
|
||||
boxen@^3.0.0:
|
||||
version "3.2.0"
|
||||
resolved "https://registry.yarnpkg.com/boxen/-/boxen-3.2.0.tgz#fbdff0de93636ab4450886b6ff45b92d098f45eb"
|
||||
@ -8522,7 +8542,7 @@ camelcase@^3.0.0:
|
||||
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
|
||||
integrity sha1-MvxLn82vhF/N9+c7uXysImHwqwo=
|
||||
|
||||
camelcase@^4.1.0:
|
||||
camelcase@^4.0.0, camelcase@^4.1.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
|
||||
integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=
|
||||
@ -8806,6 +8826,21 @@ chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.3, chokidar@^2.0.4, chokidar@^2.
|
||||
optionalDependencies:
|
||||
fsevents "^1.2.7"
|
||||
|
||||
chokidar@^3.2.2:
|
||||
version "3.3.1"
|
||||
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.1.tgz#c84e5b3d18d9a4d77558fef466b1bf16bbeb3450"
|
||||
integrity sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg==
|
||||
dependencies:
|
||||
anymatch "~3.1.1"
|
||||
braces "~3.0.2"
|
||||
glob-parent "~5.1.0"
|
||||
is-binary-path "~2.1.0"
|
||||
is-glob "~4.0.1"
|
||||
normalize-path "~3.0.0"
|
||||
readdirp "~3.3.0"
|
||||
optionalDependencies:
|
||||
fsevents "~2.1.2"
|
||||
|
||||
chownr@^1.0.1, chownr@^1.1.1, chownr@^1.1.2:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.3.tgz#42d837d5239688d55f303003a508230fa6727142"
|
||||
@ -8907,6 +8942,11 @@ clean-webpack-plugin@^1.0.1:
|
||||
dependencies:
|
||||
rimraf "^2.6.1"
|
||||
|
||||
cli-boxes@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143"
|
||||
integrity sha1-T6kXw+WclKAEzWH47lCdplFocUM=
|
||||
|
||||
cli-boxes@^2.2.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.0.tgz#538ecae8f9c6ca508e3c3c95b453fe93cb4c168d"
|
||||
@ -9462,6 +9502,18 @@ config-chain@^1.1.11:
|
||||
ini "^1.3.4"
|
||||
proto-list "~1.2.1"
|
||||
|
||||
configstore@^3.0.0:
|
||||
version "3.1.2"
|
||||
resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.2.tgz#c6f25defaeef26df12dd33414b001fe81a543f8f"
|
||||
integrity sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==
|
||||
dependencies:
|
||||
dot-prop "^4.1.0"
|
||||
graceful-fs "^4.1.2"
|
||||
make-dir "^1.0.0"
|
||||
unique-string "^1.0.0"
|
||||
write-file-atomic "^2.0.0"
|
||||
xdg-basedir "^3.0.0"
|
||||
|
||||
configstore@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/configstore/-/configstore-4.0.0.tgz#5933311e95d3687efb592c528b922d9262d227e7"
|
||||
@ -13477,7 +13529,7 @@ express-graphql@^0.9.0:
|
||||
http-errors "^1.7.3"
|
||||
raw-body "^2.4.1"
|
||||
|
||||
express@4.16.4:
|
||||
express@4.16.4, express@~4.16.4:
|
||||
version "4.16.4"
|
||||
resolved "https://registry.yarnpkg.com/express/-/express-4.16.4.tgz#fddef61926109e24c515ea97fd2f1bdbf62df12e"
|
||||
integrity sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==
|
||||
@ -14571,7 +14623,7 @@ fsevents@^1.0.0, fsevents@^1.2.3, fsevents@^1.2.7:
|
||||
nan "^2.12.1"
|
||||
node-pre-gyp "^0.12.0"
|
||||
|
||||
fsevents@~2.1.1:
|
||||
fsevents@~2.1.1, fsevents@~2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805"
|
||||
integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==
|
||||
@ -16183,6 +16235,11 @@ iferr@^0.1.5:
|
||||
resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501"
|
||||
integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE=
|
||||
|
||||
ignore-by-default@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
|
||||
integrity sha1-SMptcvbGo68Aqa1K5odr44ieKwk=
|
||||
|
||||
ignore-walk@^3.0.1:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37"
|
||||
@ -16725,7 +16782,7 @@ is-callable@^1.1.4:
|
||||
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75"
|
||||
integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==
|
||||
|
||||
is-ci@1.2.1:
|
||||
is-ci@1.2.1, is-ci@^1.0.10:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.1.tgz#e3779c8ee17fccf428488f6e281187f2e632841c"
|
||||
integrity sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==
|
||||
@ -16955,6 +17012,11 @@ is-negated-glob@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2"
|
||||
integrity sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=
|
||||
|
||||
is-npm@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4"
|
||||
integrity sha1-8vtjpl5JBbQGyGBydloaTceTufQ=
|
||||
|
||||
is-npm@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-3.0.0.tgz#ec9147bfb629c43f494cf67936a961edec7e8053"
|
||||
@ -18781,6 +18843,13 @@ latest-version@5.1.0, latest-version@^5.0.0:
|
||||
dependencies:
|
||||
package-json "^6.3.0"
|
||||
|
||||
latest-version@^3.0.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15"
|
||||
integrity sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=
|
||||
dependencies:
|
||||
package-json "^4.0.0"
|
||||
|
||||
lazy-ass@1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/lazy-ass/-/lazy-ass-1.6.0.tgz#7999655e8646c17f089fdd187d150d3324d54513"
|
||||
@ -21804,6 +21873,22 @@ node-uuid@~1.4.0:
|
||||
resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907"
|
||||
integrity sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=
|
||||
|
||||
nodemon@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.2.tgz#9c7efeaaf9b8259295a97e5d4585ba8f0cbe50b0"
|
||||
integrity sha512-GWhYPMfde2+M0FsHnggIHXTqPDHXia32HRhh6H0d75Mt9FKUoCBvumNHr7LdrpPBTKxsWmIEOjoN+P4IU6Hcaw==
|
||||
dependencies:
|
||||
chokidar "^3.2.2"
|
||||
debug "^3.2.6"
|
||||
ignore-by-default "^1.0.1"
|
||||
minimatch "^3.0.4"
|
||||
pstree.remy "^1.1.7"
|
||||
semver "^5.7.1"
|
||||
supports-color "^5.5.0"
|
||||
touch "^3.1.0"
|
||||
undefsafe "^2.0.2"
|
||||
update-notifier "^2.5.0"
|
||||
|
||||
noop-fn@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/noop-fn/-/noop-fn-1.0.0.tgz#5f33d47f13d2150df93e0cb036699e982f78ffbf"
|
||||
@ -21829,6 +21914,13 @@ nopt@^4.0.1:
|
||||
abbrev "1"
|
||||
osenv "^0.1.4"
|
||||
|
||||
nopt@~1.0.10:
|
||||
version "1.0.10"
|
||||
resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee"
|
||||
integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=
|
||||
dependencies:
|
||||
abbrev "1"
|
||||
|
||||
normalize-html-whitespace@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/normalize-html-whitespace/-/normalize-html-whitespace-1.0.0.tgz#5e3c8e192f1b06c3b9eee4b7e7f28854c7601e34"
|
||||
@ -22667,6 +22759,16 @@ package-json@6.4.0:
|
||||
registry-url "^5.0.0"
|
||||
semver "^6.1.1"
|
||||
|
||||
package-json@^4.0.0:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed"
|
||||
integrity sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=
|
||||
dependencies:
|
||||
got "^6.7.1"
|
||||
registry-auth-token "^3.0.1"
|
||||
registry-url "^3.0.3"
|
||||
semver "^5.1.0"
|
||||
|
||||
package-json@^6.3.0:
|
||||
version "6.5.0"
|
||||
resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0"
|
||||
@ -22812,6 +22914,71 @@ param-case@2.1.x, param-case@^2.1.1:
|
||||
dependencies:
|
||||
no-case "^2.2.0"
|
||||
|
||||
parcel-bundler@^1.12.4:
|
||||
version "1.12.4"
|
||||
resolved "https://registry.yarnpkg.com/parcel-bundler/-/parcel-bundler-1.12.4.tgz#31223f4ab4d00323a109fce28d5e46775409a9ee"
|
||||
integrity sha512-G+iZGGiPEXcRzw0fiRxWYCKxdt/F7l9a0xkiU4XbcVRJCSlBnioWEwJMutOCCpoQmaQtjB4RBHDGIHN85AIhLQ==
|
||||
dependencies:
|
||||
"@babel/code-frame" "^7.0.0"
|
||||
"@babel/core" "^7.4.4"
|
||||
"@babel/generator" "^7.4.4"
|
||||
"@babel/parser" "^7.4.4"
|
||||
"@babel/plugin-transform-flow-strip-types" "^7.4.4"
|
||||
"@babel/plugin-transform-modules-commonjs" "^7.4.4"
|
||||
"@babel/plugin-transform-react-jsx" "^7.0.0"
|
||||
"@babel/preset-env" "^7.4.4"
|
||||
"@babel/runtime" "^7.4.4"
|
||||
"@babel/template" "^7.4.4"
|
||||
"@babel/traverse" "^7.4.4"
|
||||
"@babel/types" "^7.4.4"
|
||||
"@iarna/toml" "^2.2.0"
|
||||
"@parcel/fs" "^1.11.0"
|
||||
"@parcel/logger" "^1.11.1"
|
||||
"@parcel/utils" "^1.11.0"
|
||||
"@parcel/watcher" "^1.12.1"
|
||||
"@parcel/workers" "^1.11.0"
|
||||
ansi-to-html "^0.6.4"
|
||||
babylon-walk "^1.0.2"
|
||||
browserslist "^4.1.0"
|
||||
chalk "^2.1.0"
|
||||
clone "^2.1.1"
|
||||
command-exists "^1.2.6"
|
||||
commander "^2.11.0"
|
||||
core-js "^2.6.5"
|
||||
cross-spawn "^6.0.4"
|
||||
css-modules-loader-core "^1.1.0"
|
||||
cssnano "^4.0.0"
|
||||
deasync "^0.1.14"
|
||||
dotenv "^5.0.0"
|
||||
dotenv-expand "^5.1.0"
|
||||
envinfo "^7.3.1"
|
||||
fast-glob "^2.2.2"
|
||||
filesize "^3.6.0"
|
||||
get-port "^3.2.0"
|
||||
htmlnano "^0.2.2"
|
||||
is-glob "^4.0.0"
|
||||
is-url "^1.2.2"
|
||||
js-yaml "^3.10.0"
|
||||
json5 "^1.0.1"
|
||||
micromatch "^3.0.4"
|
||||
mkdirp "^0.5.1"
|
||||
node-forge "^0.7.1"
|
||||
node-libs-browser "^2.0.0"
|
||||
opn "^5.1.0"
|
||||
postcss "^7.0.11"
|
||||
postcss-value-parser "^3.3.1"
|
||||
posthtml "^0.11.2"
|
||||
posthtml-parser "^0.4.0"
|
||||
posthtml-render "^1.1.3"
|
||||
resolve "^1.4.0"
|
||||
semver "^5.4.1"
|
||||
serialize-to-js "^3.0.0"
|
||||
serve-static "^1.12.4"
|
||||
source-map "0.6.1"
|
||||
terser "^3.7.3"
|
||||
v8-compile-cache "^2.0.0"
|
||||
ws "^5.1.1"
|
||||
|
||||
parcel@^1.12.3:
|
||||
version "1.12.4"
|
||||
resolved "https://registry.yarnpkg.com/parcel/-/parcel-1.12.4.tgz#c8136085179c6382e632ca98126093e110be2ac5"
|
||||
@ -23272,7 +23439,7 @@ physical-cpu-count@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/physical-cpu-count/-/physical-cpu-count-2.0.0.tgz#18de2f97e4bf7a9551ad7511942b5496f7aba660"
|
||||
integrity sha1-GN4vl+S/epVRrXURlCtUlverpmA=
|
||||
|
||||
picomatch@^2.0.4, picomatch@^2.0.5:
|
||||
picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.0.7:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.1.1.tgz#ecdfbea7704adb5fe6fb47f9866c4c0e15e905c5"
|
||||
integrity sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA==
|
||||
@ -24759,6 +24926,11 @@ psl@^1.1.24, psl@^1.1.28:
|
||||
resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2"
|
||||
integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==
|
||||
|
||||
pstree.remy@^1.1.7:
|
||||
version "1.1.7"
|
||||
resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.7.tgz#c76963a28047ed61542dc361aa26ee55a7fa15f3"
|
||||
integrity sha512-xsMgrUwRpuGskEzBFkH8NmTimbZ5PcPup0LA8JJkHIm2IMUbQcpo3yeLNWVrufEYjh8YwtSVh0xz6UeWc5Oh5A==
|
||||
|
||||
public-encrypt@^4.0.0:
|
||||
version "4.0.3"
|
||||
resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0"
|
||||
@ -25414,7 +25586,7 @@ rax@^1.1.0:
|
||||
rax-create-factory "^1.0.0"
|
||||
rax-is-valid-element "^1.0.0"
|
||||
|
||||
rc@^1.1.0, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8:
|
||||
rc@^1.0.1, rc@^1.1.0, rc@^1.1.6, rc@^1.2.7, rc@^1.2.8:
|
||||
version "1.2.8"
|
||||
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
|
||||
integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==
|
||||
@ -26439,6 +26611,13 @@ readdirp@~3.2.0:
|
||||
dependencies:
|
||||
picomatch "^2.0.4"
|
||||
|
||||
readdirp@~3.3.0:
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.3.0.tgz#984458d13a1e42e2e9f5841b129e162f369aff17"
|
||||
integrity sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==
|
||||
dependencies:
|
||||
picomatch "^2.0.7"
|
||||
|
||||
readjson@^1.1.0:
|
||||
version "1.1.4"
|
||||
resolved "https://registry.yarnpkg.com/readjson/-/readjson-1.1.4.tgz#89501f648453dcda9b15399b3fb10c38249662c7"
|
||||
@ -26713,7 +26892,7 @@ regexpu-core@^4.6.0:
|
||||
unicode-match-property-ecmascript "^1.0.4"
|
||||
unicode-match-property-value-ecmascript "^1.1.0"
|
||||
|
||||
registry-auth-token@^3.4.0:
|
||||
registry-auth-token@^3.0.1, registry-auth-token@^3.4.0:
|
||||
version "3.4.0"
|
||||
resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.4.0.tgz#d7446815433f5d5ed6431cd5dca21048f66b397e"
|
||||
integrity sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A==
|
||||
@ -26729,6 +26908,13 @@ registry-auth-token@^4.0.0:
|
||||
rc "^1.2.8"
|
||||
safe-buffer "^5.0.1"
|
||||
|
||||
registry-url@^3.0.3:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942"
|
||||
integrity sha1-PU74cPc93h138M+aOBQyRE4XSUI=
|
||||
dependencies:
|
||||
rc "^1.0.1"
|
||||
|
||||
registry-url@^5.0.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009"
|
||||
@ -28028,7 +28214,7 @@ semver-intersect@1.4.0:
|
||||
dependencies:
|
||||
semver "^5.0.0"
|
||||
|
||||
"semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", semver@^5.0.0, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0:
|
||||
"semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", semver@^5.0.0, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||
@ -29647,7 +29833,7 @@ sum-up@^1.0.1:
|
||||
dependencies:
|
||||
chalk "^1.0.0"
|
||||
|
||||
supports-color@5.5.0, supports-color@^5.0.0, supports-color@^5.3.0, supports-color@^5.4.0:
|
||||
supports-color@5.5.0, supports-color@^5.0.0, supports-color@^5.3.0, supports-color@^5.4.0, supports-color@^5.5.0:
|
||||
version "5.5.0"
|
||||
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
|
||||
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
|
||||
@ -30417,6 +30603,13 @@ toposort@^2.0.2:
|
||||
resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330"
|
||||
integrity sha1-riF2gXXRVZ1IvvNUILL0li8JwzA=
|
||||
|
||||
touch@^3.1.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b"
|
||||
integrity sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==
|
||||
dependencies:
|
||||
nopt "~1.0.10"
|
||||
|
||||
tough-cookie@>=0.12.0, tough-cookie@>=2.3.3, tough-cookie@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz#9df4f57e739c26930a018184887f4adb7dca73b2"
|
||||
@ -30991,6 +31184,13 @@ undeclared-identifiers@^1.1.2:
|
||||
simple-concat "^1.0.0"
|
||||
xtend "^4.0.1"
|
||||
|
||||
undefsafe@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.2.tgz#225f6b9e0337663e0d8e7cfd686fc2836ccace76"
|
||||
integrity sha1-Il9rngM3Zj4Njnz9aG/Cg2zKznY=
|
||||
dependencies:
|
||||
debug "^2.2.0"
|
||||
|
||||
underscore.string@^3.2.2, underscore.string@~3.3.4:
|
||||
version "3.3.5"
|
||||
resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.5.tgz#fc2ad255b8bd309e239cbc5816fd23a9b7ea4023"
|
||||
@ -31431,6 +31631,22 @@ upath@^1.0.2, upath@^1.1.0, upath@^1.1.1:
|
||||
resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894"
|
||||
integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==
|
||||
|
||||
update-notifier@^2.5.0:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6"
|
||||
integrity sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==
|
||||
dependencies:
|
||||
boxen "^1.2.1"
|
||||
chalk "^2.0.1"
|
||||
configstore "^3.0.0"
|
||||
import-lazy "^2.1.0"
|
||||
is-ci "^1.0.10"
|
||||
is-installed-globally "^0.1.0"
|
||||
is-npm "^1.0.0"
|
||||
latest-version "^3.0.0"
|
||||
semver-diff "^2.0.0"
|
||||
xdg-basedir "^3.0.0"
|
||||
|
||||
update-notifier@^3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-3.0.1.tgz#78ecb68b915e2fd1be9f767f6e298ce87b736250"
|
||||
|
Loading…
x
Reference in New Issue
Block a user