File tree Expand file tree Collapse file tree 7 files changed +8916
-24
lines changed Expand file tree Collapse file tree 7 files changed +8916
-24
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ temp_webmaps/Naivasha
52
52
** /** /node_modules
53
53
** /** /package-lock.json
54
54
** /** /package.json
55
- ** /** /yarn.lock
56
55
** /** /.pnpm-store
57
56
58
57
# pdm
Original file line number Diff line number Diff line change 6
6
"prettier" : " ^3.3.2" ,
7
7
"prettier-plugin-tailwindcss" : " ^0.6.5" ,
8
8
"tailwindcss" : " ^3.4.4"
9
- }
9
+ },
10
+ "packageManager" : " pnpm@9.15.5+sha512.845196026aab1cc3f098a0474b64dfbab2afe7a1b4e91dd86895d8e4aa32a7a6d03049e2d0ad770bbe4de023a7122fb68c1a1d6e0d033c7076085f9d5d4800d4"
10
11
}
Original file line number Diff line number Diff line change 1
- v18.16 .0
1
+ v22.13 .0
Original file line number Diff line number Diff line change 1
1
# ARG for the base image
2
- ARG NODE_BASE=18.16 .0-bullseye-slim
2
+ ARG NODE_BASE=22.13 .0-bullseye-slim
3
3
ARG MINIO_TAG=RELEASE.2024-08-03T04-33-23Z
4
4
ARG BASE64_ARGS_TO_ENV=ENV_VARS_BASE64_ENCODED_FOR_LIVE
5
5
@@ -10,17 +10,21 @@ WORKDIR /app
10
10
11
11
# Run development environment
12
12
FROM base AS development
13
- ENTRYPOINT ["/bin/sh" , "-c" , "yarn; yarn start --host 0.0.0.0;" ]
13
+ ENTRYPOINT ["/bin/sh" , "-c" , "pnpm install; pnpm run start --host 0.0.0.0;" ]
14
14
15
15
# Generate frontend build files
16
16
FROM base AS build
17
17
ARG BASE64_ARGS_TO_ENV
18
18
19
- COPY ./package.json .
20
- RUN yarn
19
+ COPY ./package.json pnpm-lock.yaml .
20
+ # FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627
21
+ RUN npm install -g corepack@0.31.0
22
+ # FIXME delete this line after fixed upstream
23
+ RUN corepack prepare pnpm@9.15.5 --activate && corepack enable && corepack install
24
+ RUN pnpm install
21
25
COPY . /app
22
26
RUN ( echo ${BASE64_ARGS_TO_ENV} | base64 -di ) > .env
23
- RUN yarn build
27
+ RUN pnpm run build
24
28
25
29
# Copy static files to minio and generated index.html to volume
26
30
FROM docker.io/minio/minio:${MINIO_TAG} AS live
Original file line number Diff line number Diff line change 1
1
## Getting started with the starter kit
2
2
3
- 1 . Do not use npm to install packages, use yarn. If you want to run ` npm install ` then delete the ` yarn.lock ` file and install the packages using npm.
3
+ 1 . Do not use npm to install packages, use pnpm. If you want to run ` npm install `
4
+ then delete the ` pnpm-lock.yaml ` file and install the packages using npm.
4
5
5
6
2 . Create a .env file and copy .env.example to .env
6
7
7
- 3 . Run ` yarn dev` to start the development server.
8
+ 3 . Run ` pnpm dev` to start the development server.
8
9
9
10
4 . If there is error on "/dashboard" route then comment out the proxy setup part on ` vite.config.ts ` file.
10
11
11
- ## Folder Structure
12
-
13
- - [ API] ( ./src/api/readme.md ) $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$--> Api's for the project
14
-
15
- - [ Wrappers] ( ./src/api/wrappers/readme.md ) $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$--> Wrappers
16
-
17
- - [ Routes] ( ./src/routes/readme.md ) $~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$--> Routes
18
-
19
- - [ Utils] ( ./src/utils/readme.md )
20
-
21
- - [ UI] ( ./src/ui/readme.md )
22
-
23
12
## Example to add shadcn component (select component- [ link] ( https://ui.shadcn.com/docs/components/select ) )
24
13
25
14
npx shadcn-ui add select
Original file line number Diff line number Diff line change 3
3
"@cyntler/react-doc-viewer" : " ^1.17.0" ,
4
4
"@geomatico/maplibre-cog-protocol" : " ^0.3.1" ,
5
5
"@hotosm/gcp-editor" : " ^0.0.9" ,
6
+ "@hotosm/ui" : " 0.2.0-b6" ,
6
7
"@mapbox/mapbox-gl-draw" : " ^1.4.2" ,
7
8
"@mapbox/mapbox-gl-draw-static-mode" : " ^1.0.1" ,
8
9
"@radix-ui/react-popover" : " ^1.0.6" ,
95
96
" prettier --cache --write"
96
97
]
97
98
},
98
- "name" : " starterkit-v2 " ,
99
+ "name" : " drone-tm " ,
99
100
"private" : true ,
100
101
"scripts" : {
101
102
"build" : " tsc && vite build" ,
105
106
"start" : " vite"
106
107
},
107
108
"type" : " module" ,
108
- "version" : " 0.0.0"
109
+ "version" : " 0.0.0" ,
110
+ "packageManager" : " pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
109
111
}
You can’t perform that action at this time.
0 commit comments