Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
fileignoreconfig:
- filename: package-lock.json
checksum: ad5cedb62e915203b1a3561b231889f945452d48da12dbdca13c346f93258a7a
checksum: e526299185ff95e3cc1dbf1b35d852eb06b2e118e9324cc7b53f4e9bf274038f
- filename: pnpm-lock.yaml
checksum: afa28e14d5080f836632e31930ed3a950bfefb4c874acd163eb6849139b2034e
checksum: 2b8621db776d516f2b5cdb8fb6a0b8b88b194a64b01f3609efd95a87eadf4bef
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
- filename: packages/contentstack-import-setup/test/config.json
Expand Down Expand Up @@ -75,10 +75,6 @@ fileignoreconfig:
checksum: c435ceaa709a7504da303a6ea674e07a89030d8ad4152e7917cd17e7f3e58052
- filename: packages/contentstack-bootstrap/src/config.ts
checksum: cc3270acd9d37479b24792f45a108e0f1c99265f92d59c35c0ec3ee2d1cc390d
- filename: packages/contentstack-clone/src/commands/cm/stacks/clone.js
checksum: 433a84a882ea3f12b27127d47d289dfc64dda6b6fc956369f5851daaa57ae493
- filename: packages/contentstack-clone/src/lib/util/clone-handler.js
checksum: f901c84eac8545b328952332216de516697da2de098298496ba6ff1e75a0a659
- filename: packages/contentstack-bulk-publish/src/util/generate-bulk-publish-url.js
checksum: 5f7c1e2fac3e7fab21e861d609c54ca7191ee09fd076dd0adc66604043bf7a43
- filename: packages/contentstack-import/src/utils/interactive.ts
Expand Down Expand Up @@ -273,4 +269,9 @@ fileignoreconfig:
checksum: e8714ef41940f3a9be782dfaa43a15df57bd1eb4c3f0e4d5f305e68681c1bd93
- filename: packages/contentstack-import/src/import/modules-js/environments.js
checksum: d484342c25462a7052c8aae6cad0baed9a01e1eaa67d6a09f175981c53092301
- filename: packages/contentstack-clone/.eslintrc
checksum: a7230ffa600c58047ac73f2dec7a23ca5862e36e68f04f2671379496739bd818
- filename: packages/contentstack-clone/test/commands/cm/stacks/clone.test.ts
checksum: b30adfbbd25aa76fe41b0ffebdb3bc61eb4981063c3a38b890c3cb3a6660ecca
version: '1.0'

917 changes: 467 additions & 450 deletions package-lock.json

Large diffs are not rendered by default.

53 changes: 52 additions & 1 deletion packages/contentstack-clone/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
{
"extends": "oclif"
"env": {
"node": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"ignorePatterns": [
"lib/**/*",
"test/**/*",
"node_modules/**/*",
"*.js"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/await-thenable": "error",
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi": "off",
"@typescript-eslint/no-redeclare": "off",
"eqeqeq": ["error", "smart"],
"id-match": "error",
"no-eval": "error",
"no-var": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-require-imports": "off",
"prefer-const": "error",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/require-await": "off"
}
}
1 change: 1 addition & 0 deletions packages/contentstack-clone/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/yarn.lock
node_modules
coverage
/lib
8 changes: 8 additions & 0 deletions packages/contentstack-clone/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"require": ["test/helpers/init.js", "ts-node/register", "source-map-support/register"],
"watch-extensions": [
"ts"
],
"recursive": true,
"timeout": 5000
}
28 changes: 28 additions & 0 deletions packages/contentstack-clone/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"include": [
"lib/**/*.js",
"src/**/*.ts"
],
"exclude": [
"**/*.test.ts",
"**/test/**",
"**/node_modules/**"
],
"reporter": [
"text",
"text-summary",
"lcov",
"html"
],
"check-coverage": false,
"statements": 90,
"branches": 90,
"functions": 90,
"lines": 90,
"extension": [
".ts",
".js"
],
"sourceMap": true,
"instrument": true
}
34 changes: 24 additions & 10 deletions packages/contentstack-clone/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-clone",
"description": "Contentstack stack clone plugin",
"version": "1.18.1",
"version": "1.19.0",
"author": "Contentstack",
"bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues",
"dependencies": {
Expand All @@ -22,21 +22,29 @@
},
"devDependencies": {
"@oclif/test": "^4.1.13",
"@types/chai": "^4.3.0",
"@types/mocha": "^10.0.0",
"@types/node": "^14.18.63",
"@types/sinon": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"chai": "^4.5.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^6.0.62",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.17.46",
"sinon": "^19.0.5"
"sinon": "^19.0.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"engines": {
"node": ">=14.0.0"
},
"files": [
"/bin",
"/lib",
"/npm-shrinkwrap.json",
"/oclif.manifest.json",
"/src"
"/oclif.manifest.json"
],
"homepage": "https://github.com/rohitmishra209/cli-cm-clone",
"keywords": [
Expand All @@ -45,19 +53,25 @@
"plugin"
],
"license": "MIT",
"main": "./lib/commands/cm/stacks/clone.js",
"oclif": {
"commands": "./src/commands",
"commands": "./lib/commands",
"bin": "csdx",
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-clone/<%- commandPath %>"
},
"repository": "https://github.com/contentstack/cli",
"scripts": {
"build": "npm run clean && npm run compile",
"clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
"compile": "tsc -b tsconfig.json",
"postpack": "rm -f oclif.manifest.json",
"prepack": "oclif manifest && oclif readme",
"test": "nyc --reporter=html mocha --forbid-only \"test/**/*.test.js\"",
"posttest": "eslint .",
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
"prepack": "pnpm compile && oclif manifest && oclif readme",
"test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\" 2>&1 | grep -v 'ERR_INVALID_ARG_TYPE' ; npx nyc report --reporter=text-summary --reporter=text || true",
"pretest": "tsc -p test",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" 2>&1 | grep -v 'ERR_INVALID_ARG_TYPE' ; npx nyc report --reporter=text-summary --reporter=text || true",
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"test:unit:report": "nyc --reporter=text --reporter=text-summary --extension .ts mocha --forbid-only \"test/**/*.test.ts\""
},
"csdxConfig": {
"expiredCommands": {
Expand Down
Loading