Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/upload-to-google-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ outputs:
webViewLink:
description: 'A link to view the document in the browser.'
runs:
using: 'node16'
using: 'node20'
main: 'index.js'
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
path: my_project/
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 22.x
cache: 'npm'
cache-dependency-path: ./my_project/client/package-lock.json
- name: 📦 Install frontend dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
uv run cookiecutter . --config-file $config_file --no-input -f
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 22.x
- name: 📦 Install dependencies
env:
NPM_CONFIG_PRODUCTION: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: 22.x

- name: Install dependencies
run: npm install @actions/core googleapis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 22.x
- name: 📦 Install dependencies
env:
NPM_CONFIG_PRODUCTION: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: {{ "${{ github.event.deployment.sha || github.ref }}" }}
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 22.x
cache: 'npm'
cache-dependency-path: ./client/package-lock.json
- name: Install dependencies
Expand Down
349 changes: 80 additions & 269 deletions {{cookiecutter.project_slug}}/clients/mobile/react-native/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "npm run start:nc",
"start:docker": "expo start -c --lan --dev-client",
"start:nc": "expo start -c --go",
"start:prod": "expo start --no-dev --minify",
"start:android": "expo start --android",
Expand Down
9 changes: 9 additions & 0 deletions {{cookiecutter.project_slug}}/compose/mobile/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:22-alpine

WORKDIR /app/mobile


COPY ./mobile/package.json /app/mobile/package.json
RUN npm i

CMD ["npm", "run", "start:docker"]
20 changes: 20 additions & 0 deletions {{cookiecutter.project_slug}}/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,23 @@ services:
{% if cookiecutter.client_app == 'React' %}
- VITE_CACHE_DIR=./vite
{% endif %}

{% if cookiecutter.include_mobile %}
mobile:
container_name: mobile
build:
context: .
dockerfile: ./compose/mobile/Dockerfile
volumes:
- ".:/app"
# This line avoids copying local node_modules folder to the Docker container, and uses the ones installed during build
- "/app/mobile/node_modules"
ports:
- "8081:8081"
#- "49153:49153"
environment:
- CHOKIDAR_USEPOLLING=true
- EXPO_TOKEN=true
- VITE_CACHE_DIR=./vite
{% endif %}

4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"heroku-postbuild": "cd client && npm run build"
},
"engines": {
"node": "22.*.*",
"npm": "10.*.*"
"node": "22.x",
"npm": "10.x"
},
"cacheDirectories": [
"client/node_modules",
Expand Down
Loading