@tinacms/cli 1.0.9 → 1.2.0

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.
Files changed (45) hide show
  1. package/LICENSE +8 -0
  2. package/dist/buildTina/attachDatabase.d.ts +8 -0
  3. package/dist/buildTina/attachPath.d.ts +1 -10
  4. package/dist/buildTina/git.d.ts +1 -10
  5. package/dist/buildTina/index.d.ts +13 -10
  6. package/dist/cmds/audit/audit.d.ts +1 -10
  7. package/dist/cmds/audit/index.d.ts +1 -10
  8. package/dist/cmds/baseCmds.d.ts +1 -10
  9. package/dist/cmds/compile/defaultSchema.d.ts +1 -10
  10. package/dist/cmds/compile/index.d.ts +3 -10
  11. package/dist/cmds/forestry-migrate/index.d.ts +1 -10
  12. package/dist/cmds/forestry-migrate/util/errorSingleton.d.ts +1 -10
  13. package/dist/cmds/forestry-migrate/util/index.d.ts +1 -10
  14. package/dist/cmds/init/setup-files/config.d.ts +1 -10
  15. package/dist/cmds/init/setup-files/index.d.ts +1 -10
  16. package/dist/cmds/query-gen/genTypes.d.ts +1 -10
  17. package/dist/cmds/query-gen/index.d.ts +1 -10
  18. package/dist/cmds/start-server/errors/index.d.ts +1 -10
  19. package/dist/cmds/start-server/index.d.ts +3 -11
  20. package/dist/cmds/start-server/lock.d.ts +1 -10
  21. package/dist/cmds/start-server/server.d.ts +1 -10
  22. package/dist/cmds/startSubprocess/index.d.ts +1 -10
  23. package/dist/cmds/statusChecks/checkClientInformation.d.ts +5 -12
  24. package/dist/cmds/statusChecks/waitForIndexing.d.ts +2 -23
  25. package/dist/codegen/index.d.ts +1 -10
  26. package/dist/codegen/plugin.d.ts +1 -10
  27. package/dist/codegen/sdkPlugin/config.d.ts +1 -10
  28. package/dist/codegen/sdkPlugin/index.d.ts +1 -10
  29. package/dist/codegen/sdkPlugin/visitor.d.ts +1 -10
  30. package/dist/command.d.ts +1 -10
  31. package/dist/index.d.ts +1 -10
  32. package/dist/index.js +277 -216
  33. package/dist/lib/getPath.d.ts +2 -11
  34. package/dist/lib/index.d.ts +1 -10
  35. package/dist/logger/index.d.ts +1 -10
  36. package/dist/middleware.d.ts +1 -10
  37. package/dist/server/index.d.ts +1 -10
  38. package/dist/server/models/media.d.ts +1 -10
  39. package/dist/server/routes/index.d.ts +1 -10
  40. package/dist/server/server.d.ts +2 -11
  41. package/dist/utils/index.d.ts +1 -10
  42. package/dist/utils/script-helpers.d.ts +0 -12
  43. package/dist/utils/spinner.d.ts +1 -10
  44. package/dist/utils/theme.d.ts +1 -10
  45. package/package.json +10 -7
@@ -1,20 +1,11 @@
1
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.
2
+
12
3
  */
13
4
  interface GetPathParams {
14
5
  projectDir: string;
15
6
  filename: string;
16
7
  allowedTypes: string[];
17
- errorMessage: string;
8
+ errorMessage?: string;
18
9
  }
19
10
  export declare const fileExists: ({ projectDir, filename, allowedTypes, }: Omit<GetPathParams, 'errorMessage'>) => boolean;
20
11
  export declare const getPath: ({ projectDir, filename, allowedTypes, errorMessage, }: GetPathParams) => any;
@@ -1,13 +1,4 @@
1
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.
2
+
12
3
  */
13
4
  export * from './getPath';
@@ -1,14 +1,5 @@
1
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.
2
+
12
3
  */
13
4
  import log4js from 'log4js';
14
5
  export declare const logger: log4js.Logger;
@@ -1,13 +1,4 @@
1
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.
2
+
12
3
  */
13
4
  export declare const chain: (cmds: ((ctx: any, next: any, options: any) => Promise<void>)[], options: any) => Promise<void>;
@@ -1,13 +1,4 @@
1
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.
2
+
12
3
  */
13
4
  export * from './server';
@@ -1,14 +1,5 @@
1
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.
2
+
12
3
  */
13
4
  interface MediaArgs {
14
5
  searchPath: string;
@@ -1,14 +1,5 @@
1
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.
2
+
12
3
  */
13
4
  import { Router } from 'express';
14
5
  import { PathConfig } from '../models/media';
@@ -1,15 +1,6 @@
1
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.
2
+
12
3
  */
13
4
  /// <reference types="node" />
14
5
  import http from 'http';
15
- export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
6
+ export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server>;
@@ -1,13 +1,4 @@
1
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.
2
+
12
3
  */
13
4
  export declare const parseMediaFolder: (str: string) => string;
@@ -1,18 +1,6 @@
1
1
  /**
2
2
 
3
- Copyright 2021 Forestry.io Holdings, Inc.
4
3
 
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
16
4
 
17
5
  */
18
6
  export declare function generateGqlScript(scriptValue: any): string;
@@ -1,14 +1,5 @@
1
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.
2
+
12
3
  */
13
4
  export declare function spin<T>({ waitFor, text, }: {
14
5
  waitFor: () => Promise<T>;
@@ -1,14 +1,5 @@
1
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.
2
+
12
3
  */
13
4
  export declare const successText: import("chalk").Chalk & {
14
5
  supportsColor: import("chalk").ColorSupport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.0.9",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "devDependencies": {
24
- "@tinacms/scripts": "1.0.1",
24
+ "@tinacms/scripts": "1.0.2",
25
25
  "@types/clear": "0.1.0",
26
26
  "@types/cli-spinner": "^0.2.1",
27
27
  "@types/cors": "2.8.5",
@@ -52,11 +52,11 @@
52
52
  "@graphql-codegen/visitor-plugin-common": "^2.4.0",
53
53
  "@graphql-tools/graphql-file-loader": "^7.2.0",
54
54
  "@graphql-tools/load": "^7.3.2",
55
- "@tinacms/app": "1.0.6",
56
- "@tinacms/datalayer": "1.0.1",
57
- "@tinacms/graphql": "1.1.0",
58
- "@tinacms/metrics": "1.0.1",
59
- "@tinacms/schema-tools": "1.2.1",
55
+ "@tinacms/app": "1.1.0",
56
+ "@tinacms/datalayer": "1.1.1",
57
+ "@tinacms/graphql": "1.3.0",
58
+ "@tinacms/metrics": "1.0.2",
59
+ "@tinacms/schema-tools": "1.3.1",
60
60
  "ajv": "^6.12.3",
61
61
  "altair-express-middleware": "4.0.6",
62
62
  "auto-bind": "^4.0.0",
@@ -78,12 +78,15 @@
78
78
  "lodash": "^4.17.19",
79
79
  "lodash.get": "^4.4.2",
80
80
  "log4js": "^6.4.0",
81
+ "memory-level": "^1.0.0",
82
+ "many-level": "^2.0.0",
81
83
  "minimatch": "^5.1.2",
82
84
  "multer": "1.4.5-lts.1",
83
85
  "normalize-path": "^3.0.0",
84
86
  "prettier": "^2.2.1",
85
87
  "progress": "^2.0.3",
86
88
  "prompts": "^2.4.1",
89
+ "readable-stream": "^4.3.0",
87
90
  "url-pattern": "^1.0.3",
88
91
  "yarn": "^1.22.17",
89
92
  "yup": "^0.32.9",