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

Feat(contracts-orchestrator): initialize the contracts orchestrator plugin #241

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const commonDependencyCruiserConfig = require('../../commonConfiguration/dependency-cruiser.config');

module.exports = commonDependencyCruiserConfig({ path: './src' });
1 change: 1 addition & 0 deletions packages/serverless-contracts-orchestrator/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
6 changes: 6 additions & 0 deletions packages/serverless-contracts-orchestrator/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
};
2 changes: 2 additions & 0 deletions packages/serverless-contracts-orchestrator/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const baseConfig = require('../../.lintstagedrc');
module.exports = baseConfig;
1 change: 1 addition & 0 deletions packages/serverless-contracts-orchestrator/.vscode
19 changes: 19 additions & 0 deletions packages/serverless-contracts-orchestrator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# @swarmion/serverless-orchestrator

Orchestrate safe deployment of all your Serverless microservices.

This package is part of the [Swarmion](https://www.swarmion.dev) project. See its documentation for more insights.

## Installation

```bash
npm install @swarmion/serverless-orchestrator
```

or if using yarn

```bash
yarn add @swarmion/serverless-orchestrator
```

Check out [the docs](https://www.swarmion.dev/docs/contracts/orchestrator) for more info.
3 changes: 3 additions & 0 deletions packages/serverless-contracts-orchestrator/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const commonBabelConfig = require('../../commonConfiguration/babel.config');

module.exports = commonBabelConfig();
3 changes: 3 additions & 0 deletions packages/serverless-contracts-orchestrator/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { jestConfig } from '@swarmion/configuration';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have switched to vitest, can use its config?


export default jestConfig;
87 changes: 87 additions & 0 deletions packages/serverless-contracts-orchestrator/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"name": "@swarmion/serverless-orchestrator",
"description": "Orchestrate safe deployment of your Serverless microservices.",
"version": "0.9.6",
"author": "guillaumeduboc",
"license": "MIT",
"homepage": "https://www.swarmion.dev",
"bugs": "https://github.com/swarmion/swarmion/issues",
"repository": "swarmion/swarmion.git",
"keywords": [
"Contracts",
"Serverless",
"Typescript"
],
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"files": [
"dist"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"scripts": {
"lint-fix": "yarn linter-base-config --fix",
"lint-fix-all": "yarn lint-fix .",
"linter-base-config": "eslint --ext=js,ts",
"package": "rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types",
"package-cjs": "NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps",
"package-esm": "NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps",
"package-types": "ttsc -p tsconfig.build.json",
"test": "yarn test-linter && yarn test-type && yarn test-unit && yarn test-circular",
"test-circular": "yarn depcruise --validate .dependency-cruiser.js .",
"test-linter": "yarn linter-base-config .",
"test-type": "tsc --noEmit --emitDeclarationOnly false",
"test-unit": "jest --runInBand --collectCoverage --logHeapUsage --passWithNoTests",
"transpile": "babel src --extensions .ts --quiet",
"watch": "rm -rf dist && concurrently 'yarn:package-* --watch'"
},
"bin": "./dist/cjs/index.js",
"dependencies": {
"glob": "^8.0.3",
"graphviz": "^0.0.9",
"json-schema-diff": "^0.17.1"
},
"devDependencies": {
"@babel/cli": "^7.18.9",
"@babel/core": "^7.18.9",
"@babel/plugin-transform-runtime": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/preset-typescript": "^7.18.6",
"@swarmion/configuration": "^0.9.6",
"@types/glob": "^7.2.0",
"@types/graphviz": "^0.0.34",
"@types/node": "^18.6.3",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@zerollup/ts-transform-paths": "^1.7.18",
"babel-plugin-module-resolver": "^4.1.0",
"concurrently": "^7.3.0",
"dependency-cruiser": "^11.14.0",
"eslint": "^8.20.0",
"eslint-plugin-jest": "^26.7.0",
"jest": "^27.5.1",
"json-schema-to-ts": "^2.5.4",
"prettier": "^2.7.1",
"ts-jest": "^27.1.5",
"ts-node": "^10.9.1",
"ttypescript": "^1.5.13",
"typescript": "^4.7.4"
},
"nx": {
"targets": {
"package": {
"outputs": [
"packages/serverless-contracts-orchestrator/dist"
]
}
}
},
"peerDependencies": {
"@babel/runtime": "^7.18.9",
"@swarmion/serverless-plugin": "^0.9.6",
"nx": "^14.5.1"
}
}
6 changes: 6 additions & 0 deletions packages/serverless-contracts-orchestrator/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"root": "packages/serverless-orchestrator",
"projectType": "library",
"tags": [],
"implicitDependencies": []
}
Loading