mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 02:11:07 +08:00
# Conflicts: # addons/centered/package.json # addons/graphql/package.json # addons/info/package.json # addons/knobs/package.json # addons/links/.storybook/config.js # addons/notes/package.json # addons/notes/src/index.js # addons/notes/src/register.js # addons/options/src/manager/index.js # addons/storyshots/src/index.js # addons/storyshots/stories/required_with_context/Button.stories.js # addons/storyshots/stories/required_with_context/Welcome.js # app/react-native/package.json # app/react-native/src/manager/index.js # lib/channel-postmessage/package.json # lib/channel-postmessage/src/index.js # lib/channel-websocket/package.json # lib/channel-websocket/src/index.js # lib/cli/generators/METEOR/index.js # lib/cli/generators/REACT/template/stories/Welcome.js # lib/cli/generators/REACT_SCRIPTS/index.js # lib/cli/generators/WEBPACK_REACT/template/stories/Welcome.js # packages/react-storybook/src/server/track_usage.js # packages/storybook-ui/src/modules/ui/components/layout/usplit.js # scripts/prepublish.js
18 lines
627 B
JavaScript
18 lines
627 B
JavaScript
const mergeDirs = require('merge-dirs').default;
|
|
const helpers = require('../../lib/helpers');
|
|
const path = require('path');
|
|
|
|
mergeDirs(path.resolve(__dirname, 'template/'), '.', 'overwrite');
|
|
|
|
const packageJson = helpers.getPackageJson();
|
|
|
|
// TODO: Get the latest version of storybook here.
|
|
packageJson.devDependencies = packageJson.devDependencies || {};
|
|
packageJson.devDependencies['@storybook/react'] = '^2.21.0';
|
|
|
|
packageJson.scripts = packageJson.scripts || {};
|
|
packageJson.scripts.storybook = 'start-storybook -p 6006';
|
|
packageJson.scripts['build-storybook'] = 'build-storybook';
|
|
|
|
helpers.writePackageJson(packageJson);
|