Add tests and src to npmignore (#7824)

Add tests and src to npmignore

Co-authored-by: Dmitriy Kuznetsov <d.o.kuznetsov@tinkoff.ru>
Co-authored-by: Norbert de Langen <ndelangen@me.com>
This commit is contained in:
Norbert de Langen 2019-09-24 00:34:07 +02:00 committed by Michael Shilman
parent d14f2d50f2
commit a39f2f4439
78 changed files with 376 additions and 92 deletions

View File

@ -1,10 +0,0 @@
/example/
/demo/
/docs/
/media/
/node_modules/
/.storybook/
*.md
.babelrc

View File

@ -20,6 +20,12 @@
"directory": "addons/a11y"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,12 @@
"directory": "addons/actions"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -19,6 +19,12 @@
},
"license": "MIT",
"author": "jbaxleyiii",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -17,6 +17,20 @@
},
"license": "MIT",
"author": "Muhammed Thanish <mnmtanish@gmail.com>",
"files": [
"dist/**/*",
"README.md",
"angular.js",
"angular.d.ts",
"ember.js",
"html.js",
"mithril.js",
"preact.js",
"rax.js",
"react.js",
"svelte.js",
"vue.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -3,14 +3,18 @@
"version": "5.2.1",
"description": "Storybook Addon Contexts",
"keywords": [
"storybook",
"preact",
"react",
"storybook",
"vue"
],
"author": "Leo Y. Li",
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/contexts"
},
"license": "MIT",
"main": "dist/register.js",
"author": "Leo Y. Li",
"files": [
"dist/**/*",
"register.js",
@ -18,14 +22,10 @@
"react.js",
"vue.js"
],
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/contexts"
},
"main": "dist/register.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js",
"dev:check-types": "tsc --noEmit"
"dev:check-types": "tsc --noEmit",
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.2.1",
@ -41,8 +41,10 @@
"react": "*",
"vue": "*"
},
"devDependencies": {
"peerDependencies": {
"global": "*",
"preact": "*",
"qs": "*",
"react": "*",
"vue": "*"
},

View File

@ -19,6 +19,12 @@
},
"license": "MIT",
"author": "nm123github",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -4,11 +4,11 @@
"description": "Design asset preview for storybook",
"keywords": [
"addon",
"storybook",
"parameter",
"design",
"assets",
"design",
"files",
"parameter",
"storybook",
"viewer"
],
"homepage": "https://github.com/storybookjs/storybook#readme",
@ -21,6 +21,12 @@
"directory": "addons/design-assets"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -17,6 +17,19 @@
"directory": "addons/docs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"angular/**/*",
"common/**/*",
"html/**/*",
"react/**/*",
"vue/**/*",
"README.md",
"blocks.js",
"mdx-compiler-plugin.js",
"register.js"
],
"main": "dist/public_api.js",
"types": "dist/public_api.d.ts",
"scripts": {

View File

@ -18,6 +18,12 @@
"directory": "addons/events"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -16,6 +16,12 @@
"directory": "addons/graphql"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -16,6 +16,11 @@
"directory": "addons/info"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {

View File

@ -22,6 +22,12 @@
},
"license": "MIT",
"author": "Renaud Tertrais <renaud.tertrais@gmail.com> (https://github.com/renaudtertrais)",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -1 +0,0 @@
.babelrc

View File

@ -16,6 +16,19 @@
"directory": "addons/knobs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"angular.js",
"html.js",
"marko.js",
"mithril.js",
"polymer.js",
"react.js",
"vue.js",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
@ -41,15 +54,15 @@
"react-lifecycles-compat": "^3.0.4",
"react-select": "^3.0.0"
},
"devDependencies": {
"@types/escape-html": "0.0.20",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-select": "^2.0.19"
},
"peerDependencies": {
"react": "*"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/escape-html": "0.0.20",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-select": "^2.0.19"
}
}

View File

@ -16,6 +16,13 @@
"directory": "addons/links"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"react.js",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -17,6 +17,13 @@
"directory": "addons/notes"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js",
"register-panel.js"
],
"main": "dist/public_api.js",
"types": "dist/public_api.d.ts",
"scripts": {

View File

@ -14,6 +14,12 @@
"url": "https://github.com/storybookjs/storybook.git"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"

View File

@ -18,8 +18,13 @@
"directory": "addons/ondevice-backgrounds"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},

View File

@ -15,8 +15,13 @@
"directory": "addons/ondevice-knobs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},

View File

@ -5,8 +5,8 @@
"keywords": [
"addon",
"notes",
"storybook",
"react-native"
"react-native",
"storybook"
],
"repository": {
"type": "git",
@ -14,8 +14,13 @@
"directory": "addons/ondevice-notes"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},

View File

@ -16,6 +16,12 @@
"directory": "addons/options"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/public_api.d.ts",
"scripts": {

View File

@ -4,8 +4,8 @@
"description": "parameter addon for storybook",
"keywords": [
"addon",
"storybook",
"query"
"query",
"storybook"
],
"homepage": "https://github.com/storybookjs/storybook#readme",
"bugs": {
@ -17,6 +17,11 @@
"directory": "addons/addon-queryparams"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -1 +0,0 @@
.babelrc

View File

@ -16,8 +16,12 @@
"directory": "addons/storyshots/storyshots-core"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"build-storybook": "build-storybook",
"example": "jest storyshot.test",

View File

@ -16,8 +16,12 @@
"directory": "addons/storyshots/storyshots-puppeteer"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../../scripts/prepare.js"
},
@ -28,13 +32,13 @@
"jest-image-snapshot": "^2.8.2",
"regenerator-runtime": "^0.12.1"
},
"optionalDependencies": {
"puppeteer": "^1.12.2"
},
"peerDependencies": {
"@storybook/addon-storyshots": "5.2.0-beta.13",
"puppeteer": "^1.12.2"
},
"optionalDependencies": {
"puppeteer": "^1.12.2"
},
"publishConfig": {
"access": "public"
}

View File

@ -4,7 +4,7 @@ This addon is used to show stories source in the addon panel.
[Framework Support](https://github.com/storybookjs/storybook/blob/master/ADDONS_SUPPORT.md)
![Storysource Demo](demo.gif)
![Storysource Demo](./docs/demo.gif)
## Getting Started

View File

Before

Width:  |  Height:  |  Size: 382 KiB

After

Width:  |  Height:  |  Size: 382 KiB

View File

@ -16,8 +16,14 @@
"directory": "addons/storysource"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"loader.js",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},

View File

@ -16,6 +16,13 @@
"directory": "addons/viewport"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"preview.js",
"register.js"
],
"main": "preview.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
@ -33,13 +40,13 @@
"prop-types": "^15.7.2",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@types/util-deprecate": "^1.0.0"
},
"peerDependencies": {
"react": "*"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/util-deprecate": "^1.0.0"
}
}

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,6 +15,14 @@
"directory": "app/angular"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js",
"demo.js",
"demo.d.ts"
],
"main": "dist/client/index.js",
"types": "dist/client/index.d.ts",
"bin": {

View File

@ -12,6 +12,12 @@
"directory": "app/ember"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"jsnext:main": "src/client/index.js",
"bin": {

View File

@ -1,3 +0,0 @@
docs
src
.babelrc

View File

@ -15,6 +15,12 @@
"directory": "app/html"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"types": "dist/client/index.d.ts",
"bin": {

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,8 +15,13 @@
"directory": "app/marko"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"jsnext:main": "src/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",
"start-storybook": "./bin/index.js",

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,8 +15,13 @@
"directory": "app/mithril"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"jsnext:main": "src/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",
"start-storybook": "./bin/index.js",

View File

@ -1,3 +0,0 @@
docs
src
.babelrc

View File

@ -15,6 +15,12 @@
"directory": "app/polymer"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,6 +15,12 @@
"directory": "app/preact"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"types": "dist/client/index.d.ts",
"bin": {

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -3,8 +3,8 @@
"version": "5.2.1",
"description": "Storybook for Rax: Develop Rax Component in isolation.",
"keywords": [
"storybook",
"rax"
"rax",
"storybook"
],
"homepage": "https://github.com/storybookjs/storybook/tree/master/app/rax",
"bugs": {
@ -16,8 +16,13 @@
"directory": "app/rax"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"jsnext:main": "src/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",
"start-storybook": "./bin/index.js",

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -16,6 +16,11 @@
"url": "https://github.com/storybookjs/storybook.git"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md"
],
"bin": {
"start-storybook": "./bin/index.js",
"storybook-server": "./bin/index.js"

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -17,6 +17,11 @@
"directory": "app/react-native"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,6 +15,13 @@
"directory": "app/react"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js",
"demo.js"
],
"main": "dist/client/index.js",
"types": "dist/client/index.d.ts",
"bin": {
@ -49,17 +56,17 @@
"semver": "^6.0.0",
"webpack": "^4.33.0"
},
"devDependencies": {
"@types/mini-css-extract-plugin": "^0.2.1",
"@types/node": "^12.0.8",
"@types/webpack": "^4.4.32"
},
"peerDependencies": {
"@babel/core": "^7.0.1",
"babel-loader": "^7.0.0 || ^8.0.0",
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"@types/mini-css-extract-plugin": "^0.2.1",
"@types/node": "^12.0.8",
"@types/webpack": "^4.4.32"
},
"engines": {
"node": ">=8.0.0"
},

View File

@ -1,2 +0,0 @@
src
.babelrc

View File

@ -15,6 +15,12 @@
"directory": "app/riot"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,8 +15,13 @@
"directory": "app/svelte"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"jsnext:main": "src/client/index.js",
"bin": {
"build-storybook": "./bin/build.js",
"start-storybook": "./bin/index.js",

View File

@ -1,2 +0,0 @@
docs
.babelrc

View File

@ -15,6 +15,12 @@
"directory": "app/vue"
},
"license": "MIT",
"files": [
"bin/**/*",
"dist/**/*",
"README.md",
"standalone.js"
],
"main": "dist/client/index.js",
"types": "dist/client/index.d.ts",
"bin": {

View File

@ -7,7 +7,7 @@ const List = styled.div`
min-width: 180px;
overflow: hidden;
overflow-y: auto;
maxHeight: ${10.5 * 32 /* 10.5 items */};
maxheight: ${10.5 * 32 /* 10.5 items */};
`;
function TooltipLinkList({ links, LinkWrapper }) {

View File

@ -15,6 +15,10 @@
"directory": "lib/addons"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/public_api.js",
"types": "dist/public_api.d.ts",
"scripts": {

View File

@ -14,6 +14,10 @@
"url": "https://github.com/storybookjs/storybook.git"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,10 @@
"directory": "lib/channel-postmessage"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,10 @@
"directory": "lib/channel-websocket"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,10 @@
"directory": "lib/channels"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -18,6 +18,13 @@
},
"license": "MIT",
"author": "Storybook Team",
"files": [
"bin/**/*",
"docs/**/*",
"generators/**/*",
"lib/**/*",
"README.md"
],
"bin": {
"getstorybook": "./bin/index.js",
"sb": "./bin/index.js"

View File

@ -15,6 +15,10 @@
"directory": "lib/client-api"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,10 @@
"directory": "lib/client-logger"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,10 @@
"directory": "lib/codemod"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {

View File

@ -15,6 +15,12 @@
"directory": "lib/components"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md",
"html.d.ts",
"html.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -13,7 +13,7 @@ import { Placeholder } from '../placeholder/placeholder';
import { FlexBar } from '../bar/bar';
import { TabButton } from '../bar/button';
const ignoreSsrWarning =
const ignoreSsrWarning =
'/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */';
export interface WrapperProps {

View File

@ -15,6 +15,10 @@
"directory": "lib/core-events"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,14 @@
"directory": "lib/core"
},
"license": "MIT",
"files": [
"dist/**/*",
"dll/**/*",
"README.md",
"server.js",
"standalone.ts",
"client.ts"
],
"main": "dist/client/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"

View File

@ -15,6 +15,10 @@
"directory": "lib/node-logger"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -15,6 +15,12 @@
"directory": "lib/router"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md",
"utils.js",
"utils.d.ts"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -16,6 +16,11 @@
"directory": "lib/source-loader"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md",
"preview.js"
],
"main": "dist/server/index.js",
"jsnext:main": "src/server/index.js",
"scripts": {

View File

@ -15,6 +15,12 @@
"directory": "lib/theming"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md",
"paths.js",
"create.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

View File

@ -1 +0,0 @@
.babelrc

View File

@ -15,8 +15,12 @@
"directory": "lib/ui"
},
"license": "MIT",
"files": [
"dist/**/*",
"README.md",
"paths.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"createDlls": "node -r esm ./scripts/createDlls.js",
"prepare": "node ../../scripts/prepare.js"

View File

@ -30033,7 +30033,7 @@ vue-template-es2015-compiler@^1.9.0:
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
vue@*, vue@^2.6.8:
vue@^2.6.8:
version "2.6.10"
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==