donejs / generator-donejs

A Yeoman generator for your DoneJS application
MIT License
9 stars 7 forks source link

Plugin generator should support creating scoped packages #261

Open phillipskevin opened 7 years ago

phillipskevin commented 7 years ago

Using a scoped package name when creating a plugin like:

? Project name @phillipskevin/scoped-package

creates a package with

"name": "phillipskevin-scoped-package",
...
"repository": {
    "type": "git",
    "url": "git://github.com/phillipskevin/phillipskevin-scoped-package.git"
},
...
"main": "dist/cjs/phillipskevin-scoped-package"
...
"steal": {
    "main": "phillipskevin-scoped-package",
}
phillipskevin commented 7 years ago

when using scoped packages, the generator should also add --access=public for publish scripts (perhaps optionally).