yarn
yarn develop
# or
yarn buildAufgabestellung
- Aufgabestellung
- Entwicklung in eigenem Branch & fortwährend push (= Backup)
- push to
mastervon Zeit zu Zeit (Empfehlung) - Abgabe digital auf Repository
Installation
- Node installieren (Version 10 – 12)
- Kennt ihr nvm?
- yarn installieren
- Kennt ihr brew?
brew install yarn - sonst:
curl -o- -L https://yarnpkg.com/install.sh | bash
- Kennt ihr brew?
Vorbereiten
- Repository klonen
- Bitte Submodule initialisieren (Terminal
git submodule update --init) - Branch erstellen (
{{vorname}}) - Beispiel von
sites/example/src/pages/-example/kopieren- Zielpfad:
sites/example/src/pages/IAD2017--{{vorname}}/
- Zielpfad:
1st Steps
- edit
.../IAD2017--{{vorname}}/index.md path: "/posts/2020/example/"ändern inpath: "/posts/2020/{{vorname}}/"
- später könnt ihr
{{vorname}}durch einen sinnvollen slug ersetzen
Starten
- im Verzeichnis:
yarnausführen (für installation) nichtnpm install!! - im Verzeichnis:
npm run startausführen - öffne http://localhost:8000/
- öffne http://localhost:8000/posts/2020/{{vorname}}/
Probleme
- URL wurde angepasst aber wird nicht angezeigt → erneut
npm run start - Bilder aktualisieren nicht →
/sites/example/.cachelöschen &npm run start