Skip to content

Latest commit

 

History

History
115 lines (104 loc) · 6.43 KB

TEMPLATE.md

File metadata and controls

115 lines (104 loc) · 6.43 KB

Template Notes

Commands

npm create astro@latest -- --template minimal
npm create astro@latest -- minimal-demo --template minimal --no-install --no-git --typescript strictest
rm -rf .astro/ dist/ minimal-demo/ node_modules/
npx degit github:joaopalmeiro/template-astro
npx degit github:joaopalmeiro/template-astro --force

Snippets

.prettierrc.mjs file

// @ts-check

/** @type {import("prettier").Config} */
export default {
  printWidth: 100,
  semi: true,
  singleQuote: true,
  tabWidth: 2,
  trailingComma: 'es5',
  plugins: ['prettier-plugin-astro'],
  overrides: [
    {
      files: '*.astro',
      options: {
        parser: 'astro',
      },
    },
  ],
};