Skip to content

Commit d6b3ff2

Browse files
Merge pull request #10 from commitd/sh-develop
2 parents 2800656 + c7881b5 commit d6b3ff2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+43
-5317
lines changed

README.md

Lines changed: 2 additions & 0 deletions

example/.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/index.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/package.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

example/tsconfig.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

example/yarn.lock

Lines changed: 0 additions & 5227 deletions
This file was deleted.

generators/plopfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ module.exports = (plop) => {
4949
actions: [
5050
{
5151
type: 'add',
52-
path: '../src/hooks/{{name}}/{{name}}.ts',
52+
path: '../src/{{name}}/{{name}}.ts',
5353
templateFile: 'Hook.hbs',
5454
},
5555
{
5656
type: 'add',
57-
path: '../src/hooks/{{name}}/{{name}}.stories.tsx',
57+
path: '../src/{{name}}/{{name}}.stories.tsx',
5858
templateFile: 'Hook.stories.hbs',
5959
},
6060
{
6161
type: 'add',
62-
path: '../src/hooks/{{name}}/{{name}}.test.ts',
62+
path: '../src/{{name}}/{{name}}.test.ts',
6363
templateFile: 'Hook.test.hbs',
6464
},
6565
{
6666
type: 'add',
67-
path: '../src/hooks/{{name}}/index.ts',
67+
path: '../src/{{name}}/index.ts',
6868
template: "export * from './{{name}}'\n",
6969
},
7070
{
7171
type: 'modify',
72-
path: '../src/hooks/index.ts',
72+
path: '../src/index.ts',
7373
pattern: /\n*$/,
7474
template: `\nexport * from './{{name}}'\n`,
7575
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"analyze": "size-limit --why",
2929
"storybook": "start-storybook -p 6006",
3030
"build-storybook": "build-storybook --no-dll",
31-
"format": "prettier --write '**/{src,test,stories}/**/{*.js,*.ts,*.tsx,*.json,*.md,*.mdx}' example/index.tsx",
31+
"format": "prettier --write '**/{src,test,stories}/**/{*.js,*.ts,*.tsx,*.json,*.md,*.mdx}'",
3232
"deploy-storybook": "storybook-to-ghpages",
3333
"generate": "plop --plopfile ./generators/plopfile.js"
3434
},
File renamed without changes.

0 commit comments

Comments
 (0)