-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mailer): integrate mailer in the nx monorepo
* build: convert package into a Nx plugin * build: fix tests * build: update tsconfig and readme links * build: remove old code and check changes * build: add plugin to nx workspace * build: fix dependencies * build: restore package.json and default file directories * build: update configuration * build: little fix * build: little fix * build: restore nx.json * build: fix version and dependencies
- Loading branch information
1 parent
d77a918
commit 1c42266
Showing
25 changed files
with
3,002 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage | ||
/.nx/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { getJestProjects } from '@nx/jest'; | ||
|
||
export default { | ||
projects: getJestProjects(), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
|
||
module.exports = { ...nxPreset }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,60 @@ | ||
{ | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": [ | ||
"^build" | ||
], | ||
"outputs": [ | ||
"{projectRoot}/dist" | ||
], | ||
"dependsOn": ["^build"], | ||
"outputs": ["{projectRoot}/dist"], | ||
"cache": true | ||
}, | ||
"prepublish:npm": { | ||
"dependsOn": [ | ||
"^prepublish:npm" | ||
] | ||
"dependsOn": ["^prepublish:npm"] | ||
}, | ||
"publish:npm": { | ||
"dependsOn": [ | ||
"^publish:npm" | ||
] | ||
"dependsOn": ["^publish:npm"] | ||
}, | ||
"test": { | ||
"dependsOn": [ | ||
"^test" | ||
], | ||
"dependsOn": ["^test"], | ||
"cache": true | ||
}, | ||
"format": { | ||
"dependsOn": [ | ||
"^format" | ||
] | ||
"dependsOn": ["^format"] | ||
}, | ||
"lint": { | ||
"dependsOn": [ | ||
"^lint" | ||
], | ||
"dependsOn": ["^lint"], | ||
"cache": true | ||
}, | ||
"prepublish": { | ||
"dependsOn": [ | ||
"^prepublish" | ||
] | ||
"dependsOn": ["^prepublish"] | ||
}, | ||
"prepare": { | ||
"dependsOn": [ | ||
"^prepare" | ||
] | ||
"dependsOn": ["^prepare"] | ||
}, | ||
"@nx/jest:jest": { | ||
"cache": true, | ||
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], | ||
"options": { | ||
"passWithNoTests": true | ||
}, | ||
"configurations": { | ||
"ci": { | ||
"ci": true, | ||
"codeCoverage": true | ||
} | ||
} | ||
} | ||
}, | ||
"affected": { | ||
"defaultBase": "develop" | ||
}, | ||
"namedInputs": { | ||
"default": [ | ||
"{projectRoot}/**/*", | ||
"sharedGlobals" | ||
], | ||
"default": ["{projectRoot}/**/*", "sharedGlobals"], | ||
"sharedGlobals": [], | ||
"production": [ | ||
"default" | ||
"default", | ||
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", | ||
"!{projectRoot}/tsconfig.spec.json", | ||
"!{projectRoot}/jest.config.[jt]s", | ||
"!{projectRoot}/src/test-setup.[jt]s", | ||
"!{projectRoot}/test-setup.[jt]s" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"extends": ["../../.eslintrc.js"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.json"], | ||
"parser": "jsonc-eslint-parser", | ||
"rules": { | ||
"@nx/dependency-checks": "error" | ||
} | ||
}, | ||
{ | ||
"files": ["./package.json"], | ||
"parser": "jsonc-eslint-parser", | ||
"rules": { | ||
"@nx/nx-plugin-checks": "error" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# devon4ts_node | ||
|
||
[devonfw](https://www.devonfw.com/) is a platform which provides solutions to building business applications which combine best-in-class frameworks and libraries as well as industry proven practices and code conventions. devonfw is 100% Open Source (Apache License version 2.0) since the beginning of 2018. | ||
|
||
devon4ts_node is the NodeJS stack of devonfw. It allows you to build business applications (backends) using NodeJS technology in standardized way based on established best-practices. | ||
|
||
![License](https://img.shields.io/npm/l/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/npm/v/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/librariesio/release/npm/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/npm/dt/@devon4ts_node/mailer) | ||
|
||
## devon4ts_node mailer | ||
|
||
This package contains the devon4ts_node mailer module. This module allows you to send emails in your devon4ts_node application in a easy way. | ||
|
||
## Documentation | ||
|
||
You can find all documentation in our [wiki](https://github.com/devonfw/devon4ts_node/wiki). | ||
|
||
## Code of conduct | ||
|
||
Visit [code of conduct document](https://github.com/devonfw/.github/blob/master/CODE_OF_CONDUCT.md). | ||
|
||
## Contributing guide | ||
|
||
Visit [contributing guide document](https://github.com/devonfw/.github/blob/master/CONTRIBUTING.asciidoc). | ||
|
||
## Key Principles | ||
|
||
Visit [key principles document](https://github.com/devonfw/.github/blob/master/key-principles.asciidoc). | ||
|
||
## Samples | ||
|
||
- [Employee example](https://github.com/devonfw-sample/devon4ts_node-samples/tree/develop/employee): simple backend example for a employee management application. | ||
- [Components example](https://github.com/devonfw-sample/devon4ts_node/tree/develop/components-example): simple backend example which will show you the execution order of the devon4ts_node components. | ||
- [GraphQL example](https://github.com/devonfw-sample/devon4ts_node/tree/develop/graphql): simple GraphQL example with starter configuration. | ||
- [My Thai Star](https://github.com/devonfw/my-thai-star/tree/develop/node): realistic example about the management of a restaurant. This example has also a frontend and it is compatible with other devonfw stacks. | ||
# devon4ts_node | ||
|
||
[devonfw](https://www.devonfw.com/) is a platform which provides solutions to building business applications which combine best-in-class frameworks and libraries as well as industry proven practices and code conventions. devonfw is 100% Open Source (Apache License version 2.0) since the beginning of 2018. | ||
|
||
devon4ts_node is the NodeJS stack of devonfw. It allows you to build business applications (backends) using NodeJS technology in a standardized way based on established best-practices. | ||
|
||
![License](https://img.shields.io/npm/l/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/npm/v/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/librariesio/release/npm/@devon4ts_node/mailer) | ||
![License](https://img.shields.io/npm/dt/@devon4ts_node/mailer) | ||
|
||
## devon4ts_node mailer | ||
|
||
This package contains the devon4ts_node mailer module. This module allows you to send emails in your devon4ts_node application in a easy way. | ||
|
||
## Documentation | ||
|
||
You can find all documentation in our [wiki](https://github.com/devonfw/devon4ts_node/wiki). | ||
|
||
## Code of conduct | ||
|
||
Visit [code of conduct document](https://github.com/devonfw/.github/blob/master/CODE_OF_CONDUCT.md). | ||
|
||
## Contributing guide | ||
|
||
Visit [contributing guide document](https://github.com/devonfw/.github/blob/master/CONTRIBUTING.asciidoc). | ||
|
||
## Key Principles | ||
|
||
Visit [key principles document](https://github.com/devonfw/.github/blob/master/key-principles.asciidoc). | ||
|
||
## Samples | ||
|
||
- [Employee example](https://devon.s2-eu.capgemini.com/gitlab/devonfw/devon4ts-samples/-/tree/master/apps/nest-employee): simple backend example for a employee management application. | ||
- [Components example](https://devon.s2-eu.capgemini.com/gitlab/devonfw/devon4ts-samples/-/tree/master/apps/nest-components): simple backend example which will show you the execution order of the devon4ts_node components. | ||
- [GraphQL example](https://devon.s2-eu.capgemini.com/gitlab/devonfw/devon4ts-samples/-/tree/master/apps/nest-graphql): simple GraphQL example with starter configuration. | ||
- [My Thai Star](https://devon.s2-eu.capgemini.com/gitlab/devonfw/my-thai-star/-/tree/develop/node): realistic example about the management of a restaurant. This example has also a frontend and it is compatible with other devonfw stacks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'mailer', | ||
preset: '../../jest.preset.js', | ||
transform: { | ||
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }], | ||
}, | ||
moduleFileExtensions: ['ts', 'js', 'html'], | ||
coverageDirectory: '../../coverage/packages/mailer', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "mailer", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "packages/mailer/src", | ||
"projectType": "library", | ||
"targets": { | ||
"build": { | ||
"executor": "@nx/js:tsc", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/packages/mailer", | ||
"main": "packages/mailer/src/lib/index.ts", | ||
"tsConfig": "packages/mailer/tsconfig.lib.json", | ||
"assets": [ | ||
"packages/mailer/*.md", | ||
{ | ||
"input": "./packages/mailer/src", | ||
"glob": "**/!(*.ts)", | ||
"output": "./src" | ||
}, | ||
{ | ||
"input": "./packages/mailer/src", | ||
"glob": "**/*.d.ts", | ||
"output": "./src" | ||
}, | ||
{ | ||
"input": "./packages/mailer", | ||
"glob": "generators.json", | ||
"output": "." | ||
}, | ||
{ | ||
"input": "./packages/mailer", | ||
"glob": "executors.json", | ||
"output": "." | ||
} | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], | ||
"options": { | ||
"jestConfig": "packages/mailer/jest.config.ts" | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.