@leancodepl/nx-plugins 10.0.0 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/package.json +17 -20
- package/src/contracts.js +55 -0
- package/src/index.js +4 -0
- package/src/intl.js +93 -0
- package/src/proxy.js +60 -0
- package/src/publish.js +76 -0
- package/dist/contracts.cjs +0 -1
- package/dist/contracts.d.ts +0 -6
- package/dist/contracts.d.ts.map +0 -1
- package/dist/contracts.js +0 -32
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -8
- package/dist/intl.cjs +0 -1
- package/dist/intl.d.ts +0 -10
- package/dist/intl.d.ts.map +0 -1
- package/dist/intl.js +0 -47
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -6
- package/dist/proxy.d.ts.map +0 -1
- package/dist/proxy.js +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.1.1](https://github.com/leancodepl/js_corelibrary/compare/v10.1.0...v10.1.1) (2026-02-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @leancodepl/nx-plugins
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
15
|
+
# [10.1.0](https://github.com/leancodepl/js_corelibrary/compare/v10.0.2...v10.1.0) (2026-02-16)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @leancodepl/nx-plugins
|
|
18
|
+
|
|
19
|
+
# Change Log
|
|
20
|
+
|
|
21
|
+
All notable changes to this project will be documented in this file. See
|
|
22
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
23
|
+
|
|
24
|
+
## [10.0.2](https://github.com/leancodepl/js_corelibrary/compare/v10.0.1...v10.0.2) (2026-02-13)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @leancodepl/nx-plugins
|
|
27
|
+
|
|
28
|
+
# Change Log
|
|
29
|
+
|
|
30
|
+
All notable changes to this project will be documented in this file. See
|
|
31
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
32
|
+
|
|
33
|
+
## [10.0.1](https://github.com/leancodepl/js_corelibrary/compare/v10.0.0...v10.0.1) (2026-02-13)
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- move publish targets to nx plugin
|
|
38
|
+
([aa68e33](https://github.com/leancodepl/js_corelibrary/commit/aa68e33991cd9ce7af3dab3f10f1d0a8030b4d28))
|
|
39
|
+
- omit building nx plugins with vite and move to js
|
|
40
|
+
([560914c](https://github.com/leancodepl/js_corelibrary/commit/560914c6ef7569c260a319d9823faee69434b541))
|
|
41
|
+
|
|
42
|
+
# Change Log
|
|
43
|
+
|
|
44
|
+
All notable changes to this project will be documented in this file. See
|
|
45
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
46
|
+
|
|
6
47
|
# [10.0.0](https://github.com/leancodepl/js_corelibrary/compare/v9.7.4...v10.0.0) (2026-02-11)
|
|
7
48
|
|
|
8
49
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leancodepl/nx-plugins",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
6
|
+
"main": "src/index.js",
|
|
9
7
|
"exports": {
|
|
10
8
|
"./package.json": "./package.json",
|
|
11
9
|
".": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"default": "./dist/index.js"
|
|
10
|
+
"import": "./src/index.js",
|
|
11
|
+
"default": "./src/index.js"
|
|
15
12
|
},
|
|
16
13
|
"./intl": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"default": "./dist/intl.js"
|
|
14
|
+
"import": "./src/intl.js",
|
|
15
|
+
"default": "./src/intl.js"
|
|
20
16
|
},
|
|
21
17
|
"./proxy": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"default": "./dist/proxy.js"
|
|
18
|
+
"import": "./src/proxy.js",
|
|
19
|
+
"default": "./src/proxy.js"
|
|
25
20
|
},
|
|
26
21
|
"./contracts": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
22
|
+
"import": "./src/contracts.js",
|
|
23
|
+
"default": "./src/contracts.js"
|
|
24
|
+
},
|
|
25
|
+
"./publish": {
|
|
26
|
+
"import": "./src/publish.js",
|
|
27
|
+
"default": "./src/publish.js"
|
|
30
28
|
}
|
|
31
29
|
},
|
|
32
30
|
"publishConfig": {
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
"nx-plugin",
|
|
52
50
|
"generators",
|
|
53
51
|
"executors",
|
|
54
|
-
"
|
|
52
|
+
"javascript",
|
|
55
53
|
"leancode"
|
|
56
54
|
],
|
|
57
55
|
"author": {
|
|
@@ -63,8 +61,7 @@
|
|
|
63
61
|
"tslib": "^2.8.1"
|
|
64
62
|
},
|
|
65
63
|
"files": [
|
|
66
|
-
"
|
|
67
|
-
"CHANGELOG.md"
|
|
68
|
-
"!**/*.tsbuildinfo"
|
|
64
|
+
"src",
|
|
65
|
+
"CHANGELOG.md"
|
|
69
66
|
]
|
|
70
67
|
}
|
package/src/contracts.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createNodesFromFiles,
|
|
3
|
+
joinPathFragments,
|
|
4
|
+
} from "@nx/devkit"
|
|
5
|
+
import { dirname } from "node:path"
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {object} ContractsPluginOptions
|
|
9
|
+
* @property {string} [targetName]
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const contractsConfigGlob = "**/contractsgenerator-typescript.config.js"
|
|
13
|
+
|
|
14
|
+
export const name = "@leancodepl/nx-plugins/contracts"
|
|
15
|
+
|
|
16
|
+
/** @type {import("@nx/devkit").CreateNodesV2<ContractsPluginOptions>} */
|
|
17
|
+
export const createNodesV2 = [
|
|
18
|
+
contractsConfigGlob,
|
|
19
|
+
async (configFiles, options, context) =>
|
|
20
|
+
createNodesFromFiles(
|
|
21
|
+
(configFile, options, context) => createNodesInternal(configFile, options ?? {}, context),
|
|
22
|
+
configFiles,
|
|
23
|
+
options,
|
|
24
|
+
context,
|
|
25
|
+
),
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} configFilePath
|
|
30
|
+
* @param {ContractsPluginOptions} options
|
|
31
|
+
* @param {import("@nx/devkit").CreateNodesContextV2} _context
|
|
32
|
+
*/
|
|
33
|
+
function createNodesInternal(configFilePath, options, _context) {
|
|
34
|
+
const projectRoot = dirname(configFilePath)
|
|
35
|
+
const targetName = options.targetName ?? "contracts"
|
|
36
|
+
|
|
37
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
38
|
+
const contractsTarget = {
|
|
39
|
+
command: "npx @leancodepl/contractsgenerator-typescript --no-install",
|
|
40
|
+
options: {
|
|
41
|
+
cwd: joinPathFragments("{projectRoot}"),
|
|
42
|
+
},
|
|
43
|
+
cache: true,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
projects: {
|
|
48
|
+
[projectRoot]: {
|
|
49
|
+
targets: {
|
|
50
|
+
[targetName]: contractsTarget,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
}
|
package/src/index.js
ADDED
package/src/intl.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createNodesFromFiles,
|
|
3
|
+
joinPathFragments,
|
|
4
|
+
} from "@nx/devkit"
|
|
5
|
+
import { dirname } from "node:path"
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {object} IntlPluginOptions
|
|
9
|
+
* @property {string} [localTargetName]
|
|
10
|
+
* @property {string} [uploadTargetName]
|
|
11
|
+
* @property {string} [downloadTargetName]
|
|
12
|
+
* @property {string} [syncTargetName]
|
|
13
|
+
* @property {string} [diffTargetName]
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const intlConfigGlob = "**/intl.config.{js,cjs}"
|
|
17
|
+
|
|
18
|
+
export const name = "@leancodepl/nx-plugins/intl"
|
|
19
|
+
|
|
20
|
+
/** @type {import("@nx/devkit").CreateNodesV2<IntlPluginOptions>} */
|
|
21
|
+
export const createNodesV2 = [
|
|
22
|
+
intlConfigGlob,
|
|
23
|
+
async (configFiles, options, context) =>
|
|
24
|
+
createNodesFromFiles(
|
|
25
|
+
(configFile, options, context) => createNodesInternal(configFile, options ?? {}, context),
|
|
26
|
+
configFiles,
|
|
27
|
+
options,
|
|
28
|
+
context,
|
|
29
|
+
),
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} configFilePath
|
|
34
|
+
* @param {IntlPluginOptions} options
|
|
35
|
+
* @param {import("@nx/devkit").CreateNodesContextV2} _context
|
|
36
|
+
*/
|
|
37
|
+
function createNodesInternal(configFilePath, options, _context) {
|
|
38
|
+
const projectRoot = dirname(configFilePath)
|
|
39
|
+
|
|
40
|
+
const localTargetName = options.localTargetName ?? "intl"
|
|
41
|
+
const uploadTargetName = options.uploadTargetName ?? "intl-upload"
|
|
42
|
+
const downloadTargetName = options.downloadTargetName ?? "intl-download"
|
|
43
|
+
const syncTargetName = options.syncTargetName ?? "intl-sync"
|
|
44
|
+
const diffTargetName = options.diffTargetName ?? "intl-diff"
|
|
45
|
+
|
|
46
|
+
const baseOptions = {
|
|
47
|
+
cwd: joinPathFragments("{projectRoot}"),
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
51
|
+
const localTarget = {
|
|
52
|
+
command: "npx @leancodepl/intl local",
|
|
53
|
+
options: baseOptions,
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
57
|
+
const uploadTarget = {
|
|
58
|
+
command: "npx @leancodepl/intl upload",
|
|
59
|
+
options: baseOptions,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
63
|
+
const downloadTarget = {
|
|
64
|
+
command: "npx @leancodepl/intl download",
|
|
65
|
+
options: baseOptions,
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
69
|
+
const syncTarget = {
|
|
70
|
+
command: "npx @leancodepl/intl sync",
|
|
71
|
+
options: baseOptions,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
75
|
+
const diffTarget = {
|
|
76
|
+
command: "npx @leancodepl/intl diff",
|
|
77
|
+
options: baseOptions,
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
projects: {
|
|
82
|
+
[projectRoot]: {
|
|
83
|
+
targets: {
|
|
84
|
+
[localTargetName]: localTarget,
|
|
85
|
+
[uploadTargetName]: uploadTarget,
|
|
86
|
+
[downloadTargetName]: downloadTarget,
|
|
87
|
+
[syncTargetName]: syncTarget,
|
|
88
|
+
[diffTargetName]: diffTarget,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/proxy.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createNodesFromFiles } from "@nx/devkit"
|
|
2
|
+
import { dirname } from "node:path"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @typedef {object} ProxyPluginOptions
|
|
6
|
+
* @property {string} [targetName]
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const dockerComposeGlob = "**/dev/docker-compose.yml"
|
|
10
|
+
|
|
11
|
+
export const name = "@leancodepl/nx-plugins/proxy"
|
|
12
|
+
|
|
13
|
+
/** @type {import("@nx/devkit").CreateNodesV2<ProxyPluginOptions>} */
|
|
14
|
+
export const createNodesV2 = [
|
|
15
|
+
dockerComposeGlob,
|
|
16
|
+
async (configFiles, options, context) =>
|
|
17
|
+
createNodesFromFiles(
|
|
18
|
+
(configFile, options) => createNodesInternal(configFile, options ?? {}),
|
|
19
|
+
configFiles,
|
|
20
|
+
options,
|
|
21
|
+
context,
|
|
22
|
+
),
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {string} configFilePath
|
|
27
|
+
* @param {ProxyPluginOptions} options
|
|
28
|
+
*/
|
|
29
|
+
function createNodesInternal(configFilePath, options) {
|
|
30
|
+
const dockerComposeDir = dirname(configFilePath)
|
|
31
|
+
const targetName = options.targetName ?? "proxy"
|
|
32
|
+
|
|
33
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
34
|
+
const proxyTarget = {
|
|
35
|
+
executor: "nx:run-commands",
|
|
36
|
+
defaultConfiguration: "up",
|
|
37
|
+
options: {
|
|
38
|
+
cwd: dockerComposeDir,
|
|
39
|
+
},
|
|
40
|
+
configurations: {
|
|
41
|
+
up: {
|
|
42
|
+
command: "docker compose up proxy",
|
|
43
|
+
},
|
|
44
|
+
rebuild: {
|
|
45
|
+
command:
|
|
46
|
+
"az acr login -n leancode && docker pull leancode.azurecr.io/traefik-proxy && docker compose build --no-cache proxy",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
projects: {
|
|
53
|
+
"": {
|
|
54
|
+
targets: {
|
|
55
|
+
[targetName]: proxyTarget,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
}
|
package/src/publish.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createNodesFromFiles,
|
|
3
|
+
joinPathFragments,
|
|
4
|
+
} from "@nx/devkit"
|
|
5
|
+
import { readFileSync } from "node:fs"
|
|
6
|
+
import { dirname, join } from "node:path"
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @typedef {object} PublishPluginOptions
|
|
10
|
+
* @property {string} [targetName]
|
|
11
|
+
* @property {string} [publishScriptPath]
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const packageJsonGlob = "**/package.json"
|
|
15
|
+
|
|
16
|
+
export const name = "@leancodepl/nx-plugins/publish"
|
|
17
|
+
|
|
18
|
+
/** @type {import("@nx/devkit").CreateNodesV2<PublishPluginOptions>} */
|
|
19
|
+
export const createNodesV2 = [
|
|
20
|
+
packageJsonGlob,
|
|
21
|
+
async (configFiles, options, context) =>
|
|
22
|
+
createNodesFromFiles(
|
|
23
|
+
(configFile, opts, ctx) => createNodesInternal(configFile, opts ?? {}, ctx),
|
|
24
|
+
configFiles,
|
|
25
|
+
options,
|
|
26
|
+
context,
|
|
27
|
+
),
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} packageJsonPath
|
|
32
|
+
* @param {PublishPluginOptions} options
|
|
33
|
+
* @param {import("@nx/devkit").CreateNodesContextV2} context
|
|
34
|
+
*/
|
|
35
|
+
function createNodesInternal(packageJsonPath, options, context) {
|
|
36
|
+
const projectRoot = dirname(packageJsonPath)
|
|
37
|
+
const packageJsonFullPath = join(context.workspaceRoot, packageJsonPath)
|
|
38
|
+
|
|
39
|
+
let pkg
|
|
40
|
+
try {
|
|
41
|
+
pkg = JSON.parse(readFileSync(packageJsonFullPath, "utf-8"))
|
|
42
|
+
} catch {
|
|
43
|
+
return { projects: {} }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (!pkg.files || !Array.isArray(pkg.files) || pkg.files.length === 0) {
|
|
47
|
+
return { projects: {} }
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const packageName = pkg.name
|
|
51
|
+
if (!packageName || typeof packageName !== "string") {
|
|
52
|
+
return { projects: {} }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const targetName = options.targetName ?? "publish"
|
|
56
|
+
const publishScriptPath = options.publishScriptPath ?? "tools/scripts/publish.mjs"
|
|
57
|
+
|
|
58
|
+
/** @type {import("@nx/devkit").TargetConfiguration} */
|
|
59
|
+
const publishTarget = {
|
|
60
|
+
command: `node ${publishScriptPath} ${packageName} {args.registry} {args.ver} {args.tag}`,
|
|
61
|
+
options: {
|
|
62
|
+
cwd: joinPathFragments("{workspaceRoot}"),
|
|
63
|
+
},
|
|
64
|
+
dependsOn: ["build"],
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
projects: {
|
|
69
|
+
[projectRoot]: {
|
|
70
|
+
targets: {
|
|
71
|
+
[targetName]: publishTarget,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
}
|
|
76
|
+
}
|
package/dist/contracts.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@nx/devkit"),s=require("node:path"),i="**/contractsgenerator-typescript.config.js",d=[i,async(t,e,r)=>a.createNodesFromFiles((o,c,n)=>p(o,c??{}),t,e,r)];function p(t,e,r){const o=s.dirname(t),c=e.targetName??"contracts",n={command:"npx @leancodepl/contractsgenerator-typescript --no-install",options:{cwd:a.joinPathFragments("{projectRoot}")},cache:!0};return{projects:{[o]:{targets:{[c]:n}}}}}exports.createNodesV2=d;
|
package/dist/contracts.d.ts
DELETED
package/dist/contracts.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAGd,MAAM,YAAY,CAAA;AAKnB,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,sBAAsB,CAS/D,CAAA"}
|
package/dist/contracts.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createNodesFromFiles as a, joinPathFragments as s } from "@nx/devkit";
|
|
2
|
-
import { dirname as p } from "node:path";
|
|
3
|
-
const i = "**/contractsgenerator-typescript.config.js", l = [
|
|
4
|
-
i,
|
|
5
|
-
async (t, o, r) => a(
|
|
6
|
-
(e, c, n) => m(e, c ?? {}),
|
|
7
|
-
t,
|
|
8
|
-
o,
|
|
9
|
-
r
|
|
10
|
-
)
|
|
11
|
-
];
|
|
12
|
-
function m(t, o, r) {
|
|
13
|
-
const e = p(t), c = o.targetName ?? "contracts", n = {
|
|
14
|
-
command: "npx @leancodepl/contractsgenerator-typescript --no-install",
|
|
15
|
-
options: {
|
|
16
|
-
cwd: s("{projectRoot}")
|
|
17
|
-
},
|
|
18
|
-
cache: !0
|
|
19
|
-
};
|
|
20
|
-
return {
|
|
21
|
-
projects: {
|
|
22
|
-
[e]: {
|
|
23
|
-
targets: {
|
|
24
|
-
[c]: n
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
l as createNodesV2
|
|
32
|
-
};
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./contracts.cjs"),t=require("./intl.cjs"),r=require("./proxy.cjs");exports.contractsPlugin=e.createNodesV2;exports.intlPlugin=t.createNodesV2;exports.proxyPlugin=r.createNodesV2;
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { createNodesV2 as contractsPlugin } from './contracts';
|
|
2
|
-
export type { ContractsPluginOptions } from './contracts';
|
|
3
|
-
export { createNodesV2 as intlPlugin } from './intl';
|
|
4
|
-
export type { IntlPluginOptions } from './intl';
|
|
5
|
-
export { createNodesV2 as proxyPlugin } from './proxy';
|
|
6
|
-
export type { ProxyPluginOptions } from './proxy';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
DELETED
package/dist/intl.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@nx/devkit"),N=require("node:path"),u="**/intl.config.{js,cjs}",y=[u,async(o,t,c)=>d.createNodesFromFiles((n,a,l)=>j(n,a??{}),o,t,c)];function j(o,t,c){const n=N.dirname(o),a=t.localTargetName??"intl",l=t.uploadTargetName??"intl-upload",r=t.downloadTargetName??"intl-download",s=t.syncTargetName??"intl-sync",i=t.diffTargetName??"intl-diff",e={cwd:d.joinPathFragments("{projectRoot}")},m={command:"npx @leancodepl/intl local",options:e},p={command:"npx @leancodepl/intl upload",options:e},g={command:"npx @leancodepl/intl download",options:e},T={command:"npx @leancodepl/intl sync",options:e},f={command:"npx @leancodepl/intl diff",options:e};return{projects:{[n]:{targets:{[a]:m,[l]:p,[r]:g,[s]:T,[i]:f}}}}}exports.createNodesV2=y;
|
package/dist/intl.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CreateNodesV2 } from '@nx/devkit';
|
|
2
|
-
export interface IntlPluginOptions {
|
|
3
|
-
localTargetName?: string;
|
|
4
|
-
uploadTargetName?: string;
|
|
5
|
-
downloadTargetName?: string;
|
|
6
|
-
syncTargetName?: string;
|
|
7
|
-
diffTargetName?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const createNodesV2: CreateNodesV2<IntlPluginOptions>;
|
|
10
|
-
//# sourceMappingURL=intl.d.ts.map
|
package/dist/intl.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intl.d.ts","sourceRoot":"","sources":["../src/intl.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAGd,MAAM,YAAY,CAAA;AAKnB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAS1D,CAAA"}
|
package/dist/intl.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createNodesFromFiles as T, joinPathFragments as N } from "@nx/devkit";
|
|
2
|
-
import { dirname as x } from "node:path";
|
|
3
|
-
const u = "**/intl.config.{js,cjs}", F = [
|
|
4
|
-
u,
|
|
5
|
-
async (t, o, c) => T(
|
|
6
|
-
(a, e, l) => j(a, e ?? {}),
|
|
7
|
-
t,
|
|
8
|
-
o,
|
|
9
|
-
c
|
|
10
|
-
)
|
|
11
|
-
];
|
|
12
|
-
function j(t, o, c) {
|
|
13
|
-
const a = x(t), e = o.localTargetName ?? "intl", l = o.uploadTargetName ?? "intl-upload", d = o.downloadTargetName ?? "intl-download", r = o.syncTargetName ?? "intl-sync", s = o.diffTargetName ?? "intl-diff", n = {
|
|
14
|
-
cwd: N("{projectRoot}")
|
|
15
|
-
}, i = {
|
|
16
|
-
command: "npx @leancodepl/intl local",
|
|
17
|
-
options: n
|
|
18
|
-
}, m = {
|
|
19
|
-
command: "npx @leancodepl/intl upload",
|
|
20
|
-
options: n
|
|
21
|
-
}, p = {
|
|
22
|
-
command: "npx @leancodepl/intl download",
|
|
23
|
-
options: n
|
|
24
|
-
}, g = {
|
|
25
|
-
command: "npx @leancodepl/intl sync",
|
|
26
|
-
options: n
|
|
27
|
-
}, f = {
|
|
28
|
-
command: "npx @leancodepl/intl diff",
|
|
29
|
-
options: n
|
|
30
|
-
};
|
|
31
|
-
return {
|
|
32
|
-
projects: {
|
|
33
|
-
[a]: {
|
|
34
|
-
targets: {
|
|
35
|
-
[e]: i,
|
|
36
|
-
[l]: m,
|
|
37
|
-
[d]: p,
|
|
38
|
-
[r]: g,
|
|
39
|
-
[s]: f
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
F as createNodesV2
|
|
47
|
-
};
|
package/dist/proxy.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@nx/devkit"),a=require("node:path"),d="**/dev/docker-compose.yml",s=[d,async(e,o,r)=>n.createNodesFromFiles((c,t)=>i(c,t??{}),e,o,r)];function i(e,o){const r=a.dirname(e),c=o.targetName??"proxy",t={executor:"nx:run-commands",defaultConfiguration:"up",options:{cwd:r},configurations:{up:{command:"docker compose up proxy"},rebuild:{command:"az acr login -n leancode && docker pull leancode.azurecr.io/traefik-proxy && docker compose build --no-cache proxy"}}};return{projects:{"":{targets:{[c]:t}}}}}exports.createNodesV2=s;
|
package/dist/proxy.d.ts
DELETED
package/dist/proxy.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAuB,MAAM,YAAY,CAAA;AAKrF,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAS3D,CAAA"}
|
package/dist/proxy.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createNodesFromFiles as n } from "@nx/devkit";
|
|
2
|
-
import { dirname as a } from "node:path";
|
|
3
|
-
const d = "**/dev/docker-compose.yml", i = [
|
|
4
|
-
d,
|
|
5
|
-
async (o, e, r) => n(
|
|
6
|
-
(c, t) => m(c, t ?? {}),
|
|
7
|
-
o,
|
|
8
|
-
e,
|
|
9
|
-
r
|
|
10
|
-
)
|
|
11
|
-
];
|
|
12
|
-
function m(o, e) {
|
|
13
|
-
const r = a(o), c = e.targetName ?? "proxy", t = {
|
|
14
|
-
executor: "nx:run-commands",
|
|
15
|
-
defaultConfiguration: "up",
|
|
16
|
-
options: {
|
|
17
|
-
cwd: r
|
|
18
|
-
},
|
|
19
|
-
configurations: {
|
|
20
|
-
up: {
|
|
21
|
-
command: "docker compose up proxy"
|
|
22
|
-
},
|
|
23
|
-
rebuild: {
|
|
24
|
-
command: "az acr login -n leancode && docker pull leancode.azurecr.io/traefik-proxy && docker compose build --no-cache proxy"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return {
|
|
29
|
-
projects: {
|
|
30
|
-
"": {
|
|
31
|
-
targets: {
|
|
32
|
-
[c]: t
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
i as createNodesV2
|
|
40
|
-
};
|