Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an init command #11

Closed
fastfrwrd opened this issue Jun 24, 2019 · 1 comment · Fixed by #20
Closed

Implement an init command #11

fastfrwrd opened this issue Jun 24, 2019 · 1 comment · Fixed by #20
Labels
enhancement New feature or request

Comments

@fastfrwrd
Copy link

fastfrwrd commented Jun 24, 2019

We think it would be valuable to have a web-scripts init script which takes care of a few things.

  • installs @spotify/web-scripts and husky as devDepdendencies if they are not currently a dependency or devDependency.
    • the package would need to install itself in case it was invoked via npx or was a global dep.
  • adds npm scripts for build, test, lint, commit, and release if you don't already have them defined.
  • adds the hooks for precommit and commitmsg in package.json (again, if neither is defined already)
  • set main, module, and types in package.json to conform with web-scripts build's output.
  • create tsconfig.json, .eslintrc.js, prettier.config.js, jest.config.js if they do not exist for your editor integrations, as described in the README.

We need to add an integration test for the init command.

@fastfrwrd fastfrwrd added the enhancement New feature or request label Jun 24, 2019
@fastfrwrd
Copy link
Author

create a separate npx-able like create-react-app or https://github.com/zeit/create-next-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant