Skip to content

Commit

Permalink
Základní struktura
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipChalupa committed Jul 20, 2022
0 parents commit b6dd39f
Show file tree
Hide file tree
Showing 11 changed files with 334 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/quality-assurance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Quality assurance

on: push

jobs:
test:
name: Quality assurance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: npm ci
- name: Run
run: npm run quality-assurance
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"endOfLine": "lf"
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Javascript kurzy [![quality assurance](https://github.com/Czechitas-podklady-WEB/javascript-vyuka/actions/workflows/quality-assurance.yml/badge.svg)](https://github.com/Czechitas-podklady-WEB/javascript-vyuka/actions)

Studijní materiály pro DA Web na kodim.cz

## Formátování

Pro jednotný formát podkladů je v repozitáři konfigurace pro Prettier, který je možný v IDE nastavit jako výchozí formátovač nebo ho lze pouštět ručně přes:

```sh
npm ci
npm run fix
```
225 changes: 225 additions & 0 deletions assets/intro-image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions entry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: JavaScript
lead: Kurzy JavaScriptu
image: intro-image.svg
chapters:
- uvod-do-programovani-1
# - uvod-do-programovani-2
# - js-1
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scripts": {
"quality-assurance": "prettier --check \"**/*.{md,html,js,css}\"",
"fix": "prettier --write \"**/*.{md,html,js,css}\""
},
"devDependencies": {
"prettier": "2.6.2"
}
}
5 changes: 5 additions & 0 deletions uvod-do-programovani-1/blok-1/entry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Blok 1
lead: Proměnné, klíčová slova, alert, konzole, datové typy a operátory
access: claim
sections:
- promenne
14 changes: 14 additions & 0 deletions uvod-do-programovani-1/blok-1/promenne.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Proměnné

```js
let vek = 20
let jmeno = 'Michal'
let vyska = 1.75

let vek
vek = 20

let jmeno
let Jmeno
let jméno
```
4 changes: 4 additions & 0 deletions uvod-do-programovani-1/entry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Úvod do programování 1
lead: Zjistíte, že programování nemusí být nudný shluk závorek, písmen a číslic. Poznáte základy programování.
lessons:
- blok-1

0 comments on commit b6dd39f

Please sign in to comment.