35 Commits

Author SHA1 Message Date
Norbert de Langen
16f01a1225 IMPROVE cli-tests performance 2019-07-04 15:54:13 +02:00
Kai Röder
b65ce1158c Replace redundant code 2019-06-02 15:14:48 +02:00
Kai Röder
3a92a9f79d Boyscouting and refactoring 2019-06-02 14:59:16 +02:00
Mikael Carpenter
d143131451 Move option for using dev dependencies to npmOptions in initiate.js
update installDependencies helper to use that new option
     update usage of that to not pass '-D' in list of dependencies
2019-04-30 16:36:06 -07:00
Mikael Carpenter
1977ac39ab Remove yarn.lock from fixture. Fix typo in helper function 2019-04-25 10:52:48 -07:00
Mikael Carpenter
fa991cc361 Update the remaining generators to use new install functions.
Add a new fixture that has a frozen lock file
   Add documentation to the helper functions I changed
2019-04-25 10:12:16 -07:00
Mikael Carpenter
e67b9d1673 Add new function for installing dependencies via spawn command.
use this is POC in webpack react generator.
     also rename the old installDeps to be more explicit.
2019-04-23 16:38:04 -07:00
Tom Coleman
83c6ded4a0 Revert to installing babel-preset-vue from view installer.
This was removed in e496dfbb91fa38224adaf12d4d6c7ac3b39f85cb

Probably we should not even be using this preset (see https://github.com/storybooks/storybook/issues/4475#issuecomment-432141296), but we are, so I will add this for now to get it working.
2018-10-24 16:14:23 +11:00
Kai Röder
bb84b2e428 Makre sure '**/*.stories.ts' only gets appended once 2018-10-18 22:02:06 +02:00
Kai Röder
cdf8328226 angular-cli tsconfigPath excludes stories after sb init 2018-10-18 21:14:04 +02:00
Kai Röder
8e177a80e7 Added helper function to get the angular.json content 2018-10-18 18:42:00 +02:00
Hypnosphi
7a86aa7487 Use babelrc: false only for custom config in .storybook directory 2018-08-26 01:38:51 +03:00
Pavan Kumar Sunkara
f1cf6d277b Remove unnecessary babel bridge installation in installBabel 2018-08-22 18:23:22 +02:00
Pavan Kumar Sunkara
94a049c2f5 Revert "CHANGE the installBabel to only install babel-loader & RENAME to installBabelLoader"
This reverts commit aadd8f0e0baa90d40c523cc43aaa9a30ada788d8.
2018-08-22 18:14:34 +02:00
Norbert de Langen
aadd8f0e0b
CHANGE the installBabel to only install babel-loader & RENAME to installBabelLoader 2018-08-16 16:23:58 +02:00
Hypnosphi
4b169ab764 Fix version choice logic 2018-07-06 23:52:49 +03:00
Hypnosphi
3c0e3832e1 Add babel-loader peer dep 2018-07-06 20:59:30 +03:00
Keraito
568b35fb2d Use the --use-npm flag also for version checking 2018-05-06 12:18:32 +02:00
Felipe K. De Boni
00433d8e95 Refactor CLI to use
Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
    explore, get, help, help-search, i, init, install,
    install-test, it, link, list, ln, login, logout, ls,
    outdated, owner, pack, ping, prefix, profile, prune,
    publish, rb, rebuild, repo, restart, root, run, run-script,
    s, se, search, set, shrinkwrap, star, stars, start, stop, t,
    team, test, token, tst, un, uninstall, unpublish, unstar,
    up, update, v, version, view, whoami

npm <command> -h     quick help on <command>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /Users/felipedeboni/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@5.6.0 /Users/felipedeboni/.nvm/versions/node/v9.5.0/lib/node_modules/npm and yarn install v1.5.1
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 1.69s. instead of third party packages #3274 #3060
2018-03-23 20:59:02 -03:00
Hypnosphi
3d17a1e7e4 CLI: Add caret to all dependencies 2018-03-10 23:32:58 +02:00
Stijn Koopal
be67111422 Add bower.json to detect frameworks 2017-11-20 10:27:34 +01:00
hypnos
0d684f89dc Merge remote-tracking branch 'origin/master' into release/3.3
# Conflicts:
#	addons/knobs/package.json
#	app/react-native/package.json
#	docs/pages/basics/faq/index.md
#	examples/vue-kitchen-sink/package.json
#	lib/cli/generators/SFC_VUE/index.js
#	lib/cli/generators/VUE/index.js
#	lib/cli/lib/helpers.js
#	lib/cli/package.json
#	lib/ui/package.json
#	package.json
#	yarn.lock
2017-10-17 03:24:46 +03:00
kazuya kawaguchi
56e3602cbf
improvement(cli): setup JSX configration for Vue 2017-10-09 01:40:48 +09:00
hypnos
fee38503ae Use current version for storybook packages only 2017-09-15 03:12:35 +03:00
hypnos
f0c6942b61 Compare current and latest versions 2017-09-15 02:25:02 +03:00
hypnos
e91d60e2f4 Merge release/3.3 2017-09-08 01:44:20 +03:00
Norbert de Langen
7ab74c6a34 LINTING 2017-09-06 20:57:31 +02:00
Norbert de Langen
d0b752d8d3 FIX linting after prettier upgrade 2017-09-06 00:54:12 +02:00
hypnos
6826ce03ce Run prettier 2017-09-03 07:03:46 +03:00
hypnos
7df5a6ab93 Add tests for CLI. Support node 4 2017-08-30 02:47:15 +03:00
Norbert de Langen
99e95a1e7e FIX linting 2017-05-31 08:53:19 +02:00
Norbert de Langen
af1b0c11d2 Merge branch 'master' into eslint-strict
# Conflicts:
#	.eslintignore
#	.travis.yml
#	addons/actions/src/containers/ActionLogger/index.js
#	addons/centered/package.json
#	addons/graphql/package.json
#	addons/info/src/components/PropTable.js
#	addons/info/src/components/Props.js
#	addons/knobs/package.json
#	addons/knobs/src/components/Panel.js
#	addons/notes/package.json
#	addons/notes/src/index.js
#	addons/notes/src/register.js
#	addons/storyshots/package.json
#	addons/storyshots/src/index.js
#	app/react-native/package.json
#	app/react/package.json
#	examples/cra-storybook/package.json
#	examples/cra-storybook/src/stories/Welcome.js
#	examples/test-cra/src/stories/Button.js
#	examples/test-cra/src/stories/Welcome.js
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/cli/bin/generate.js
#	lib/cli/generators/METEOR/index.js
#	lib/cli/generators/REACT/index.js
#	lib/cli/generators/REACT/template/stories/index.js
#	lib/cli/generators/REACT_NATIVE/index.js
#	lib/cli/generators/REACT_SCRIPTS/index.js
#	lib/cli/generators/REACT_SCRIPTS/template/src/stories/Welcome.js
#	lib/cli/generators/WEBPACK_REACT/index.js
#	lib/cli/lib/helpers.js
#	lib/cli/package.json
#	package.json
2017-05-31 07:45:04 +02:00
Norbert de Langen
a593145cd0 FIX a few things 2017-05-23 20:56:54 +02:00
Norbert de Langen
09747c667b Merge branch 'master' into eslint-strict
# 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
2017-05-17 23:41:09 +02:00
Norbert de Langen
69b91f6e53 CHANGE folder structure && CHANGE package-names 2017-05-15 00:08:46 +02:00