@constructor-io/constructorio-connect-cli 1.15.6 → 1.15.8
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/README.md +1 -1
- package/boilerplate-repo/gitignore +35 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +6 -0
- package/dist/customer/get-connect-token.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# compiled output
|
|
2
|
+
/dist
|
|
3
|
+
/node_modules
|
|
4
|
+
# Logs
|
|
5
|
+
logs
|
|
6
|
+
*.log
|
|
7
|
+
npm-debug.log*
|
|
8
|
+
pnpm-debug.log*
|
|
9
|
+
yarn-debug.log*
|
|
10
|
+
yarn-error.log*
|
|
11
|
+
lerna-debug.log*
|
|
12
|
+
# OS
|
|
13
|
+
.DS_Store
|
|
14
|
+
# Tests
|
|
15
|
+
/coverage
|
|
16
|
+
/.nyc_output
|
|
17
|
+
# IDEs and editors
|
|
18
|
+
/.idea
|
|
19
|
+
.project
|
|
20
|
+
.classpath
|
|
21
|
+
.c9/
|
|
22
|
+
*.launch
|
|
23
|
+
.settings/
|
|
24
|
+
*.sublime-workspace
|
|
25
|
+
# IDE - VSCode
|
|
26
|
+
.vscode/*
|
|
27
|
+
*.code-workspace
|
|
28
|
+
!.vscode/settings.json
|
|
29
|
+
!.vscode/tasks.json
|
|
30
|
+
!.vscode/launch.json
|
|
31
|
+
!.vscode/extensions.json
|
|
32
|
+
# dotenv
|
|
33
|
+
.env
|
|
34
|
+
# npmrc should be ignored to avoid leaking credentials (e.g. AWS CodeArtifact)
|
|
35
|
+
.npmrc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,OAAO,EAAE,MAAM,aAAa,CAAC;AA0B5C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IACvC,MAAM,CAAC,WAAW,SAA4D;IAE9E,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,IAAI;;MAKT;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YAyCnB,UAAU;IAmBxB,OAAO,CAAC,oBAAoB;YAUd,UAAU;YAsBV,uBAAuB;WA6BvB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,4BAA4B,EAAE,OAAO,GACpC,IAAI;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,OAAO,EAAE,MAAM,aAAa,CAAC;AA0B5C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IACvC,MAAM,CAAC,WAAW,SAA4D;IAE9E,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,IAAI;;MAKT;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YAyCnB,UAAU;IAmBxB,OAAO,CAAC,oBAAoB;YAUd,UAAU;YAsBV,uBAAuB;WA6BvB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,4BAA4B,EAAE,OAAO,GACpC,IAAI;IAsBP,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAWjC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAuBlC,OAAO,CAAC,0BAA0B;CA4BnC"}
|
package/dist/commands/init.js
CHANGED
|
@@ -155,6 +155,12 @@ class Init extends core_1.Command {
|
|
|
155
155
|
return !file.includes("mapping");
|
|
156
156
|
},
|
|
157
157
|
});
|
|
158
|
+
// Handle .gitignore file - npm renames it during publish, so we copy from 'gitignore' to '.gitignore'
|
|
159
|
+
const gitignoreSource = path.join(repoDir, "gitignore");
|
|
160
|
+
const gitignoreDest = path.join(newDir, ".gitignore");
|
|
161
|
+
if (fs_extra_1.default.existsSync(gitignoreSource)) {
|
|
162
|
+
fs_extra_1.default.copyFileSync(gitignoreSource, gitignoreDest);
|
|
163
|
+
}
|
|
158
164
|
}
|
|
159
165
|
static replacePackageName(name, repoPath) {
|
|
160
166
|
const packageJsonPath = path.join(repoPath, "package.json");
|
|
@@ -101,7 +101,7 @@ function renderAuthHelperText() {
|
|
|
101
101
|
`The ${kleur_1.default.bold("Index Key")} should follow this format: key_xxxxxxxxxxxxxxxx`,
|
|
102
102
|
]);
|
|
103
103
|
(0, render_tip_1.renderTip)([
|
|
104
|
-
`The ${kleur_1.default.bold("API Token")} should follow this format:
|
|
104
|
+
`The ${kleur_1.default.bold("API Token")} should follow this format: CnstrcAuthTokV0-xxxxxxxxxxxxxxxx`,
|
|
105
105
|
]);
|
|
106
106
|
(0, render_tip_1.renderTip)([
|
|
107
107
|
`You can obtain an Index key and API Token from the customer dashboard under the ${(0, terminal_link_1.default)(kleur_1.default.bold("Integration > API Integration"), "https://app.constructor.io/dashboard/integration/api_tokens")} tab.`,
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED