flowershow 0.1.5 → 0.1.7

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # flowershow
2
2
 
3
+ ## 0.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Rename [...slug].tsx to [[...slug]].tsx at installation, so that user can still define their own home pages using MD files.
8
+
9
+ ## 0.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - f136048: Remove `pages/index.tsx` file from the copied Flowershow template, to allow users to set their own home page with MD file.
14
+
3
15
  ## 0.1.5
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowershow",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Publish your digital garden",
5
5
  "bin": {
6
6
  "flowershow": "src/bin/cli.js"
@@ -112,7 +112,7 @@ export default class Installer {
112
112
  fs.writeFile(`${contentPath}/index.md`, homePageContent, { flag: "a" }, (err) => { } // eslint-disable-line @typescript-eslint/no-empty-function
113
113
  );
114
114
  }
115
- // if there is a config.js file from older flowershow, change it's extension.
115
+ // if there is a config.js file from older flowershow, change its extension.
116
116
  if (fs.existsSync(`${contentPath}/config.js`)) {
117
117
  fs.rename(`${contentPath}/config.js`, `${contentPath}/config.mjs`, (err) => {
118
118
  if (err)
@@ -147,6 +147,9 @@ export default class Installer {
147
147
  fs.rmSync(`${flowershowDir}/project.json`, { force: true });
148
148
  fs.rmSync(`${flowershowDir}/.eslintrc.json`, { force: true });
149
149
  fs.rmSync(`${flowershowDir}/jest.config.js`, { force: true });
150
+ // TODO (temporary here) remove Flowershow app home page
151
+ fs.rmSync(`${flowershowDir}/pages/index.tsx`, { force: true });
152
+ fs.rename(`${flowershowDir}/pages/[...slug].tsx`, `${flowershowDir}/pages/[[...slug]].tsx`, () => { });
150
153
  // update content and assets symlinks
151
154
  const contentSymlinkPath = path.relative(`${flowershowDir}`, contentDir);
152
155
  fs.symlinkSync(contentSymlinkPath, `${flowershowDir}/content`, "junction");
@@ -163,7 +166,7 @@ export default class Installer {
163
166
  log(stdout);
164
167
  log(stderr);
165
168
  stopSpinner();
166
- success("Successfuly installed Flowershow!");
169
+ success("Successfully installed Flowershow!");
167
170
  }
168
171
  catch (err) {
169
172
  error(`Failed to install Flowershow dependencies: ${err.message}`);