Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nikitapilgrim/web
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: FredKSchott/snowpack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
Showing 1,071 changed files with 145,843 additions and 3,723 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
9 changes: 9 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"ignore": ["@snowpack/test-*"]
}
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @snowpackjs/maintainers
docs/* @snowpackjs/docs
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
---- ⛔ STOP!
----
---- This project supports GitHub's new Discussions feature!
---- Issues are handled a little bit differently than you might be used to.
----
---- ❗️ Don't start by creating a new issue. Instead, create a discussion:
---- 🔎 Search Existing: https://github.com/withastro/snowpack/discussions
---- 📝 Create New: https://github.com/withastro/snowpack/discussions/category_choices
----
---- More information on how our team manages issues & discussions:
---- https://github.com/withastro/snowpack/discussions/613#discussioncomment-41103
--->

**Original Discussion:** <!-- URL to discussion -->
**/cc** <!-- @mention everyone from discussion -->
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/---bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "\U0001F41B Bug Report"
description: Report an issue or possible bug
title: "\U0001F41B BUG:"
labels: []
assignees: []
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: checkboxes
attributes:
label: Quick checklist
options:
- label: I am using the **latest version of Snowpack** and all plugins.
- type: input
attributes:
label: What package manager are you using?
placeholder: npm, yarn, pnpm
validations:
required: true
- type: input
attributes:
label: What operating system are you using?
placeholder: macOS, Windows, Linux
validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: Describe the bug in steps that we can reproduce ourselves.
value: |
1. `npx create-snowpack-app` using template <NAME>
2. ...
3. ...
4. ...
5. Error! Describe what went wrong (and what was expected instead)...
validations:
required: true
- type: input
attributes:
label: Link to minimal reproducible example (optional)
description: 'Issues with easy reproductions are more likely to get fixed, faster.'
placeholder: 'https://github.com/username/repo'
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/---feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "\U0001F4A1 Feature Request"
description: 'Submit an RFC or suggest an idea for this project'
title: "\U0001F4A1 RFC: "
labels: ['feature']
assignees: []
body:
- type: markdown
attributes:
value: Thanks for taking the time to suggest a new feature! Please fill out this form as completely as possible.
- type: textarea
attributes:
label: Motivation
description: |
A quick, clear and concise description of what the problem is.
**Please include links to relevant issues, Discord convos, and anything else.**
placeholder: I want to be able to...
validations:
required: true
- type: textarea
attributes:
label: Proposed solution
description: Your take on one (or more) possible solution(s) to problem.
value: |
### Possible solutions
### Alternatives considered
### Risks, downsides, and/or tradeoffs
validations:
required: true
- type: textarea
attributes:
label: Detailed design
description: |
🛑 **Just looking for feedback on an idea? Leave this section blank.**
Otherwise, explain the exact steps required to implement this change.
Include specific details that would help someone implement this feature.
- type: textarea
attributes:
label: Open questions
description: |
Are there any open questions remaining? List them here.
- type: checkboxes
attributes:
label: Help make it happen!
description: 'Tip: RFCs with contributing authors are much more likely to get done!'
options:
- label: I am willing to submit a PR to implement this change.
- label: I am willing to submit a PR to implement this change, but would need some guidance.
- label: I am not willing to submit a PR to implement this change.
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 💬 Everything else
about: Ask questions and get help from our community!
url: https://github.com/withastro/snowpack/discussions
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Changes

<!-- What does this change, in plain language? -->
<!-- Before/after screenshots may be helpful. -->

## Testing

<!-- How was this change tested? -->
<!-- DON'T DELETE THIS SECTION! If no tests added, explain why -->

## Docs

<!-- Was public documentation updated? -->
<!-- DON'T DELETE THIS SECTION! If no docs added, explain why (e.g. "bug fix only") -->
32 changes: 32 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Format Code'

on:
push:
branches:
- main

env:
node_version: 14

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
- name: yarn install
run: yarn --frozen-lockfile
env:
CI: true
- name: yarn format
run: yarn format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] yarn format'
branch: ${{ github.head_ref }}
push_options: --force
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint Code

on:
push:
branches:
- main
pull_request:

env:
node_version: 14

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
- name: lint
run: |
yarn --ignore-engines --frozen-lockfile
yarn build
yarn lint
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Inspired by https://bret.io/projects/package-automation/

name: Create Release

on:
workflow_dispatch:
inputs:
tag:
description: 'what kind of release? (ex: "next", "latest")'
required: true
packagePath:
description: 'path to package? (ex: "snowpack", "plugins/plugin-babel")'
required: true

env:
node_version: 14

jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
# SETUP:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
# (REQUIRED) setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token.
registry-url: 'https://registry.npmjs.org'
- run: git config --global user.email "github-ci@snowpack.dev"
- run: git config --global user.name " ${{ github.actor }}"
- run: yarn --frozen-lockfile

# PUBLISH:
- run: node -e "require('./scripts/release.cjs')('${{ github.event.inputs.packagePath }}', '${{ github.event.inputs.tag }}')"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Code

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: build
run: |
yarn --ignore-engines --frozen-lockfile
yarn build
env:
CI: true
- name: test
run: yarn test
env:
CI: true
20 changes: 18 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
.DS_Store
.build
.idea
.snowpack
.vercel
lerna-debug.log
node_modules
web_modules
pkg
package-lock.json
create-snowpack-app/*/build
test/__temp__
test/build/**/build
test/build/**/TEST_BUILD_OUT
test/build/**/web_modules
test/create-snowpack-app/test-install
test/esinstall/**/web_modules
yarn-error.log

# Ignore files that are copied from /docs
www/_template/**/*.md
!www/_template/posts/**/*.md
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor
dist
test/build/**/build
create-snowpack-app/**/build
packages
pkg
TEST_BUILD_OUT
web_modules
test/create-snowpack-app/test-install
.snowpack
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## Version 3.x

The CHANGELOG.md for the current 3.x version of Snowpack is maintained in the `/snowpack` directory at: https://github.com/withastro/snowpack/blob/main/snowpack/CHANGELOG.md

## Version 2.x

The CHANGELOG.md for version 2.x is currently maintained in a discussion so that you can subscribe for updates:
**https://github.com/withastro/snowpack/discussions/1183**
Loading