├── src └── index.html ├── .prettierrc.json ├── README.md ├── Clone Repo.md ├── package.json ├── ParcelTemplate.md ├── .gitignore └── GIT COMMANDS.md /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | JS-Bootcamp 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 80, 3 | "tabWidth": 2, 4 | "useTabs": false, 5 | "semi": true, 6 | "singleQuote": true, 7 | "trailingComma": "all", 8 | "bracketSpacing": true, 9 | "jsxBracketSameLine": false, 10 | "arrowParens": "avoid", 11 | "proseWrap": "always" 12 | } 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JS Bootcamp 2 | 3 | ## Посилання на корисні сайти 4 | 5 | - [LeetСode](https://leetcode.com) 6 | - [CodeWars](https://www.codewars.com/dashboard) 7 | - [CodeChef](https://www.codechef.com/learn) 8 | - [Зручний фільтр задач](https://acmp.ru/index.asp?main=tasks) 9 | - [Підготовка до співбесіди](https://www.interviewbit.com/practice/) 10 | -------------------------------------------------------------------------------- /Clone Repo.md: -------------------------------------------------------------------------------- 1 | ### …or create a new repository on the command line 2 | ``` 3 | echo "# template-parcel" >> README.md 4 | git init 5 | git add README.md 6 | git commit -m "first commit" 7 | git branch -M main 8 | git remote add origin https://github.com/GoITteacher/template-parcel.git 9 | git push -u origin main 10 | ``` 11 | --- 12 | 13 | ### …or push an existing repository from the command line 14 | ``` 15 | git remote add origin https://github.com/GoITteacher/template-parcel.git 16 | git branch -M main 17 | git push -u origin main 18 | ``` 19 | 20 | --- 21 | 22 | [Доп Инфа](https://stackoverflow.com/questions/42830557/git-remote-add-origin-vs-remote-set-url-origin) -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "js-example", 3 | "version": "1.0.0", 4 | "description": "", 5 | "scripts": { 6 | "start": "parcel src/*.html", 7 | "build": "parcel build src/*.html --public-url /js-example/", 8 | "push": "git add . && git commit -m 'update' && git push" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/GoITteacher/js-example.git" 13 | }, 14 | "author": "", 15 | "license": "ISC", 16 | "bugs": { 17 | "url": "https://github.com/GoITteacher/js-example/issues" 18 | }, 19 | "homepage": "https://github.com/GoITteacher/js-example#readme", 20 | "devDependencies": { 21 | "parcel-bundler": "^1.12.4", 22 | "parcel-plugin-handlebars-precompile": "^1.0.2" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ParcelTemplate.md: -------------------------------------------------------------------------------- 1 | # Basic 2 | 3 | ## .posthtmlrc 4 | 5 | ```json 6 | { 7 | "plugins": { 8 | "posthtml-include": { 9 | "root": "./src" 10 | } 11 | } 12 | } 13 | ``` 14 | 15 | --- 16 | 17 | ## .parcelrc 18 | 19 | ```json 20 | { 21 | "extends": ["@parcel/config-default"], 22 | "reporters": ["...", "parcel-reporter-clean-dist"] 23 | } 24 | ``` 25 | 26 | --- 27 | 28 | ## .htmlnanorc 29 | 30 | ```json 31 | { 32 | "minifySvg": false 33 | } 34 | ``` 35 | 36 | --- 37 | 38 | ## .sassrc 39 | 40 | ```json 41 | { 42 | "includePaths": ["node_modules"] 43 | } 44 | ``` 45 | 46 | --- 47 | 48 | # Example package.json 49 | 50 | ```json 51 | { 52 | "name": "project_name", 53 | "version": "2.0.0", 54 | "description": "", 55 | "homepage": "https://your_username.github.io/your_repo_name", 56 | "scripts": { 57 | "start": "parcel src/*.html", 58 | "build": "parcel build src/*.html --public-url /your_repo_name/" 59 | }, 60 | "repository": { 61 | "type": "git", 62 | "url": "git+https://github.com/your_username/your_repo_name.git" 63 | }, 64 | "keywords": [], 65 | "author": "********* <*********>", 66 | "license": "ISC", 67 | "bugs": { 68 | "url": "*********" 69 | }, 70 | "dependencies": { 71 | "modern-normalize": "^1.1.0" 72 | }, 73 | "devDependencies": { 74 | "@parcel/transformer-sass": "^2.6.0", 75 | "parcel": "^2.6.0", 76 | "parcel-reporter-clean-dist": "^1.0.4", 77 | "posthtml-include": "^1.7.4" 78 | }, 79 | "browserslist": "> 0.5%, last 2 versions, not dead" 80 | } 81 | ``` 82 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # MacOS attrs 2 | .DS_Store 3 | 4 | # Logs 5 | logs 6 | *.log 7 | npm-debug.log* 8 | yarn-debug.log* 9 | yarn-error.log* 10 | lerna-debug.log* 11 | 12 | # Diagnostic reports (https://nodejs.org/api/report.html) 13 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 14 | 15 | # Runtime data 16 | pids 17 | *.pid 18 | *.seed 19 | *.pid.lock 20 | 21 | # Directory for instrumented libs generated by jscoverage/JSCover 22 | lib-cov 23 | 24 | # Coverage directory used by tools like istanbul 25 | coverage 26 | *.lcov 27 | 28 | # nyc test coverage 29 | .nyc_output 30 | 31 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 32 | .grunt 33 | 34 | # Bower dependency directory (https://bower.io/) 35 | bower_components 36 | 37 | # node-waf configuration 38 | .lock-wscript 39 | 40 | # Compiled binary addons (https://nodejs.org/api/addons.html) 41 | build/Release 42 | 43 | # Dependency directories 44 | node_modules/ 45 | jspm_packages/ 46 | 47 | # TypeScript v1 declaration files 48 | typings/ 49 | 50 | # TypeScript cache 51 | *.tsbuildinfo 52 | 53 | # Optional npm cache directory 54 | .npm 55 | 56 | # Optional eslint cache 57 | .eslintcache 58 | 59 | # Microbundle cache 60 | .rpt2_cache/ 61 | .rts2_cache_cjs/ 62 | .rts2_cache_es/ 63 | .rts2_cache_umd/ 64 | 65 | # Optional REPL history 66 | .node_repl_history 67 | 68 | # Output of 'npm pack' 69 | *.tgz 70 | 71 | # Yarn Integrity file 72 | .yarn-integrity 73 | 74 | # dotenv environment variables file 75 | .env 76 | .env.test 77 | 78 | # parcel-bundler cache (https://parceljs.org/) 79 | .cache 80 | 81 | # Next.js build output 82 | .next 83 | 84 | # Nuxt.js build / generate output 85 | .nuxt 86 | dist 87 | 88 | # Gatsby files 89 | .cache/ 90 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 91 | # https://nextjs.org/blog/next-9-1#public-directory-support 92 | # public 93 | 94 | # vuepress build output 95 | .vuepress/dist 96 | 97 | # Serverless directories 98 | .serverless/ 99 | 100 | # FuseBox cache 101 | .fusebox/ 102 | 103 | # DynamoDB Local files 104 | .dynamodb/ 105 | 106 | # TernJS port file 107 | .tern-port 108 | -------------------------------------------------------------------------------- /GIT COMMANDS.md: -------------------------------------------------------------------------------- 1 | # Commands 2 | 3 | Попрактикуватись можна тут - 4 | [GIT PRACTICA](https://learngitbranching.js.org/?locale=uk) 5 | 6 | ## Git Commands 7 | 8 | 1. `git init` - Ініціалізує репозиторій GIT в поточній директорії. 9 | 1. `git add .` - зберігаємо зміни в файлах 10 | 1. `git branch` - показуємо список гілок в проекті 11 | 1. `git branch -a` - показуємо список гілок на компютері та на сайті github 12 | 1. `git branch -d "name"` - видаляє гілку локально з проекту 13 | 1. `git branch -r` - показуємо список гілок на сайті github 14 | 1. `git branch "branchName"` - створює гілку з назвою "branchName" 15 | 1. `git diff` - показує відрізки рядків між двома версіями файлу (між двома 16 | комітами) 17 | 1. `git checkout -b "branchName"` - творюємо гілку з назвою "branchName" і 18 | переходимо на неї 19 | 1. `git checkout "branchName"` - переходить на гілку з назвою "branchName" 20 | 1. `git clone ...` - Клонує існуючий репозиторій GIT на локальну машину. 21 | 1. `git commit -m "commit message"` - підписуємо збереженні зміни в файлах 22 | 1. `git log` - показує історію комітів 23 | 1. `git fetch` - отримуємо зміни з сайту github 24 | 1. `git pull` - отримуємо останні зміни з сайту github 25 | 1. `git push` - відправляємо зміни на сайт github 26 | 1. `git push --set-upstream origin "branchName"` - пушить нову гілку на гітхаб 27 | 1. `git push origin -d BranchName` - видаляє гілку з сайту github 28 | 1. `git push origin --delete BranchName` - видаляє гілку з сайту github 29 | 1. `git remote -v` - перевірити до якого репозиторія привязаний проєкт 30 | 1. `git remote set-url origin ........` - змінити адресу репозиторія 31 | 1. `git stash` - зберігаємо не збережені зміни в файлах і кладемо їх в буфер 32 | обміну 33 | 1. `git stash apply` - вставляємо збережені зміни з буфера обміну 34 | 1. `git status` - показуємо статус проекту 35 | 1. `git log` - показує історію комітів 36 | 1. `git merge "banchName"` - зливаємо гілку з назвою "branchName" в поточну 37 | гілку 38 | 1. `git merge --abort` - відміняємо зливання гілок 39 | 40 | Для того щоб вийти з режиму перегляду комітів використовуйте клавішу q 41 | (стосується команди №8 і №25) 42 | 43 | ## Terminal Commands 44 | 45 | - `cd gitTutorial` - переходимо в папку gitTutorial 46 | - `Для того щоб вийти з режиму перегляду комітів використовуйте клавішу q (стосується команди №20 і №21)` 47 | - `(cd имя) папки` 48 | - `(cd ..) на напку в низ` 49 | - `(mkdir название) - создать папку` 50 | - `(pwd) показыват в какой папке находишься` 51 | - `(ls)` 52 | - `(ls -l) показывает какие файлы находяться в папке` 53 | - `(clear) очистить консоль` 54 | - `(mv имя имя) переименоваинем/перемещение` 55 | - `(rm имя) удоление файла` 56 | - `(rmdir имя) удоление папки` 57 | - `(touch имя ) создать файла` 58 | - `(mkdir имя ) создание папки` 59 | 60 | --- 61 | --------------------------------------------------------------------------------