Skip to content

Commit c246db6

Browse files
authored
Merge pull request #1542 from contentstack/feat/import-setup-command
import pre setup command base code
2 parents 2d11ac5 + 6db05e3 commit c246db6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1618
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Build files
2+
./lib
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"parser": "@typescript-eslint/parser",
6+
"parserOptions": {
7+
"project": "tsconfig.json",
8+
"sourceType": "module"
9+
},
10+
"extends": [
11+
"oclif-typescript",
12+
"plugin:@typescript-eslint/recommended"
13+
],
14+
"rules": {
15+
"@typescript-eslint/no-unused-vars": [
16+
"error",
17+
{
18+
"args": "none"
19+
}
20+
],
21+
"@typescript-eslint/prefer-namespace-keyword": "error",
22+
"@typescript-eslint/quotes": [
23+
"error",
24+
"single",
25+
{
26+
"avoidEscape": true,
27+
"allowTemplateLiterals": true
28+
}
29+
],
30+
"semi": "off",
31+
"@typescript-eslint/type-annotation-spacing": "error",
32+
"@typescript-eslint/no-redeclare": "off",
33+
"eqeqeq": [
34+
"error",
35+
"smart"
36+
],
37+
"id-match": "error",
38+
"no-eval": "error",
39+
"no-var": "error",
40+
"quotes": "off",
41+
"indent": "off",
42+
"camelcase": "off",
43+
"comma-dangle": "off",
44+
"arrow-parens": "off",
45+
"operator-linebreak": "off",
46+
"object-curly-spacing": "off",
47+
"node/no-missing-import": "off",
48+
"lines-between-class-members": "off",
49+
"padding-line-between-statements": "off",
50+
"@typescript-eslint/ban-ts-ignore": "off",
51+
"unicorn/no-abusive-eslint-disable": "off",
52+
"@typescript-eslint/no-explicit-any": "off",
53+
"unicorn/consistent-function-scoping": "off",
54+
"@typescript-eslint/no-use-before-define": "off"
55+
}
56+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*-debug.log
2+
*-error.log
3+
/.nyc_output
4+
/dist
5+
/lib
6+
/tmp
7+
/yarn.lock
8+
node_modules
9+
.DS_Store
10+
coverage
11+
.vscode/
12+
/lib
13+
14+
.env
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"require": ["test/helpers/init.js", "ts-node/register", "source-map-support/register"],
3+
"watch-extensions": [
4+
"ts"
5+
],
6+
"recursive": true,
7+
"timeout": 5000
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"inlcude": [
3+
"lib/**/*.js"
4+
]
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 120,
6+
"tabWidth": 2
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Contentstack
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
3+
node "%~dp0\dev" %*
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node_modules/.bin/ts-node
2+
// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
3+
(async () => {
4+
const oclif = await import('@oclif/core');
5+
await oclif.execute({ development: true, dir: __dirname });
6+
})();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
3+
node "%~dp0\run" %*

0 commit comments

Comments
 (0)