Merge branch 'master' into rugvip/publish

This commit is contained in:
Patrik Oldsberg
2020-03-25 11:21:12 +01:00
committed by GitHub
7 changed files with 63 additions and 17 deletions
+2 -11
View File
@@ -8,9 +8,7 @@
"scripts": {
"build": "tsc --outDir dist/cjs --noEmit false --module CommonJS",
"lint": "backstage-cli lint",
"test": "backstage-cli test",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"test": "backstage-cli test"
},
"publishConfig": {
"access": "public"
@@ -31,17 +29,10 @@
"recompose": "0.30.0"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@spotify-backstage/cli": "^0.1.0",
"@storybook/addon-actions": "^5.3.17",
"@storybook/addon-links": "^5.3.17",
"@storybook/addons": "^5.3.17",
"@storybook/react": "^5.3.17",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"babel-loader": "^8.1.0",
"prop-types": "^15.7.2",
"ts-loader": "^6.2.1"
"prop-types": "^15.7.2"
}
}
+22
View File
@@ -0,0 +1,22 @@
module.exports = {
stories: [
'../../core/src/layout/**/*.stories.tsx',
'../../core/src/components/**/*.stories.tsx',
],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
webpackFinal: async config => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
use: [
{
loader: require.resolve('ts-loader'),
options: {
transpileOnly: true,
},
},
],
});
config.resolve.extensions.push('.ts', '.tsx');
return config;
},
};
+21
View File
@@ -0,0 +1,21 @@
{
"name": "storybook",
"version": "0.0.0",
"description": "Storybook build for core package",
"private": true,
"scripts": {
"start": "start-storybook -p 6006",
"build-storybook": "build-storybook --output-dir dist"
},
"workspaces": {
"nohoist": [
"@storybook/**"
]
},
"devDependencies": {
"@storybook/addon-actions": "^5.3.17",
"@storybook/addon-links": "^5.3.17",
"@storybook/addons": "^5.3.17",
"@storybook/react": "^5.3.17"
}
}