mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(nx): create empty project
This commit is contained in:
parent
5dc060f49c
commit
24224d2c72
22
packages/express-partial-content/.swcrc
Normal file
22
packages/express-partial-content/.swcrc
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"jsc": {
|
||||||
|
"target": "es2017",
|
||||||
|
"parser": {
|
||||||
|
"syntax": "typescript",
|
||||||
|
"decorators": true,
|
||||||
|
"dynamicImport": true
|
||||||
|
},
|
||||||
|
"transform": {
|
||||||
|
"decoratorMetadata": true,
|
||||||
|
"legacyDecorator": true
|
||||||
|
},
|
||||||
|
"keepClassNames": true,
|
||||||
|
"externalHelpers": true,
|
||||||
|
"loose": true
|
||||||
|
},
|
||||||
|
"module": {
|
||||||
|
"type": "commonjs"
|
||||||
|
},
|
||||||
|
"sourceMaps": true,
|
||||||
|
"exclude": ["jest.config.ts",".*\\.spec.tsx?$",".*\\.test.tsx?$","./src/jest-setup.ts$","./**/jest-setup.ts$",".*.js$"]
|
||||||
|
}
|
7
packages/express-partial-content/README.md
Normal file
7
packages/express-partial-content/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# express-partial-content
|
||||||
|
|
||||||
|
This library was generated with [Nx](https://nx.dev).
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Run `nx build express-partial-content` to build the library.
|
23
packages/express-partial-content/eslint.config.mjs
Normal file
23
packages/express-partial-content/eslint.config.mjs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import baseConfig from "../../eslint.config.mjs";
|
||||||
|
|
||||||
|
export default [
|
||||||
|
...baseConfig,
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"**/*.json"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"@nx/dependency-checks": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"ignoredFiles": [
|
||||||
|
"{projectRoot}/eslint.config.{js,cjs,mjs}"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"languageOptions": {
|
||||||
|
"parser": (await import('jsonc-eslint-parser'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
38
packages/express-partial-content/package.json
Normal file
38
packages/express-partial-content/package.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"name": "@triliumnext/express-partial-content",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"private": true,
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"module": "./dist/index.js",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"exports": {
|
||||||
|
"./package.json": "./package.json",
|
||||||
|
".": {
|
||||||
|
"development": "./src/index.ts",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"default": "./dist/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nx": {
|
||||||
|
"name": "express-partial-content",
|
||||||
|
"targets": {
|
||||||
|
"build": {
|
||||||
|
"executor": "@nx/js:swc",
|
||||||
|
"outputs": [
|
||||||
|
"{options.outputPath}"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"outputPath": "packages/express-partial-content/dist",
|
||||||
|
"tsConfig": "packages/express-partial-content/tsconfig.lib.json",
|
||||||
|
"packageJson": "packages/express-partial-content/package.json",
|
||||||
|
"main": "packages/express-partial-content/src/index.ts",
|
||||||
|
"stripLeadingPaths": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"tslib": "^2.3.0"
|
||||||
|
}
|
||||||
|
}
|
1
packages/express-partial-content/src/index.ts
Normal file
1
packages/express-partial-content/src/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './lib/express-partial-content.js';
|
@ -0,0 +1,3 @@
|
|||||||
|
export function expressPartialContent(): string {
|
||||||
|
return 'express-partial-content';
|
||||||
|
}
|
10
packages/express-partial-content/tsconfig.json
Normal file
10
packages/express-partial-content/tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"files": [],
|
||||||
|
"include": [],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "./tsconfig.lib.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
13
packages/express-partial-content/tsconfig.lib.json
Normal file
13
packages/express-partial-content/tsconfig.lib.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "dist",
|
||||||
|
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
||||||
|
"emitDeclarationOnly": false,
|
||||||
|
"types": ["node"]
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.ts"],
|
||||||
|
"references": []
|
||||||
|
}
|
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -777,6 +777,12 @@ importers:
|
|||||||
specifier: ~0.5.11
|
specifier: ~0.5.11
|
||||||
version: 0.5.17
|
version: 0.5.17
|
||||||
|
|
||||||
|
packages/express-partial-content:
|
||||||
|
dependencies:
|
||||||
|
tslib:
|
||||||
|
specifier: ^2.3.0
|
||||||
|
version: 2.8.1
|
||||||
|
|
||||||
packages/turndown-plugin-gfm:
|
packages/turndown-plugin-gfm:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@swc/helpers':
|
'@swc/helpers':
|
||||||
|
@ -29,6 +29,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./apps/edit-docs"
|
"path": "./apps/edit-docs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./packages/express-partial-content"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user