mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-01-26 03:14:08 +00:00
Yarnify project
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
*.log
|
||||
.DS_Store
|
||||
.history
|
||||
.next
|
||||
node_modules
|
||||
out
|
||||
.history
|
||||
package-lock.json
|
||||
@@ -1,12 +1,12 @@
|
||||
script: npm run build
|
||||
script: yarn build
|
||||
language: node_js
|
||||
node_js:
|
||||
- "11.6.0"
|
||||
install:
|
||||
- npm install
|
||||
- yarn
|
||||
test:
|
||||
- npm run lint
|
||||
- npm run build
|
||||
- yarn lint
|
||||
- yarn build
|
||||
deploy:
|
||||
local_dir: out
|
||||
provider: pages
|
||||
|
||||
11
README.md
11
README.md
@@ -20,6 +20,7 @@
|
||||
### Vaaditut työkalut
|
||||
|
||||
- Asenna [Node.js](http://nodejs.org)
|
||||
- Asenna [Yarn 1.x](https://classic.yarnpkg.com/en/)
|
||||
- Asenna [Git](https://git-scm.com/) client lähdekoodin hallintaan
|
||||
|
||||
### Kloonaa projekti koneellesi
|
||||
@@ -32,8 +33,8 @@ git clone https://github.com/koodiklinikka/koodiklinikka.fi.git
|
||||
|
||||
```sh
|
||||
cd koodiklinikka.fi
|
||||
npm install
|
||||
npm start
|
||||
yarn
|
||||
yarn start
|
||||
```
|
||||
|
||||
### Avaa esikatselu selaimessa
|
||||
@@ -43,15 +44,15 @@ Avaa selaimessasi: [`http://localhost:3000`](http://localhost:3000)
|
||||
|
||||
## Komennot
|
||||
|
||||
### `npm install`
|
||||
### `yarn`
|
||||
|
||||
Asentaa projektin riippuvuudet
|
||||
|
||||
### `npm start`
|
||||
### `yarn`
|
||||
|
||||
Kääntää lähdetiedostot ja palvelee sovellusta porttiin `3000`
|
||||
|
||||
### `npm run build`
|
||||
### `yarn build`
|
||||
|
||||
Kääntää lähdetiedostot -> `out/` -hakemistoon
|
||||
|
||||
|
||||
7808
package-lock.json
generated
7808
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user