{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/nest-cli/issues/213","repository_url":"https://api.github.com/repos/nestjs/nest-cli","labels_url":"https://api.github.com/repos/nestjs/nest-cli/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/nest-cli/issues/213/comments","events_url":"https://api.github.com/repos/nestjs/nest-cli/issues/213/events","html_url":"https://github.com/nestjs/nest-cli/issues/213","id":394829659,"node_id":"MDU6SXNzdWUzOTQ4Mjk2NTk=","number":213,"title":"Provide option for creating a new library","user":{"login":"appsolutegeek","id":2370364,"node_id":"MDQ6VXNlcjIzNzAzNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2370364?v=4","gravatar_id":"","url":"https://api.github.com/users/appsolutegeek","html_url":"https://github.com/appsolutegeek","followers_url":"https://api.github.com/users/appsolutegeek/followers","following_url":"https://api.github.com/users/appsolutegeek/following{/other_user}","gists_url":"https://api.github.com/users/appsolutegeek/gists{/gist_id}","starred_url":"https://api.github.com/users/appsolutegeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appsolutegeek/subscriptions","organizations_url":"https://api.github.com/users/appsolutegeek/orgs","repos_url":"https://api.github.com/users/appsolutegeek/repos","events_url":"https://api.github.com/users/appsolutegeek/events{/privacy}","received_events_url":"https://api.github.com/users/appsolutegeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-29T22:30:57Z","updated_at":"2019-01-02T07:12:52Z","closed_at":null,"author_association":"NONE","body":"<pre><code>\r\n[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->\r\n[ ] Bug report\r\n[x] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.\r\n</code></pre>\r\n\r\n## Current behavior\r\nWould be nice to be able to create a library using the cli.. NG CLI does something similar but you need to run it inside an already created application and thus creates a subdirectory called projects with the library inside.\r\n\r\nWhat I would I suggest is not required to run inside an already nest created app but to be completely independent. As something like this https://github.com/nestjs/typeorm\r\n\r\nThat way, we can publish these to NPM and it has its own git repository.\r\n\r\nRight now what I am doing is creating a new nest app and stripping out the majority of things like nodemon as its a library and not needed.  e2e tests as it's not needed. main.ts as it's not needed.\r\n\r\nremoving npm scripts for e2e tests, start and other related scripts.. Basically just leaving the test, build, lint etc\r\n\r\nSo I am able to do this manually but it would be nice if the cli had a generate / new command for this.\r\n"},"comment":{"url":"https://api.github.com/repos/nestjs/nest-cli/issues/comments/450798355","html_url":"https://github.com/nestjs/nest-cli/issues/213#issuecomment-450798355","issue_url":"https://api.github.com/repos/nestjs/nest-cli/issues/213","id":450798355,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc5ODM1NQ==","user":{"login":"appsolutegeek","id":2370364,"node_id":"MDQ6VXNlcjIzNzAzNjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2370364?v=4","gravatar_id":"","url":"https://api.github.com/users/appsolutegeek","html_url":"https://github.com/appsolutegeek","followers_url":"https://api.github.com/users/appsolutegeek/followers","following_url":"https://api.github.com/users/appsolutegeek/following{/other_user}","gists_url":"https://api.github.com/users/appsolutegeek/gists{/gist_id}","starred_url":"https://api.github.com/users/appsolutegeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appsolutegeek/subscriptions","organizations_url":"https://api.github.com/users/appsolutegeek/orgs","repos_url":"https://api.github.com/users/appsolutegeek/repos","events_url":"https://api.github.com/users/appsolutegeek/events{/privacy}","received_events_url":"https://api.github.com/users/appsolutegeek/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T07:12:52Z","updated_at":"2019-01-02T07:12:52Z","author_association":"NONE","body":"Just tested it! That's exactly what I needed - thanks @ltciro \r\n\r\nWould be nice to be able to get this documented here https://docs.nestjs.com/cli/usages - as I didn't know it existed.\r\n\r\nMaybe leaving this open to update the documentation?"}}
{"actor":{"display_login":"appsolutegeek"}}