Browse Source

Merge pull request #4051 from nocodb/fix/4041-rename-cli-alias

Refactor: CLI - rename cli script alias to avoid conflict
pull/4052/head
Pranav C 2 years ago committed by GitHub
parent
commit
0191d88257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 192
      packages/nc-cli/package-lock.json
  2. 7
      packages/nc-cli/package.json
  3. 16
      packages/nc-cli/webpack.config.js

192
packages/nc-cli/package-lock.json generated

@ -40,8 +40,8 @@
},
"bin": {
"create-nocodb-app": "dist/bundle.js",
"nc": "dist/bundle.js",
"nc-cli": "dist/bundle.js"
"nc-cli": "dist/bundle.js",
"noco": "dist/bundle.js"
},
"devDependencies": {
"@bitjson/npm-scripts-info": "^1.0.0",
@ -67,8 +67,7 @@
"typescript": "^3.5.3",
"webpack": "^5.1.0",
"webpack-cli": "^4.0.0",
"webpack-node-externals": "^2.5.2",
"webpack-obfuscator": "^2.6.0"
"webpack-node-externals": "^2.5.2"
},
"engines": {
"node": ">=8.9"
@ -1355,15 +1354,6 @@
"ajv": "^6.9.1"
}
},
"node_modules/amdefine": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
"dev": true,
"engines": {
"node": ">=0.4.2"
}
},
"node_modules/ansi-align": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",
@ -10002,27 +9992,6 @@
"node": ">=4.0.0"
}
},
"node_modules/multi-stage-sourcemap": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/multi-stage-sourcemap/-/multi-stage-sourcemap-0.3.1.tgz",
"integrity": "sha512-UiTLYjqeIoVnJHyWGskwMKIhtZKK9uXUjSTWuwatarrc0d2H/6MAVFdwvEA/aKOHamIn7z4tfvxjz+FYucFpNQ==",
"dev": true,
"dependencies": {
"source-map": "^0.1.34"
}
},
"node_modules/multi-stage-sourcemap/node_modules/source-map": {
"version": "0.1.43",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
"integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
"dev": true,
"dependencies": {
"amdefine": ">=0.0.4"
},
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/multimatch": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz",
@ -12932,12 +12901,6 @@
"node": ">=0.10.0"
}
},
"node_modules/source-list-map": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz",
"integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==",
"dev": true
},
"node_modules/source-map": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
@ -15832,72 +15795,6 @@
"integrity": "sha512-aHdl/y2N7PW2Sx7K+r3AxpJO+aDMcYzMQd60Qxefq3+EwhewSbTBqNumOsCE1JsCUNoyfGj5465N0sSf6hc/5w==",
"dev": true
},
"node_modules/webpack-obfuscator": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/webpack-obfuscator/-/webpack-obfuscator-2.6.0.tgz",
"integrity": "sha512-1eVjNxyNSwPITrIsJq8TwrtmBK+yBci/PymSzPSSP+7Fy8dngXUPKgbP9BZDRERjnSEY01dQq9RZKGn1qGDjqg==",
"dev": true,
"dependencies": {
"acorn": "^8.0.1",
"estraverse": "^5.2.0",
"loader-utils": "^2.0.0",
"multi-stage-sourcemap": "^0.3.1",
"multimatch": "^4.0.0",
"webpack-sources": "^1.4.3"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/javascript-obfuscator"
},
"peerDependencies": {
"javascript-obfuscator": "^2.6.0",
"webpack": "^4.44.1"
}
},
"node_modules/webpack-obfuscator/node_modules/estraverse": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
"dev": true,
"engines": {
"node": ">=4.0"
}
},
"node_modules/webpack-obfuscator/node_modules/multimatch": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/multimatch/-/multimatch-4.0.0.tgz",
"integrity": "sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==",
"dev": true,
"dependencies": {
"@types/minimatch": "^3.0.3",
"array-differ": "^3.0.0",
"array-union": "^2.1.0",
"arrify": "^2.0.1",
"minimatch": "^3.0.4"
},
"engines": {
"node": ">=8"
}
},
"node_modules/webpack-obfuscator/node_modules/source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/webpack-obfuscator/node_modules/webpack-sources": {
"version": "1.4.3",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz",
"integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==",
"dev": true,
"dependencies": {
"source-list-map": "^2.0.0",
"source-map": "~0.6.1"
}
},
"node_modules/webpack-sources": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz",
@ -17272,12 +17169,6 @@
"dev": true,
"requires": {}
},
"amdefine": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
"dev": true
},
"ansi-align": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",
@ -23905,26 +23796,6 @@
}
}
},
"multi-stage-sourcemap": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/multi-stage-sourcemap/-/multi-stage-sourcemap-0.3.1.tgz",
"integrity": "sha512-UiTLYjqeIoVnJHyWGskwMKIhtZKK9uXUjSTWuwatarrc0d2H/6MAVFdwvEA/aKOHamIn7z4tfvxjz+FYucFpNQ==",
"dev": true,
"requires": {
"source-map": "^0.1.34"
},
"dependencies": {
"source-map": {
"version": "0.1.43",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
"integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
"dev": true,
"requires": {
"amdefine": ">=0.0.4"
}
}
}
},
"multimatch": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/multimatch/-/multimatch-5.0.0.tgz",
@ -26133,12 +26004,6 @@
}
}
},
"source-list-map": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz",
"integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==",
"dev": true
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
@ -28352,57 +28217,6 @@
"integrity": "sha512-aHdl/y2N7PW2Sx7K+r3AxpJO+aDMcYzMQd60Qxefq3+EwhewSbTBqNumOsCE1JsCUNoyfGj5465N0sSf6hc/5w==",
"dev": true
},
"webpack-obfuscator": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/webpack-obfuscator/-/webpack-obfuscator-2.6.0.tgz",
"integrity": "sha512-1eVjNxyNSwPITrIsJq8TwrtmBK+yBci/PymSzPSSP+7Fy8dngXUPKgbP9BZDRERjnSEY01dQq9RZKGn1qGDjqg==",
"dev": true,
"requires": {
"acorn": "^8.0.1",
"estraverse": "^5.2.0",
"loader-utils": "^2.0.0",
"multi-stage-sourcemap": "^0.3.1",
"multimatch": "^4.0.0",
"webpack-sources": "^1.4.3"
},
"dependencies": {
"estraverse": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
"dev": true
},
"multimatch": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/multimatch/-/multimatch-4.0.0.tgz",
"integrity": "sha512-lDmx79y1z6i7RNx0ZGCPq1bzJ6ZoDDKbvh7jxr9SJcWLkShMzXrHbYVpTdnhNM5MXpDUxCQ4DgqVttVXlBgiBQ==",
"dev": true,
"requires": {
"@types/minimatch": "^3.0.3",
"array-differ": "^3.0.0",
"array-union": "^2.1.0",
"arrify": "^2.0.1",
"minimatch": "^3.0.4"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
},
"webpack-sources": {
"version": "1.4.3",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz",
"integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==",
"dev": true,
"requires": {
"source-list-map": "^2.0.0",
"source-map": "~0.6.1"
}
}
}
},
"webpack-sources": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.2.tgz",

7
packages/nc-cli/package.json

@ -1,6 +1,6 @@
{
"name": "create-nocodb-app",
"version": "0.1.26",
"version": "0.1.27",
"description": "nc-cli",
"main": "dist/bundle.js",
"module": "dist/bundle.js",
@ -8,7 +8,7 @@
"license": "MIT",
"keywords": [],
"bin": {
"nc": "./dist/bundle.js",
"noco": "./dist/bundle.js",
"create-nocodb-app": "./dist/bundle.js",
"nc-cli": "./dist/bundle.js"
},
@ -110,8 +110,7 @@
"typescript": "^3.5.3",
"webpack": "^5.1.0",
"webpack-cli": "^4.0.0",
"webpack-node-externals": "^2.5.2",
"webpack-obfuscator": "^2.6.0"
"webpack-node-externals": "^2.5.2"
},
"ava": {
"failFast": true,

16
packages/nc-cli/webpack.config.js

@ -42,23 +42,7 @@ module.exports = {
// fs: 'empty'
// },
plugins: [
new webpack.BannerPlugin({banner: "#! /usr/bin/env node", raw: true}),
// new CopyPlugin({
// patterns: [
// // {
// // from: "src/sample-db/chinook.sqlite",
// // to: 'chinook.sqlite',
// // // flatten: true,
// // },
// {
// from: "src/sample-db/sakila.db",
// to: 'sakila.db',
// // flatten: true,
// },
// ],
// })
],
target: 'node',

Loading…
Cancel
Save