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

Extract Astro styles to external stylesheets #43

Merged
merged 2 commits into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ module.exports = {
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-shadow': 'warn',
'prettier/prettier': 'error',
'prefer-const': 'off',
'prefer-rest-params': 'off',
'require-jsdoc': 'warn',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added this lint rule, but as a warning

},
};
7 changes: 7 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ jobs:
npm test
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: npm ci
- run: npm run lint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/concepts/build-pipeline.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: The Build Pipeline
description: Snowpack Build creates a production-ready website with or without a bundler
---
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/concepts/dev-server.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: The Dev Server
description: Snowpack's dev server is fast because it only rebuilds the files you change. Powered by ESM (ES modules).
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: HMR + Fast Refresh
description: Snowpack's ESM-powered unbundled development means near-instant single file builds that only take 10-25ms to load and update in the browser.
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: How Snowpack Works
description: Snowpack serves your application unbundled during development. Each file is built only once and is cached until it changes.
---
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/babel.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'Babel'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/connecting-tools.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: The Snowpack Guide to connecting your favorite tools
description: 'How do you use your favorite tools in Snowpack? This Guide will help you get started'
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/hmr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Hot Module Replacement (HMR)
description: Enable Snowpack's Hot Module Replacement (HMR) on your development server.
published: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: SSL Certificates
description: How to use HTTPs during development and generate SSL certifcates for your Snowpack build.
---
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/jest.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'Jest'
tags: communityGuide
img: '/img/logos/jest.svg'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Optimize & Bundle for Production
published: true
description: How to optimize your Snowpack build for production, with or without a bundler.
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/plugins.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Creating Your Own Plugin
description: Learn the basics of our Plugin API through working examples.
---
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/postcss.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'PostCSS'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/preact.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Preact
tags: communityGuide
img: '/img/logos/preact.svg'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: React + babel-plugin-import-global
published: false
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: React + Loadable Components
published: false
---
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/routing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Routing
published: true
description: This guide will walk you through some common routing scenarios and how to configure the routes option to support them in development.
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/sass.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'Sass'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/server-side-render.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Server-Side Rendering (SSR)
description: This guide will walk you through three different options for setting up Snowpack with your own custom server.
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/streaming-imports.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Streaming Imports
published: true
stream: Fetch your npm dependencies on-demand from a remote ESM CDN.
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/tailwind-css.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'Tailwind CSS'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/testing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Testing
published: true
description: How to choose and use a JavaScript test runner for your Snowpack site.
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/upgrade-guide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Snowpack Upgrade Guide
published: true
description: How to upgrade to Snowpack v3 from older versions of Snowpack.
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/vue.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Vue
tags: communityGuide
img: '/img/logos/vue.png'
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/wasm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'WASM'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/web-test-runner.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: '@web/test-runner'
tags: communityGuide
img: '/img/logos/modern-web.svg'
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/web-worker.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: 'Web Workers'
tags: communityGuide
published: true
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/astro/pages/guides/workbox.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Workbox
tags: communityGuide
description: The Workbox CLI integrates well with Snowpack.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/post.astro
layout: ../../layouts/post.astro
bannerVideo: '/img/extra-space-4.mp4'
permalink: '/posts/2020-05-26-snowpack-2-0-release/'
title: Snowpack v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/post.astro
layout: ../../layouts/post.astro
title: Snowpack 2.7
description: 'A new plugin API plus smaller, faster production builds.'
tagline: v2.7.0 release post
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/post.astro
layout: ../../layouts/post.astro
title: 'Snowpack v3.0 Release Candidate'
tagline: New features to change the way you build for the web.
description: 'New features to change the way you build for the web. Snowpack v3.0 will release on January 6th, 2021 (the one-year anniversary of its original launch post). This is our biggest release yet with some serious new features, including a new way to load npm packages on-demand that lets you skip the `npm install` step entirely.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/post.astro
layout: ../../layouts/post.astro
title: 'Snowpack v3.0'
description: Snowpack v3.0 is here! Our biggest release yet with some serious new features, including pre-bundled streaming imports, built-in bundling & optimizations, new JavaScript APIs, and more.'
date: 2021-01-13
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Command Line API
description: The Snowpack Command Line tool's API, commands, and flags.
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: layouts/content.astro
layout: ../../layouts/content.astro
title: Common Error Details
description: How to troubleshoot common issues and error messagesm, plus our resources for getting help.
---
Expand Down
Loading