Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11.0 #144

Merged
merged 183 commits into from
Feb 22, 2023
Merged

0.11.0 #144

merged 183 commits into from
Feb 22, 2023

Conversation

indaco
Copy link
Member

@indaco indaco commented Feb 22, 2023

New Features

  • sveltin.json file: to simplify settings across parts of the project;
  • deploy command takes into account if adapter-static has been configured to output pages and assets in different folders. In this case, make sure to reflect them to sveltin.json;
  • migrate command: added to easily upgrade/migrate existing sveltin project to the latest sveltin release;
  • completion command: added to generate the autocompletion script for the specified shell (bash, zsh, fish, powershell);
  • active helps: by using TAB after the command name shows a message about params or flags;
  • mdsvex.config.js: set a layout component for pages created by running sveltin new page command;
  • SEO keywords per page.

Bug Fixes

  • mdsvex.config.js: missed comma after rehypeSlug usage;
  • pages created as "markdown" were buggies;
  • the execution of the commands after the project creation takes into account the theme choice. So, if you choose a "blank" theme when creating the project, by running commands to create pages, resources etc. consider that choice and scaffold the right artifacts without the need to cleanup code coming from the "sveltin" theme;
  • logo on Footer.svelte when sveltin theme not properly loaded;
  • import string for ScrollToTopButton component on +layout.svelte when sveltin theme;

Breakings

  • add content command: consistent usage compared to others by introducing the --to flag. The new way it works is:

    sveltin add content <title> --to <resource>

  • new page command: set the language for the page content: --svelte or --markdown. The new way it works is:

    sveltin new page about --markdown

Code Refactoring

  • removing dependency from gopkg.in/yaml.v3 and make use of viper capabilities;
  • removing dependency from gopkg.in/github.com/vbauerster/mpb/v8;
  • deploy: make use of sveltin.json and tui redesigned (the progressbar component is now the one provided by prompti);
  • renaming SveltinConfig struct as SveltinSettings;
  • renaming ProjectData struct as EnvProductionData;
  • fileNotFound error now display the file path;
  • cmds: prompt handlers moved to tui/prompts;
  • sveltin theme: simplified components structure and styles. Lint style files with stylelint;

Dependencies Updated

  • update charmbracelet/bubbles to v0.15.0
  • update charmbracelet/bubbletea to v0.23.2
  • update spf13/viper to v1.15.0
  • update golang.org/x/text to v0.7.0

Chores

  • adding empty line at the end of commands chain log
  • app.html: remove prism.js loading. mdsvex includes it
  • consistent message formats across commands
  • prepend svelte-kit sync run to the build script
  • removing unused imports from page and slug svelte files
  • detecting package manager message when no npmClient flag used only
  • tuning text colors and migrate message updated
  • slug.svelte.gotxt: format date metadata with time datetime tag
  • slug.ts.gotxt: formatting - avoid blank lines
  • svelte.config.js: postcss prop for preprocessor removed when vanillacss
  • component ScrollToTopButton added to the layout when blank theme
  • validation added to the project settings file
  • @sveltejs/kit updated to v1.8.3;
  • @sveltejs/adapter-static updated to v2.0.1;
  • vite updated to v4.1.4;
  • overall npm deps updated (typescript, tslib, eslint,vite-plugin-svelte etc.);
  • removing unused imports from page and slug svelte files;
  • go deps:
  • markup:
    • tuning styles for OL;
    • utility functions added to render colored text-
  • package.json:
    • remark-previewremoved;
    • remark-slugremoved;
    • mdast-util-to-string removed;
    • unist-util-visit removed;
    • remark-external-links replaced by rehype-external-links;
  • vite.config.ts: prevent @indaco/svelte-iconoir from being externalized for SSR.

Documentation

  • commands:
    • consistent short help messages;
    • migrate added;
    • add content flags.

Pull Requests

  • Merge pull request #126 from js-deps-update
  • Merge pull request #127 from go-deps-update
  • Merge pull request #128 from mdsvex
  • Merge pull request #129 from project-settings
  • Merge pull request #130 from upgrade-cmd
  • Merge pull request #131 from sveltekit-next-538
  • Merge pull request #132 from theme-config-migration
  • Merge pull request #133 from time-datetime
  • Merge pull request #134 from sveltekit-update
  • Merge pull request #135 from remove-unused-deps
  • Merge pull request #136 from refactor-upgrade-cmd
  • Merge pull request #137 from refactor-gen-sitemap
  • Merge pull request #138 from refactor-deploy-cmd
  • Merge pull request #139 from refactor-cmd-prompts
  • Merge pull request #140 from migration-factory
  • Merge pull request #141 from fix-add-content-cmd
  • Merge pull request #142 from content-sample-cover
  • Merge pull request #143 from active-helps

@indaco indaco merged commit 9047698 into main Feb 22, 2023
@indaco indaco deleted the 0.11.0 branch February 22, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant