chore(nx): create empty project

This commit is contained in:
Elian Doran 2025-05-03 01:20:47 +03:00
parent 5dc060f49c
commit 24224d2c72
No known key found for this signature in database
10 changed files with 126 additions and 0 deletions

View 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$"]
}

View 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.

View 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'))
}
}
];

View 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"
}
}

View File

@ -0,0 +1 @@
export * from './lib/express-partial-content.js';

View File

@ -0,0 +1,3 @@
export function expressPartialContent(): string {
return 'express-partial-content';
}

View File

@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}

View 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
View File

@ -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':

View File

@ -29,6 +29,9 @@
}, },
{ {
"path": "./apps/edit-docs" "path": "./apps/edit-docs"
},
{
"path": "./packages/express-partial-content"
} }
] ]
} }