Skip to content

Commit a1ae62d

Browse files
Kurt MedleyHeavyMedl
Kurt Medley
authored andcommitted
Vite 5, e2e tests, pre-commit hook, and GitHub workflow
1 parent 49f5cef commit a1ae62d

28 files changed

+2673
-8566
lines changed

.env

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
VITE_BASE_CONFIG_VERSION=^5
1+
VITE_BASE_CONFIG_VERSION=^6
22
CEDAR_VERSION=^15
33
CEDAR_TOKENS_VERSION=^12
44
CEDAR_COMPONENT_VARIABLES_VERSION=^9
55
REI_METRICS_VERSION=^3
6-
REI_SSR_VERSION=^4
7-
CDP_VERSION=^11
8-
VITE_PLUGIN_UPLOADER_VERSION=^2
9-
ALPINE_SATCHEL_CLEANER_VERSION=^2
6+
REI_SSR_VERSION=^5
7+
CDP_VERSION=^12
8+
VITE_PLUGIN_UPLOADER_VERSION=^3
9+
ALPINE_SATCHEL_CLEANER_VERSION=^3
1010
VUE_VERSION=^3
11-
VITE_VERSION=^4
11+
VITE_VERSION=^5
1212
VITEST_VERSION=^1
1313
VITEST_COVERAGE_VERSION=^1
14-
VITE_PLUGIN_DATADOG_VERSION=^1
14+
VITE_PLUGIN_DATADOG_VERSION=^2
1515
TYPESCRIPT_VERSION=^5
1616
ESLINT_VERSION=^8
1717
VUE_TEST_UTILS_VERSION=^2

.eslintrc.json

-35
This file was deleted.

.github/workflows/build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Unit test and build
2+
3+
on: [push]
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Use Node.js
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20.x'
15+
cache: 'npm'
16+
- run: npm ci
17+
- run: npm run prepublishOnly

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ coverage/
1212
*.njsproj
1313
*.sln
1414
*.tgz
15-
tsconfig.tsbuildinfo
15+
tsconfig.tsbuildinfo
16+
e2e-test-*

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run prepublishOnly && npm run lint-staged

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
templates
2+
dist
3+
coverage
4+
node_modules

RELEASE-NOTES.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
# Release Notes
22

3+
## 3.0.0
4+
5+
- Bumps dependencies for `@rei/create-package`
6+
- Upgrades Vite 5 and bumps associated dependencies for all initializer templates
7+
- Replaces import assertion with readFile/Parse JSON option to avoid warning and potential breakage in the future
8+
- Removes `eslint` and associated config and dependencies
9+
- Adds `lint-staged` to handle formatting staged files with prettier.
10+
- Adds pre-commit hook via `husky` to verify changes and execute `lint-staged`
11+
- Adds GitHub actions work-flow to build and test the initializer with changes
12+
- 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.
13+
314
## 2.7.0 - 2024/04/23
415

516
- Add option include/configure the `@rei/vite-plugin-datadog-rum` plugin to generate additional bundle needed for Datadog monitoring.
617
- Update dependencies
7-
- Get version from package.json
18+
- Get the version from package.json
819
- 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
920

1021
## 2.6.0

0 commit comments

Comments
 (0)