1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-07 16:35:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

feat: services

This commit is contained in:
kaz
2022-02-09 11:48:23 +08:00
parent 6b0e0efcb3
commit 18ca56db10
49 changed files with 11218 additions and 5626 deletions

View File

@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@@ -0,0 +1,11 @@
# services-api
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build services-api` to build the library.
## Running unit tests
Run `nx test services-api` to execute the unit tests via [Jest](https://jestjs.io).

View File

@@ -0,0 +1,14 @@
module.exports = {
displayName: 'services-api',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
transform: {
'^.+\\.[tj]s$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/packages/services-api',
};

View File

@@ -0,0 +1,5 @@
{
"name": "@bitdance/services-api",
"version": "0.0.1",
"type": "commonjs"
}

View File

@@ -0,0 +1,33 @@
{
"root": "packages/services-api",
"sourceRoot": "packages/services-api/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/services-api",
"main": "packages/services-api/src/index.ts",
"tsConfig": "packages/services-api/tsconfig.lib.json",
"assets": ["packages/services-api/*.md"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/services-api/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/services-api"],
"options": {
"jestConfig": "packages/services-api/jest.config.js",
"passWithNoTests": true
}
}
},
"tags": []
}

View File

@@ -0,0 +1 @@
export * from './lib/services-api';

View File

@@ -0,0 +1,7 @@
import { servicesApi } from './services-api';
describe('servicesApi', () => {
it('should work', () => {
expect(servicesApi()).toEqual('services-api');
});
});

View File

@@ -0,0 +1,3 @@
export function servicesApi(): string {
return 'services-api';
}

View File

@@ -0,0 +1,22 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "CommonJS",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"types": []
},
"include": ["**/*.ts"],
"exclude": ["**/*.spec.ts"]
}

View File

@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
}