npm i on quartz update

This commit is contained in:
Jacky Zhao 2023-07-23 21:53:34 -07:00
parent bc58342a4a
commit a1350c1192
2 changed files with 2 additions and 5 deletions

View File

@ -6,8 +6,6 @@ draft: true
- back button doesn't work sometimes - back button doesn't work sometimes
- images in same folder are broken on shortest path mode - images in same folder are broken on shortest path mode
- install dependencies on quartz update
- https://help.obsidian.md/Editing+and+formatting/Tags#Nested+tags nested tags?? and big tag listing - https://help.obsidian.md/Editing+and+formatting/Tags#Nested+tags nested tags?? and big tag listing
- watch mode for config/source code - watch mode for config/source code
- https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Task+lists task list styling - https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Task+lists task list styling

View File

@ -247,6 +247,8 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
) )
spawnSync("git", ["pull", UPSTREAM_NAME, QUARTZ_SOURCE_BRANCH], { stdio: "inherit" }) spawnSync("git", ["pull", UPSTREAM_NAME, QUARTZ_SOURCE_BRANCH], { stdio: "inherit" })
await popContentFolder(contentFolder) await popContentFolder(contentFolder)
console.log("Ensuring dependencies are up to date")
spawnSync("npm", ["i"], { stdio: "inherit" })
console.log(chalk.green("Done!")) console.log(chalk.green("Done!"))
}) })
.command("sync", "Sync your Quartz to and from GitHub.", SyncArgv, async (argv) => { .command("sync", "Sync your Quartz to and from GitHub.", SyncArgv, async (argv) => {
@ -339,9 +341,6 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started.
.catch((err) => { .catch((err) => {
console.error(`${chalk.red("Couldn't parse Quartz configuration:")} ${fp}`) console.error(`${chalk.red("Couldn't parse Quartz configuration:")} ${fp}`)
console.log(`Reason: ${chalk.grey(err)}`) console.log(`Reason: ${chalk.grey(err)}`)
console.log(
"hint: make sure all the required dependencies are installed (run `npm install`)",
)
process.exit(1) process.exit(1)
}) })