Skip to content

Commit

Permalink
Add newlines between migration guide variants (#181)
Browse files Browse the repository at this point in the history
It's easier to read this way, and more clear to what case which command corresponds
  • Loading branch information
saitonakamura committed May 28, 2020
1 parent 5f569e7 commit 4924276
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/size-limit/create-help.js
Expand Up @@ -79,10 +79,13 @@ module.exports = process => {
'',
'For application, where you send JS bundle directly to users',
' ' + y(add + '@size-limit/preset-app'),
'',
'For frameworks, components and big libraries',
' ' + y(add + '@size-limit/preset-big-lib'),
'',
'For small (< 10 KB) libraries',
' ' + y(add + '@size-limit/preset-small-lib'),
'',
'Check out docs for more complicated cases',
' ' + y('https://github.com/ai/size-limit/')
)
Expand Down
9 changes: 9 additions & 0 deletions packages/size-limit/test/__snapshots__/run.test.js.snap
Expand Up @@ -223,10 +223,13 @@ exports[`shows migration guide for npm users 1`] = `
For application, where you send JS bundle directly to users
npm install --save-dev @size-limit/preset-app
For frameworks, components and big libraries
npm install --save-dev @size-limit/preset-big-lib
For small (< 10 KB) libraries
npm install --save-dev @size-limit/preset-small-lib
Check out docs for more complicated cases
https://github.com/ai/size-limit/
"
Expand All @@ -237,10 +240,13 @@ exports[`shows migration guide for npm users: config 1, dep 0 1`] = `
For application, where you send JS bundle directly to users
npm install --save-dev @size-limit/preset-app
For frameworks, components and big libraries
npm install --save-dev @size-limit/preset-big-lib
For small (< 10 KB) libraries
npm install --save-dev @size-limit/preset-small-lib
Check out docs for more complicated cases
https://github.com/ai/size-limit/
Expand All @@ -253,10 +259,13 @@ exports[`shows migration guide for yarn users 1`] = `
For application, where you send JS bundle directly to users
yarn add --dev @size-limit/preset-app
For frameworks, components and big libraries
yarn add --dev @size-limit/preset-big-lib
For small (< 10 KB) libraries
yarn add --dev @size-limit/preset-small-lib
Check out docs for more complicated cases
https://github.com/ai/size-limit/
"
Expand Down

0 comments on commit 4924276

Please sign in to comment.