Skip to content

feat(cli): Add ability to npm init feathers#2755

Merged
daffl merged 2 commits into
dovefrom
create-feathers-app
Sep 16, 2022
Merged

feat(cli): Add ability to npm init feathers#2755
daffl merged 2 commits into
dovefrom
create-feathers-app

Conversation

@daffl
Copy link
Copy Markdown
Member

@daffl daffl commented Sep 16, 2022

This pull request adds a create-feathers package which allows to create a brand new Feathers application by simply running

npm init feathers feathers-chat

It will create a new folder and then run the @feathersjs/cli application generator.

In the new app, the CLI will also be installed locally so all commands are now run via npx feathers. That way every developer uses the version of the CLI installed with the app.

Closes #1501

@marshallswain
Copy link
Copy Markdown
Member

marshallswain commented Sep 16, 2022

Rad. I would prefer npm init feathers to generate an app. It will be the most-used generator, compared to a hook or resolver generator, or anything else we could build.

@daffl
Copy link
Copy Markdown
Member Author

daffl commented Sep 16, 2022

Agreed, it does look nicer. This will probably be the only npm init package since all the other generators will be then run with the locally installed @feathersjs/cli. So the flow would be:

npm init feathers chat
cd chat
npx feathers generate service
npm start

@daffl daffl changed the title feat(cli): Add create-feathers-app feat(cli): Add ability to npm init feathers Sep 16, 2022
@daffl daffl merged commit d734931 into dove Sep 16, 2022
@daffl daffl deleted the create-feathers-app branch September 16, 2022 23:37
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

Successfully merging this pull request may close these issues.

Suggestion: npm create feathers

2 participants