Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: common updated (security issues fixed) #953

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions packages/common/.eslintrc.json
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"
}
}
]
}
109 changes: 0 additions & 109 deletions packages/common/.gitignore

This file was deleted.

74 changes: 37 additions & 37 deletions packages/common/README.md
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/common)
![License](https://img.shields.io/npm/v/@devon4ts_node/common)
![License](https://img.shields.io/librariesio/release/npm/@devon4ts_node/common)
![License](https://img.shields.io/npm/dt/@devon4ts_node/common)
## devon4ts_node Common
This package contains the devon4ts_node common libraries. Those libraries will help you build devon4ts_node applications.
## 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 standardized way based on established best-practices.

![License](https://img.shields.io/npm/l/@devon4ts_node/common)
![License](https://img.shields.io/npm/v/@devon4ts_node/common)
![License](https://img.shields.io/librariesio/release/npm/@devon4ts_node/common)
![License](https://img.shields.io/npm/dt/@devon4ts_node/common)

## devon4ts_node Common

This package contains the devon4ts_node common libraries. Those libraries will help you build devon4ts_node applications.

## 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.
10 changes: 10 additions & 0 deletions packages/common/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable */
export default {
displayName: 'common',
preset: '../../jest.preset.js',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/packages/common',
};
85 changes: 46 additions & 39 deletions packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
{
"name": "@devon4ts_node/common",
"version": "5.0.1",
"description": "devon4ts_node common library.",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"prepublish:npm": "npm run build",
"publish:npm": "npm publish --access public",
"prepublish:next": "npm run build",
"publish:next": "npm publish --access public --tag next",
"test": "jest --passWithNoTests",
"format": "prettier --write \"**/*.ts\"",
"lint": "eslint serializer/**/*.ts --fix"
},
"keywords": [
"nestjs",
"devon4ts_node",
"devonfw"
],
"author": {
"name": "Capgemini",
"url": "https://www.capgemini.com/"
},
"contributors": [
"Dario Rodriguez Gonzalez <dario.rodriguez-gonzalez@capgemini.com>"
],
"license": "Apache-2.0",
"peerDependencies": {
"@nestjs/common": "^9.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/devonfw/devon4ts_node.git"
},
"bugs": {
"url": "https://github.com/devonfw/devon4ts_node/issues"
},
"homepage": "https://github.com/devonfw/devon4ts_node",
"gitHead": "1f351bcc0fbad70f9c25fa73a398a538ca0c8e55"
"name": "@devon4ts_node/common",
"version": "5.0.1",
"type": "commonjs",
"description": "devon4ts_node common library.",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"prepublish:npm": "npm run build",
"publish:npm": "npm publish --access public",
"prepublish:next": "npm run build",
"publish:next": "npm publish --access public --tag next",
"test": "jest --passWithNoTests",
"format": "prettier --write \"**/*.ts\"",
"lint": "eslint serializer/**/*.ts --fix"
},
"dependencies": {
"tslib": "^2.3.0"
},
"keywords": [
"nestjs",
"devon4ts_node",
"devonfw"
],
"author": {
"name": "Capgemini",
"url": "https://www.capgemini.com/"
},
"contributors": [
"Dario Rodriguez Gonzalez <dario.rodriguez-gonzalez@capgemini.com>"
],
"license": "Apache-2.0",
"peerDependencies": {
"@nestjs/common": "^10.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/devonfw/devon4ts_node.git"
},
"bugs": {
"url": "https://github.com/devonfw/devon4ts_node/issues"
},
"homepage": "https://github.com/devonfw/devon4ts_node",
"gitHead": "1f351bcc0fbad70f9c25fa73a398a538ca0c8e55",
"devDependencies": {
"@nx/js": "^17.3.1"
}
}
52 changes: 52 additions & 0 deletions packages/common/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "common",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/common/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/common",
"main": "packages/common/src/index.ts",
"tsConfig": "packages/common/tsconfig.lib.json",
"assets": [
"packages/common/*.md",
{
"input": "./packages/common/src",
"glob": "**/!(*.ts)",
"output": "./src"
},
{
"input": "./packages/common/src",
"glob": "**/*.d.ts",
"output": "./src"
},
{
"input": "./packages/common",
"glob": "generators.json",
"output": "."
},
{
"input": "./packages/common",
"glob": "executors.json",
"output": "."
}
]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/common/jest.config.ts"
}
}
},
"tags": []
}
File renamed without changes.
13 changes: 13 additions & 0 deletions packages/common/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"noImplicitThis": true,
},
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"dist",
"./**/*.spec.ts",
"test"
]
}

Loading
Loading