Skip to content

Commit

Permalink
feat(docx-to-vfile): setup auto versioning/deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Mar 5, 2023
1 parent 537e32c commit d643888
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 224 deletions.
10 changes: 5 additions & 5 deletions libs/reoff/docx-to-vfile/.swcrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"target": "es2020",
"target": "es2022",
"parser": {
"dts": true,
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
Expand All @@ -17,16 +18,15 @@
},
"module": {
"type": "es6",
"strict": true,
"noInterop": true
"strict": true
},
"sourceMaps": true,
"exclude": [
"jest.config.ts",
".*.spec.tsx?$",
".*.test.tsx?$",
"./src/jest-setup.ts$",
"./**/jest-setup.ts$",
".*.js$"
]
],
"isModule": true
}
48 changes: 44 additions & 4 deletions libs/reoff/docx-to-vfile/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,36 @@
"passWithNoTests": true
}
},
"tsc": {
"executor": "@nrwl/js:tsc",
"options": {
"tsConfig": "libs/reoff/docx-to-vfile/tsconfig.publish.json",
"clean": false,
"outputPath": "dist/libs/reoff/docx-to-vfile",
"main": "libs/reoff/docx-to-vfile/src/index.ts",
"parallel": false
}
},
"build": {
"executor": "@nrwl/js:swc",
"outputs": ["{options.outputPath}"],

"options": {
"outputPath": "dist/libs/reoff/docx-to-vfile",
"tsConfig": "libs/reoff/docx-to-vfile/tsconfig.lib.json",
"packageJson": "libs/reoff/docx-to-vfile/package.json",
"main": "libs/reoff/docx-to-vfile/src/index.ts",
"assets": ["libs/reoff/docx-to-vfile/*.md"],
"platform": "node",
"updateBuildableProjectDepsInPackageJson": true,
"clean": true,
"buildableProjectDepsInPackageJsonType": "dependencies"
"buildableProjectDepsInPackageJsonType": "dependencies",
"thirdParty": false,
"format": ["esm"]
},
"configurations": {
"cjs": {
"swcrc": "libs/reoff/docx-to-vfile/.cjs.swcrc",
"clean": false
}
},
"dependsOn": [
{
Expand All @@ -50,7 +68,29 @@
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
"access": "public",

"dryRun": "${dryRun}"
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"postTargets": ["docx-to-vfile:npm", "docx-to-vfile:github"]
}
},
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "${tag}",
"notes": "${notes}"
}
},
"npm": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"dryRun": "${dryRun}"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/docx-to-vfile/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//export * from './lib/get-xml-data'
export * from './lib/docx-to-vfile-unzipit'
export * from './lib/docx-to-vfile-unzipit.js'
15 changes: 0 additions & 15 deletions libs/reoff/docx-to-vfile/src/lib/docx-to-vfile-yauzl.spec.ts

This file was deleted.

32 changes: 0 additions & 32 deletions libs/reoff/docx-to-vfile/src/lib/docx-to-vfile-yauzl.ts

This file was deleted.

13 changes: 0 additions & 13 deletions libs/reoff/docx-to-vfile/src/lib/docx-to-vfile.spec.ts

This file was deleted.

20 changes: 0 additions & 20 deletions libs/reoff/docx-to-vfile/src/lib/docx-to-vfile.ts

This file was deleted.

134 changes: 0 additions & 134 deletions libs/reoff/docx-to-vfile/src/lib/get-xml-data.ts

This file was deleted.

0 comments on commit d643888

Please sign in to comment.