Skip to content

Commit

Permalink
Vite 5, e2e tests, pre-commit hook, and GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Medley committed May 25, 2024
1 parent 49f5cef commit 7225fa3
Show file tree
Hide file tree
Showing 27 changed files with 2,625 additions and 8,566 deletions.
14 changes: 7 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
VITE_BASE_CONFIG_VERSION=^5
VITE_BASE_CONFIG_VERSION=^6
CEDAR_VERSION=^15
CEDAR_TOKENS_VERSION=^12
CEDAR_COMPONENT_VARIABLES_VERSION=^9
REI_METRICS_VERSION=^3
REI_SSR_VERSION=^4
CDP_VERSION=^11
VITE_PLUGIN_UPLOADER_VERSION=^2
ALPINE_SATCHEL_CLEANER_VERSION=^2
REI_SSR_VERSION=^5
CDP_VERSION=^12
VITE_PLUGIN_UPLOADER_VERSION=^3
ALPINE_SATCHEL_CLEANER_VERSION=^3
VUE_VERSION=^3
VITE_VERSION=^4
VITE_VERSION=^5
VITEST_VERSION=^1
VITEST_COVERAGE_VERSION=^1
VITE_PLUGIN_DATADOG_VERSION=^1
VITE_PLUGIN_DATADOG_VERSION=^2
TYPESCRIPT_VERSION=^5
ESLINT_VERSION=^8
VUE_TEST_UTILS_VERSION=^2
Expand Down
35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Unit test and build

on: [push]

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- run: npm ci
- run: npm run prepublishOnly
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ coverage/
*.njsproj
*.sln
*.tgz
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
e2e-test-*
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run prepublishOnly && npm run lint-staged
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
templates
dist
coverage
node_modules
13 changes: 12 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# Release Notes

## 3.0.0

- Bumps dependencies for `@rei/create-package`
- Upgrades Vite 5 and bumps associated dependencies for all initializer templates
- Replaces import assertion with readFile/Parse JSON option to avoid warning and potential breakage in the future
- Removes `eslint` and associated config and dependencies
- Adds `lint-staged` to handle formatting staged files with prettier.
- Adds pre-commit hook via `husky` to verify changes and execute `lint-staged`
- Adds GitHub actions work-flow to build and test the initializer with changes
- Adds end-to-end (e2e) tests that can be manually executed (`npm run test:e2e) to ensure each template is properly scaffolded, installed, and built without error.

## 2.7.0 - 2024/04/23

- Add option include/configure the `@rei/vite-plugin-datadog-rum` plugin to generate additional bundle needed for Datadog monitoring.
- Update dependencies
- Get version from package.json
- Get the version from package.json
- Update docs around scaffolding either JS or TS. Since we aren't backporting new features/fixes to the 1.x line as well as our team moving to TS, moving forward, we are strongly encouraging new code to be written in TS

## 2.6.0
Expand Down
Loading

0 comments on commit 7225fa3

Please sign in to comment.