webpage: migrate from yarn to npm

This commit is contained in:
Patrizio Bekerle 2023-10-17 20:04:29 +02:00
parent 0bfde0dd49
commit b7e58b52f1
No known key found for this signature in database
GPG key ID: 67EF441ECF195217
8 changed files with 18149 additions and 9560 deletions

View file

@ -34,5 +34,5 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20'
- run: yarn install
- run: yarn run build
- run: npm install
- run: npm run build

View file

@ -3,7 +3,7 @@
FROM node:20-alpine as node
COPY . /app
WORKDIR /app
RUN yarn install
RUN npm install
RUN ./scripts/run-build.sh
FROM nginx:latest

View file

@ -6,4 +6,4 @@ bash:
docker-compose exec dev bash -c "cd /app && bash"
dev:
yarn run dev
npm run dev

View file

@ -2,7 +2,6 @@
## Dev Dependencies
- [yarn](https://yarnpkg.com/)
- [nodejs](https://nodejs.org/en/)
## Development
@ -15,17 +14,17 @@ git clone https://github.com/pbek/QOwnNotes.git
cd QOwnNotes/webpage
# install dependencies
yarn install
npm install
# build the webpage in development mode with hot reloading
yarn run dev
npm run dev
```
Then you can open the webpage in your browser at <http://0.0.0.0:8080/>.
Every change you make to the source code will be automatically reflected in the webpage.
If you run `yarn run build` the webpage will be built in production mode in `webpage/src/.vuepress/dist`.
If you run `npm run build` the webpage will be built in production mode in `webpage/src/.vuepress/dist`.
## Customization

View file

@ -7,7 +7,7 @@ services:
user: 1000:1000
ports:
- "8080:8080"
command: ['/bin/bash', '-c', 'cd /app && yarn install && yarn run dev']
command: ['/bin/bash', '-c', 'cd /app && npm install && npm run dev']
# web:
# image: img-qownnotes-webpage

18141
webpage/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,5 @@
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
nodejs_20
yarn
];
}

File diff suppressed because it is too large Load diff