├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── LICENSE ├── README.md ├── environment.d.ts ├── jest.config.integration.js ├── jest.config.js ├── package.json ├── src ├── adapters │ └── .keep ├── app.ts ├── config │ └── module-alias.ts ├── core │ ├── types │ │ └── .keep │ └── use-cases │ │ ├── a.ts │ │ └── usecase.test.ts ├── index.ts └── ports │ ├── .keep │ └── test.integration.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/README.md -------------------------------------------------------------------------------- /environment.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/environment.d.ts -------------------------------------------------------------------------------- /jest.config.integration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/jest.config.integration.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/package.json -------------------------------------------------------------------------------- /src/adapters/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- 1 | import { a } from '@/core/use-cases/a' 2 | 3 | console.log('ts!', a, process.env.CUSTOM_ENV) 4 | -------------------------------------------------------------------------------- /src/config/module-alias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/src/config/module-alias.ts -------------------------------------------------------------------------------- /src/core/types/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/core/use-cases/a.ts: -------------------------------------------------------------------------------- 1 | export const a = 1 2 | -------------------------------------------------------------------------------- /src/core/use-cases/usecase.test.ts: -------------------------------------------------------------------------------- 1 | it('Test usecase', () => { 2 | expect(1).toBe(1) 3 | }) 4 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/ports/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/ports/test.integration.ts: -------------------------------------------------------------------------------- 1 | it('Test', () => { 2 | const a: number = 1 3 | expect(a).toBe(1) 4 | }) 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fdaciuk/nodejs-ports-adapters-fp/HEAD/yarn.lock --------------------------------------------------------------------------------