@contentstack/cli-cm-export-query 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +108 -0
- package/lib/commands/cm/stacks/export-query.d.ts +11 -0
- package/lib/commands/cm/stacks/export-query.js +79 -0
- package/lib/config/export-config.json +1 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/config/index.js +57 -0
- package/lib/config/index.ts +59 -0
- package/lib/core/module-exporter.d.ts +11 -0
- package/lib/core/module-exporter.js +75 -0
- package/lib/core/query-executor.d.ts +17 -0
- package/lib/core/query-executor.js +253 -0
- package/lib/types/index.d.ts +161 -0
- package/lib/types/index.js +2 -0
- package/lib/utils/common-helper.d.ts +1 -0
- package/lib/utils/common-helper.js +12 -0
- package/lib/utils/config-handler.d.ts +2 -0
- package/lib/utils/config-handler.js +37 -0
- package/lib/utils/content-type-helper.d.ts +19 -0
- package/lib/utils/content-type-helper.js +90 -0
- package/lib/utils/dependency-resolver.d.ts +17 -0
- package/lib/utils/dependency-resolver.js +126 -0
- package/lib/utils/file-helper.d.ts +2 -0
- package/lib/utils/file-helper.js +5 -0
- package/lib/utils/index.d.ts +8 -0
- package/lib/utils/index.js +15 -0
- package/lib/utils/logger.d.ts +8 -0
- package/lib/utils/logger.js +158 -0
- package/lib/utils/query-parser.d.ts +9 -0
- package/lib/utils/query-parser.js +60 -0
- package/lib/utils/referenced-asset-handler.d.ts +22 -0
- package/lib/utils/referenced-asset-handler.js +120 -0
- package/messages/index.json +1 -0
- package/oclif.manifest.json +108 -0
- package/package.json +94 -0
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@contentstack/cli-cm-export-query",
|
|
3
|
+
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
|
+
"author": "Contentstack",
|
|
6
|
+
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@contentstack/cli-cm-export": "~1.18.0",
|
|
9
|
+
"@contentstack/cli-command": "~1.6.0",
|
|
10
|
+
"@contentstack/cli-utilities": "~1.13.0",
|
|
11
|
+
"@oclif/core": "^4.3.0",
|
|
12
|
+
"async": "^3.2.6",
|
|
13
|
+
"big-json": "^3.2.0",
|
|
14
|
+
"bluebird": "^3.7.2",
|
|
15
|
+
"chalk": "^4.1.2",
|
|
16
|
+
"lodash": "^4.17.21",
|
|
17
|
+
"merge": "^2.1.1",
|
|
18
|
+
"mkdirp": "^1.0.4",
|
|
19
|
+
"progress-stream": "^2.0.0",
|
|
20
|
+
"promise-limit": "^2.7.0",
|
|
21
|
+
"winston": "^3.17.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@contentstack/cli-dev-dependencies": "~1.3.0",
|
|
25
|
+
"@oclif/plugin-help": "^6.2.28",
|
|
26
|
+
"@oclif/test": "^4.1.13",
|
|
27
|
+
"@types/big-json": "^3.2.5",
|
|
28
|
+
"@types/chai": "^4.3.20",
|
|
29
|
+
"@types/mkdirp": "^1.0.2",
|
|
30
|
+
"@types/mocha": "^10.0.10",
|
|
31
|
+
"@types/node": "^20.19.8",
|
|
32
|
+
"@types/progress-stream": "^2.0.5",
|
|
33
|
+
"@types/sinon": "^17.0.4",
|
|
34
|
+
"chai": "^4.5.0",
|
|
35
|
+
"dotenv": "^16.5.0",
|
|
36
|
+
"dotenv-expand": "^9.0.0",
|
|
37
|
+
"eslint": "^8.57.1",
|
|
38
|
+
"eslint-config-oclif": "^6.0.62",
|
|
39
|
+
"husky": "^9.1.7",
|
|
40
|
+
"mocha": "10.8.2",
|
|
41
|
+
"nyc": "^15.1.0",
|
|
42
|
+
"oclif": "^4.17.46",
|
|
43
|
+
"sinon": "^17.0.1",
|
|
44
|
+
"ts-node": "^10.9.2",
|
|
45
|
+
"typescript": "^4.9.5"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "npm run clean && npm run compile && cp -r src/config lib/",
|
|
49
|
+
"clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
|
|
50
|
+
"compile": "tsc -b tsconfig.json",
|
|
51
|
+
"postpack": "rm -f oclif.manifest.json",
|
|
52
|
+
"prepack": "npm run compile && oclif manifest && oclif readme && cp -r src/config lib/",
|
|
53
|
+
"version": "oclif readme && git add README.md",
|
|
54
|
+
"test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
55
|
+
"pretest": "tsc -p test",
|
|
56
|
+
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
|
|
57
|
+
"lint": "eslint src/**/*.ts",
|
|
58
|
+
"format": "eslint src/**/*.ts --fix",
|
|
59
|
+
"test:unit": "mocha --forbid-only \"test/unit/**/*.test.ts\"",
|
|
60
|
+
"prepare": "npx husky && chmod +x .husky/pre-commit"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=14.0.0"
|
|
64
|
+
},
|
|
65
|
+
"files": [
|
|
66
|
+
"/lib",
|
|
67
|
+
"/messages",
|
|
68
|
+
"/npm-shrinkwrap.json",
|
|
69
|
+
"/oclif.manifest.json"
|
|
70
|
+
],
|
|
71
|
+
"homepage": "https://github.com/contentstack/cli",
|
|
72
|
+
"keywords": [
|
|
73
|
+
"contentstack",
|
|
74
|
+
"cli",
|
|
75
|
+
"plugin"
|
|
76
|
+
],
|
|
77
|
+
"license": "MIT",
|
|
78
|
+
"main": "./lib/commands/cm/stacks/export-query.js",
|
|
79
|
+
"oclif": {
|
|
80
|
+
"commands": "./lib/commands",
|
|
81
|
+
"bin": "csdx",
|
|
82
|
+
"devPlugins": [
|
|
83
|
+
"@oclif/plugin-help"
|
|
84
|
+
],
|
|
85
|
+
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-query-export/<%- commandPath %>"
|
|
86
|
+
},
|
|
87
|
+
"csdxConfig": {
|
|
88
|
+
"shortCommandName": {
|
|
89
|
+
"cm:stacks:export-query": "EXPRTQRY",
|
|
90
|
+
"cm:export:query": "EXPRTQRY"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"repository": "https://github.com/contentstack/cli"
|
|
94
|
+
}
|