65 lines
1.8 KiB
JSON
65 lines
1.8 KiB
JSON
{
|
|
"name": "remark-callouts",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/remark-callouts/src",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"lint": {
|
|
"executor": "@nrwl/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["packages/remark-callouts/**/*.ts"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "TS_NODE_PROJECT='packages/remark-callouts/tsconfig.spec.json' mocha --config packages/remark-callouts/.mocharc.yaml packages/remark-callouts/test/remark-callouts.spec.ts"
|
|
}
|
|
},
|
|
"build": {
|
|
"executor": "@nrwl/web:rollup",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"entryFile": "packages/remark-callouts/src/index.ts",
|
|
"outputPath": "packages/remark-callouts/dist",
|
|
"compiler": "babel",
|
|
"tsConfig": "packages/remark-callouts/tsconfig.lib.json",
|
|
"project": "packages/remark-callouts/package.json",
|
|
"format": ["esm", "cjs"],
|
|
"extractCss": true,
|
|
"generateExportsField": true,
|
|
"assets": [
|
|
{
|
|
"glob": "packages/remark-callouts/README.md",
|
|
"input": ".",
|
|
"output": "."
|
|
},
|
|
{
|
|
"glob": "packages/remark-callouts/styles.css",
|
|
"input": ".",
|
|
"output": "."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"publish:dry": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["npm publish --dry-run"],
|
|
"parallel": false,
|
|
"cwd": "packages/remark-callouts/dist"
|
|
}
|
|
},
|
|
"publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": ["npm publish"],
|
|
"parallel": false,
|
|
"cwd": "packages/remark-callouts/dist"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|