@tinacms/cli 0.60.14 → 0.60.15
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/CHANGELOG.md +6 -0
- package/dist/cmds/init/setup-files/index.d.ts +1 -0
- package/dist/index.js +19 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,3 +2,4 @@ export declare const adminPage = "import { TinaAdmin } from 'tinacms';\nexport d
|
|
|
2
2
|
export declare const blogPost = "---\ntitle: Vote For Pedro\n---\n# Welcome to the blog.\n\n> To edit this site head over to the [`/admin`](/admin) route. Then click the pencil icon in the bottom lefthand corner to start editing \uD83E\uDD99.\n\n# Dixi gaude Arethusa\n\n<PageSection heading=\"Oscula mihi\" content=\"Lorem markdownum numerabilis armentorum platanus, cultros coniunx sibi per\nsilvas, nostris clausit sequemur diverso scopulosque. Fecit tum alta sed non\nfalcato murmura, geminas donata Amyntore, quoque Nox. Invitam inquit, modo\nnocte; ut ignis faciemque manes in imagine sinistra ut mucrone non ramos\nsepulcro supplex. Crescentesque populos motura, fit cumque. Verumque est; retro\nsibi tristia bracchia Aetola telae caruerunt et.\"/>\n\n\n## Mutato fefellimus sit demisit aut alterius sollicito\n\nPhaethonteos vestes quem involvite iuvenca; furiali anne: sati totumque,\n**corpora** cum rapacibus nunc! Nervis repetatne, miserabile doleas, deprensum\nhunc, fluctus Threicio, ad urbes, magicaeque, quid. Per credensque series adicis\npoteram [quidem](#)! Iam uni mensas victrix\nvittas ut flumina Satyri adulter; bellum iacet domitae repercusso truncis urnis\nmille rigidi sub taurum.\n\n\n";
|
|
3
3
|
export declare const nextPostPage: () => string;
|
|
4
4
|
export declare const AppJsContent: (usingSrc: boolean, extraImports?: string) => string;
|
|
5
|
+
export declare const AppJsContentPrintout: (usingSrc: boolean, extraImports?: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var commander = __toModule(require("commander"));
|
|
|
114
114
|
|
|
115
115
|
// pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/cli/package.json
|
|
116
116
|
var name = "@tinacms/cli";
|
|
117
|
-
var version = "0.60.
|
|
117
|
+
var version = "0.60.15";
|
|
118
118
|
|
|
119
119
|
// pnp:/home/runner/work/tinacms/tinacms/packages/@tinacms/cli/src/cmds/query-gen/attachSchema.ts
|
|
120
120
|
var import_graphql = __toModule(require("@tinacms/graphql"));
|
|
@@ -941,6 +941,22 @@ var nextPostPage = () => `// THIS FILE HAS BEEN GENERATED WITH THE TINA CLI.
|
|
|
941
941
|
|
|
942
942
|
`;
|
|
943
943
|
var AppJsContent = (usingSrc, extraImports) => {
|
|
944
|
+
const importLine = `import Tina from '${usingSrc ? "../" : ""}../.tina/components/TinaDynamicProvider.js'`;
|
|
945
|
+
return `${importLine}
|
|
946
|
+
${extraImports || ""}
|
|
947
|
+
|
|
948
|
+
const App = ({ Component, pageProps }) => {
|
|
949
|
+
return (
|
|
950
|
+
<Tina>
|
|
951
|
+
<Component {...pageProps} />
|
|
952
|
+
</Tina>
|
|
953
|
+
)
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
export default App
|
|
957
|
+
`;
|
|
958
|
+
};
|
|
959
|
+
var AppJsContentPrintout = (usingSrc, extraImports) => {
|
|
944
960
|
const importLine = import_chalk4.default.green(`+ import Tina from '${usingSrc ? "../" : ""}../.tina/components/TinaDynamicProvider.js'`);
|
|
945
961
|
return `${importLine}
|
|
946
962
|
${extraImports || ""}
|
|
@@ -952,7 +968,7 @@ var AppJsContent = (usingSrc, extraImports) => {
|
|
|
952
968
|
${import_chalk4.default.green("+ </Tina>")}
|
|
953
969
|
)
|
|
954
970
|
}
|
|
955
|
-
|
|
971
|
+
|
|
956
972
|
export default App
|
|
957
973
|
`;
|
|
958
974
|
};
|
|
@@ -1177,7 +1193,7 @@ async function successMessage(ctx, next, options) {
|
|
|
1177
1193
|
logger.info(`${import_chalk5.default.bold("Add the Tina wrapper")}`);
|
|
1178
1194
|
logger.info(`\u26A0\uFE0F Before using Tina, you will NEED to add the Tina wrapper to your _app.jsx
|
|
1179
1195
|
`);
|
|
1180
|
-
logger.info(`${
|
|
1196
|
+
logger.info(`${AppJsContentPrintout(usingSrc)}`);
|
|
1181
1197
|
}
|
|
1182
1198
|
logger.info(`${import_chalk5.default.bold("Run your site with Tina")}`);
|
|
1183
1199
|
logger.info(` yarn dev
|