Skip to content

Commit

Permalink
📦️(frontend) integrate changesets to publish npm packages
Browse files Browse the repository at this point in the history
As recommended by TurboJS, we've integrated the changesets tool to
handle frontend related changes and packages publication to npm.
  • Loading branch information
jmaupetit committed Dec 18, 2023
1 parent f486382 commit bf52c5b
Show file tree
Hide file tree
Showing 6 changed files with 1,109 additions and 21 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ services:
- dev
volumes:
- ./src/frontend:/app
- .git:/app/.git
- ./src/app/staticfiles:/app/staticfiles
depends_on:
- api
Expand Down
8 changes: 8 additions & 0 deletions src/frontend/.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)
11 changes: 11 additions & 0 deletions src/frontend/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ WORKDIR /app
# -- Development --
FROM core as development

# Install Git (required for changeset)
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*

# Un-privileged user running the application
USER ${DOCKER_USER:-1000}

Expand Down
4 changes: 3 additions & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"engines": {
"node": ">=16.0.0"
},
"dependencies": {},
"dependencies": {
"@changesets/cli": "2.27.1"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit bf52c5b

Please sign in to comment.