@tinacms/cli 0.61.27 → 0.62.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/dist/buildTina/index.d.ts +2 -1
- package/dist/cmds/compile/index.d.ts +2 -1
- package/dist/cmds/init/index.d.ts +1 -7
- package/dist/cmds/init/printFinalMessage.d.ts +1 -0
- package/dist/cmds/init/setup-files/config.d.ts +18 -0
- package/dist/cmds/init/setup-files/index.d.ts +12 -4
- package/dist/index.js +883 -1113
- package/package.json +4 -4
- package/dist/cmds/init/setup-files/tinaProvider.d.ts +0 -14
- package/dist/cmds/init/static.d.ts +0 -1
|
@@ -19,6 +19,7 @@ interface ClientGenOptions {
|
|
|
19
19
|
port?: number;
|
|
20
20
|
}
|
|
21
21
|
interface BuildOptions {
|
|
22
|
+
local: boolean;
|
|
22
23
|
dev?: boolean;
|
|
23
24
|
verbose?: boolean;
|
|
24
25
|
rootPath?: string;
|
|
@@ -46,7 +47,7 @@ export declare const auditCmdBuild: (ctx: {
|
|
|
46
47
|
export declare class ConfigBuilder {
|
|
47
48
|
private database;
|
|
48
49
|
constructor(database: Database);
|
|
49
|
-
build({ dev, verbose, rootPath }: BuildOptions): Promise<{
|
|
50
|
+
build({ dev, verbose, rootPath, local }: BuildOptions): Promise<{
|
|
50
51
|
schema: any;
|
|
51
52
|
graphQLSchema: DocumentNode;
|
|
52
53
|
tinaSchema: any;
|
|
@@ -11,9 +11,10 @@ See the License for the specific language governing permissions and
|
|
|
11
11
|
limitations under the License.
|
|
12
12
|
*/
|
|
13
13
|
import type { TinaCloudSchema } from '@tinacms/graphql';
|
|
14
|
-
export declare const resetGeneratedFolder: ({ tinaGeneratedPath, usingTs, }: {
|
|
14
|
+
export declare const resetGeneratedFolder: ({ tinaGeneratedPath, usingTs, isBuild, }: {
|
|
15
15
|
tinaGeneratedPath: string;
|
|
16
16
|
usingTs: boolean;
|
|
17
|
+
isBuild: boolean;
|
|
17
18
|
}) => Promise<void>;
|
|
18
19
|
export declare const compileClient: (ctx: any, next: any, options: {
|
|
19
20
|
clientFileType?: string;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
+
export declare function initStaticTina(ctx: any, next: () => void, options: any): Promise<void>;
|
|
1
2
|
/**
|
|
2
3
|
* Executes a shell command and return it as a Promise.
|
|
3
4
|
* @param cmd {string}
|
|
4
5
|
* @return {Promise<string>}
|
|
5
6
|
*/
|
|
6
7
|
export declare function execShellCommand(cmd: any): Promise<string>;
|
|
7
|
-
export declare function initTina(ctx: any, next: () => void, options: any): Promise<void>;
|
|
8
|
-
export declare const MIN_REACT_VERSION = ">=16.14.0";
|
|
9
|
-
export declare function checkDeps(ctx: any, next: () => void, options: any): Promise<void>;
|
|
10
|
-
export declare const checkPackage: (packageJSON: any, packageName: any) => boolean;
|
|
11
|
-
export declare function installDeps(ctx: any, next: () => void, options: any): Promise<void>;
|
|
12
|
-
export declare function tinaSetup(_ctx: any, next: () => void, _options: any): Promise<void>;
|
|
13
|
-
export declare function successMessage(ctx: any, next: () => void, options: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function successMessage(ctx: any, next: () => void, options: any): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
See the License for the specific language governing permissions and
|
|
11
|
+
limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
export declare const configExamples: {
|
|
14
|
+
next: () => string;
|
|
15
|
+
other: (args: {
|
|
16
|
+
publicFolder: string;
|
|
17
|
+
}) => string;
|
|
18
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
See the License for the specific language governing permissions and
|
|
11
|
+
limitations under the License.
|
|
12
|
+
*/
|
|
3
13
|
export declare const nextPostPage: ({ usingSrc, }: {
|
|
4
14
|
usingSrc: boolean;
|
|
5
15
|
}) => string;
|
|
6
|
-
export declare const AppJsContent: (usingSrc: boolean, extraImports?: string) => string;
|
|
7
|
-
export declare const AppJsContentPrintout: (usingSrc: boolean, extraImports?: string) => string;
|