Skip to content

Commit

Permalink
Version 0.4.0 (#40)
Browse files Browse the repository at this point in the history
Merge next into main (v0.4.0)
  • Loading branch information
Dschungelabenteuer authored Mar 30, 2024
1 parent a9ff30c commit 67233cb
Show file tree
Hide file tree
Showing 579 changed files with 29,088 additions and 4,776 deletions.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"vite-plugin-entry-shaking-example-complete",
"vite-plugin-entry-shaking-example-template",
"vite-plugin-entry-shaking-example-syntaxes",
"vite-plugin-entry-shaking-example-simple"
]
}
32 changes: 32 additions & 0 deletions .changeset/rich-snails-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'vite-plugin-entry-shaking': minor
---

### Features

- Refined logger and added some websocket messages to extend debugging/benchmarking abilities
- Added an experimental debugger application
- Added an example generator CLI for easier repros
- Added support for wilcard imports analysis (fixes #34)
- Added support for target's default export (this limitation was not known/documented and found with
updated tests)
- Added glob patterns support for "targets" option (thanks
[moushicheng](https://github.com/moushicheng))

### Chore

- Created some kind of logo, please don't hate I'm not a designer
- Revamped examples with a simple webapp that one can use to test and debug this plugin against
use-cases
- Reworked tests to get even more coverage and confidence
- Made names more consistent with options and docs (especially entry -> target)
- Updated dependencies

### Fixes

- Fixed an issue when re-exporting aliased entity (fixes #28, thanks
[fdc-viktor-luft](https://github.com/fdc-viktor-luft) for reporting & investigating)
- Fixed an issue with multiline imports/exports (fixes #35, thanks
[mx-bernhard](https://github.com/mx-bernhard) for reporting & contributing)
- Fixed an issue where if a target was default exporting something, importing that default export
would probably result in error.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"extends": ["@yungezeit/base", "prettier"],
"ignorePatterns": ["README.md"]
"ignorePatterns": [
"README.md",
"RESOURCES.md",
"_template_",
"scripts",
"examples/syntaxes/src/data",
".github"
]
}
22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Bug report
description: >-
Create a report to help us improve
title: '[Bug]: '
labels:
- bug
body:
- type: checkboxes
id: target
attributes:
label: What does the bug relate to?
options:
- label: Plugin's core
- label: Debugger
validations:
required: true
- type: textarea
id: description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: To Reproduce
description: Steps to reproduce the behavior
placeholder: >-
1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error
validations:
required: true
- type: input
id: vite-version
attributes:
label: Vite version
placeholder: '5.1.0'
validations:
required: true
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Feature request
description: >-
Suggest an idea for this project
title: '[Feature request]: '
labels:
- feature request
body:
- type: checkboxes
id: target
attributes:
label: What does the feature request relate to?
options:
- label: Plugin's core
- label: Debugger
validations:
required: true
- type: textarea
id: why
attributes:
label: Is your feature request related to a problem?
description: A clear and concise description of what the problem is
placeholder: Ex. I'm always frustrated when [...]
- type: textarea
id: what
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description:
A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ runs:
using: composite
steps:
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
Expand All @@ -22,7 +22,7 @@ runs:
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node & pnpm dependencies
uses: ./.github/actions/install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node & pnpm dependencies
uses: ./.github/actions/install
Expand All @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node & pnpm dependencies
uses: ./.github/actions/install
Expand All @@ -40,7 +40,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node & pnpm dependencies
uses: ./.github/actions/install
Expand Down
27 changes: 26 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dev-dist
dist
dist-ssr
*.local

# Tests
coverage
*.log

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*storybook.log
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/examples/*
/packages/core/tests/__mocks__
/packages/core/tests/cases
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
// Only needed if you're working on the example wrapper app.
"Vue.volar",
]
}
14 changes: 12 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
// DX.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"eslint.validate": ["javascript", "javascriptreact", "yaml", "json", "jsonc", "json5"]
// ESLint.
"eslint.validate": ["javascript", "javascriptreact", "yaml", "json", "jsonc", "json5"],
"html.format.wrapAttributes": "force-expand-multiline",
// Stylelint.
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"stylelint.enable": true,
"stylelint.validate": ["css", "scss", "postcss", "vue"]
}
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ free to create a
2. [Forking the repository](#forking-the-repository)
3. [Installing dependencies](#installing-dependencies)
4. [Start developing](#start-developing)
5. [Checking your work](#start-developing)
5. [Checking your work](#checking-your-work)
6. [Adding a changeset](#adding-a-changeset)
7. [Submitting a pull request](#submitting-a-pull-request)

Expand Down Expand Up @@ -93,6 +93,10 @@ your changes without having to actually rebuild anything. When the passive watch
can test your changes against on of the provided
[examples](https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking/tree/main/examples).

The
["Resources" document](https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking/blob/main/RESOURCES.md)
also may help you understand how the plugin works under the hood and provide a bit of guidance when working with this repo's codebase.

## Checking your work

Once you feel confident with your change and ready to share your contribution, please make sure you
Expand Down
Loading

0 comments on commit 67233cb

Please sign in to comment.