Skip to content

Commit

Permalink
feat: Pulish the project as npx
Browse files Browse the repository at this point in the history
  • Loading branch information
fadhlaouir committed Mar 18, 2024
1 parent a43da99 commit 2d57879
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,17 @@ npm install
.
├── .husky
├── cli
│ ├── _
│ │ ├── deleteCrud.js
│ │ ├── generateEmptyCrud.js
│ │ ├── generateMinimalCrud.js
│ │ └── helpers.js
│ ├── generateCrud.js
│ └── index.js
├── src
│ ├── controllers
│ │ ├── auth.controller.js
│ │ └── user.ontroller.js
│ │ └── user.controller.js
│ ├── middlewares
│ │ ├── multer.js
│ │ └── verify-token.js
Expand Down
1 change: 1 addition & 0 deletions cli/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
/* -------------------------------------------------------------------------- */
/* DEPENDENCIES */
/* -------------------------------------------------------------------------- */
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"type": "git",
"url": "git+https://github.com/fadhlaouir/express-node-starter.git"
},
"bin": {
"express-node-starter": "./cli/index.js"
},
"keywords": [
"node.js",
"express.js",
"swagger",
"mongodb",
"restful-api"
],
"bin": {
"express-node-starter": "server.js"
},
"dependencies": {
"async": "^3.2.3",
"babel-eslint": "^10.1.0",
Expand Down Expand Up @@ -75,4 +75,4 @@
"node": ">=14.16.0 <=20.11.0",
"npm": ">=6.14.11 <=10.2.4"
}
}
}

0 comments on commit 2d57879

Please sign in to comment.