mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-28 12:59:52 +00:00
webpage: migrate from yarn to npm
This commit is contained in:
parent
0bfde0dd49
commit
b7e58b52f1
8 changed files with 18149 additions and 9560 deletions
4
.github/workflows/build-webpage.yml
vendored
4
.github/workflows/build-webpage.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,4 +6,4 @@ bash:
|
|||
docker-compose exec dev bash -c "cd /app && bash"
|
||||
|
||||
dev:
|
||||
yarn run dev
|
||||
npm run dev
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
18141
webpage/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,6 +2,5 @@
|
|||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
nodejs_20
|
||||
yarn
|
||||
];
|
||||
}
|
||||
|
|
9550
webpage/yarn.lock
9550
webpage/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue