Skip to content

Commit cdeb761

Browse files
refactor: remove gulp and migrate seed tasks
1 parent ff0358f commit cdeb761

7 files changed

Lines changed: 268 additions & 5957 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Designed to be cloned into downstream projects and kept up-to-date via `git merg
1515
| Subject | Informations |
1616
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1717
| Architecture | Layered Architecture : everything is separated in layers, and the upper layers are abstractions of the lower ones, that's why every layer should only reference the immediate lower layer (vertical modules architecture with Repository and Services Pattern) |
18-
| Server | [Node >= 20 LTS](https://nodejs.org/en/) - [Express](https://github.com/expressjs/express) - [Helmet](https://github.com/helmetjs/helmet) - [CORS](https://github.com/expressjs/cors) <br> [gulp](https://github.com/gulpjs/gulp) - [nodemon](https://github.com/remy/nodemon) |
18+
| Server | [Node >= 20 LTS](https://nodejs.org/en/) - [Express](https://github.com/expressjs/express) - [Helmet](https://github.com/helmetjs/helmet) - [CORS](https://github.com/expressjs/cors) <br> [nodemon](https://github.com/remy/nodemon) |
1919
| Database | [MongoDB](https://www.mongodb.com/) - [Mongoose](https://github.com/Automattic/mongoose) - GridFS upload <br> [Sequelize](https://github.com/sequelize/sequelize) - PostgreSQL, MySQL, SQLite (option) <br> [JOI](https://github.com/hapijs/joi) - Models & Repository validation |
2020
| Security | [passport-jwt](https://github.com/themikenicholson/passport-jwt) - JWT Stateless <br> [bcrypt](https://en.wikipedia.org/wiki/Bcrypt) - [zxcvbn](https://github.com/dropbox/zxcvbn) - Passwords <br> SSL - Express / Reverse Proxy |
2121
| API | [jsend](https://github.com/omniti-labs/jsend) - Default response wrapper: status, message, data or error |
@@ -98,6 +98,8 @@ npm run lint:fix # Auto-fix code quality issues
9898
```bash
9999
npm run seed:dev # Seed development database
100100
npm run seed:prod # Seed production database
101+
npm run seed:user # Seed default user/admin only (no drop)
102+
npm run seed:mongodrop # Drop database (with confirmation)
101103
```
102104

103105
### Commits & Releases

config/assets.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint comma-dangle:[0, "only-multiline"] */
22
export default {
3-
gulpConfig: ['gulpfile.js'],
43
allJS: ['server.js', 'config/**/*.js', 'lib/**/*.js', 'modules/*/**/*.js'],
54
allYaml: 'modules/*/doc/*.yml',
65
mongooseModels: 'modules/*/models/*.mongoose.js',

gulpfile.js

Lines changed: 0 additions & 216 deletions
This file was deleted.

modules/core/tests/core.unit.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Core unit tests:', () => {
6161
});
6262

6363
it('assets should contain the correct keys', () => {
64-
const expectedKeys = ['gulpConfig', 'allJS', 'allYaml', 'mongooseModels', 'sequelizeModels', 'routes', 'config', 'policies'];
64+
const expectedKeys = ['allJS', 'allYaml', 'mongooseModels', 'sequelizeModels', 'routes', 'config', 'policies'];
6565

6666
expectedKeys.forEach((key) => {
6767
expect(assets).toHaveProperty(key);

0 commit comments

Comments
 (0)