Skip to content

Conversation

@fastfrwrd
Copy link

Why: in lieu of an init script like Storybook does, this simpler path to create a scaffolded app using https://github.com/spotify/web-scripts-library-template in the style of create-next-app or create-react-app. This also means you don't need to ship any of the scaffolding deps (such as fs-extra) with web-scripts.

Fixes #11

@fastfrwrd fastfrwrd force-pushed the fix-11 branch 8 times, most recently from 5bb650e to 3a1f15f Compare July 1, 2019 16:03
Copy link
Collaborator

@alde alde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

### With `yarn create`

```sh
yarn create @spotify/web-scripts-library my-cool-library
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn somehow knows where to inject the create?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


```sh
npm i -g @spotify/web-scripts-create-library
web-scripts-create-library my-cool-library
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer if we avoided promoting a global install, they tend to lead to nothing but pain!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a fact. happy to remove it, people can figure it out on their own if they really need it

Copy link
Contributor

@kirbysayshi kirbysayshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments, but looks really good!

"extends": "@spotify/web-scripts/config/tsconfig.json",
"include": ["src"],
"compilerOptions": {
"incremental": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be the default in the base config!

"incremental": true,
"isolatedModules": false,
"noEmit": true,
"declaration": false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for both noEmit and declaration, doesn't web-scripts handle these flags? I don't think we should imply they need to be managed by repeating them here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, I have no clue why I have these differences like this. Will clear them out.

@fastfrwrd fastfrwrd merged commit 664e54c into master Jul 1, 2019
@fastfrwrd fastfrwrd deleted the fix-11 branch July 1, 2019 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants