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

project scope #9

Open
boneskull opened this issue Jan 12, 2021 · 1 comment
Open

project scope #9

boneskull opened this issue Jan 12, 2021 · 1 comment

Comments

@boneskull
Copy link

Copied verbatim from nodejs/package-maintenance#404 by @darcyclarke

create-pkg

Goals:

  1. Provide a tool that promotes sane package defaults (defined by PMWG)
  2. Provide tools to extend defaults per community/team

Example Usage:

$ npm init pkg
$ npx create-pkg
const pkg = require('create-pkg')
import pkg from 'create-pkg'

Questions:

  1. What do we want the scaffold output to include?
    • package.json
      • name
      • description
      • homepage
      • author
      • license
      • funding
      • version
      • type
      • main
      • scripts
        • "prepublish": "..."* (contentious)
        • "test": "..."* (contentious)
      • exports
    • index.js
    • LICENSE
    • CONTRIBUTING.md
    • CODE_OF_CONDUCT.md
    • README.md
    • FUNDING.yml* (contentious)
    • .npmrc* (contentious)
    • .gitignore* (contentious)
      • Contents: /node_modules
    • .github/ISSUE_TEMPLATES/** (contentious)
  2. What API surface do we want to expose to both end users and folks who want to compose the base generator with their own custom opinions?
    • Interfaces: CLI w/ Interactive/Prompts & a JS API

Next Steps:

  • Get some general consensus of the approach we'd like to take building this & the defaults we'd want
  • Update @pkgjs/support to be a consumer of this tool or vice-versa

References & Prior Art:

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

No branches or pull requests

2 participants