-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds parsing for learning-objectives (#86)
* fist attempt to add parsing for objectives * changing objectives to behave more like API, adding readme * adding strict * Update README.md Co-authored-by: Alfredo González <[email protected]> * change command to learning-objectives add repo to options * renaming archive * removing unneeded options from command and readme * Apply suggestions from code review Co-authored-by: Alfredo González <[email protected]> * update readme validate instructions * Update README.md Co-authored-by: Alfredo González <[email protected]> * clearer output, exit status fix * options default * adding objectives tests and ixtures * readme correction * take out .only * Apply suggestions from code review Co-authored-by: Alfredo González <[email protected]> --------- Co-authored-by: Alfredo González <[email protected]>
- Loading branch information
Showing
16 changed files
with
1,281 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
lib/__tests__/__fixtures__/learning-objectives-missing-intl-fail-strict/data.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
browser: | ||
- dom: | ||
- selectors | ||
- events | ||
- manipulation | ||
- routing | ||
- storage | ||
- fetch | ||
|
||
js: | ||
- data-types: | ||
- primitive | ||
- primitive-vs-non-primitive | ||
- strings | ||
- arrays | ||
- objects | ||
- variables | ||
- conditionals |
114 changes: 114 additions & 0 deletions
114
lib/__tests__/__fixtures__/learning-objectives-missing-intl-fail-strict/intl/es.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# browser/dom/events | ||
|
||
browser: | ||
title: Web APIs | ||
|
||
browser/dom: | ||
title: DOM (Document Object Model) | ||
|
||
browser/dom/selectors: | ||
title: Uso de selectores del DOM | ||
links: | ||
- title: Manipulación del DOM | ||
url: topics/browser/dom/1-dom-methods-selection | ||
- title: Introducción al DOM - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Document_Object_Model/Introduction | ||
- title: Localizando elementos DOM usando selectores - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Document_object_model/Locating_DOM_elements_using_selectors | ||
|
||
browser/dom/manipulation: | ||
title: Manipulación dinámica del DOM | ||
links: | ||
- title: Introducción al DOM | ||
url: https://developer.mozilla.org/es/docs/Web/API/Document_Object_Model/Introduction | ||
- title: Node.appendChild() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Node/appendChild | ||
- title: Document.createElement() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Document/createElement | ||
- title: Document.createTextNode() | ||
url: https://developer.mozilla.org/es/docs/Web/API/Document/createTextNode | ||
- title: Element.innerHTML - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Element/innerHTML | ||
- title: Node.textContent - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Node/textContent | ||
|
||
browser/routing: | ||
title: Ruteado (History API, evento hashchange, window.location) | ||
links: | ||
- title: Manipulando el historial del navegador - MDN | ||
url: https://developer.mozilla.org/es/docs/DOM/Manipulando_el_historial_del_navegador | ||
|
||
browser/storage: | ||
title: Browser storage (localStorage, sessionStorage) | ||
links: | ||
- title: Window.localStorage - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Window/localStorage | ||
|
||
browser/fetch: | ||
title: Fetch API | ||
links: | ||
- title: Fetch API - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/API/Fetch_API | ||
|
||
js: | ||
title: JavaScript | ||
|
||
js/data-types: | ||
title: Tipos de datos | ||
|
||
js/data-types/primitive: | ||
title: Tipos de datos primitivos | ||
links: | ||
- title: Valores primitivos - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Data_structures#valores_primitivos | ||
|
||
js/data-types/strings: | ||
title: Strings (cadenas de caracteres) | ||
links: | ||
- title: Strings | ||
url: topics/javascript/strings | ||
- title: String — Cadena de caracteres - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/String | ||
|
||
js/data-types/arrays: | ||
title: Arrays (arreglos) | ||
links: | ||
- title: Arreglos | ||
url: topics/javascript/arrays | ||
- title: Array - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/ | ||
- title: Array.prototype.sort() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/sort | ||
- title: Array.prototype.forEach() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach | ||
- title: Array.prototype.map() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/map | ||
- title: Array.prototype.filter() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | ||
- title: Array.prototype.reduce() - MDN | ||
url: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce | ||
|
||
js/data-types/objects: | ||
title: Objetos (key, value) | ||
links: | ||
- title: Objetos en JavaScript | ||
url: topics/javascript/objects/objects | ||
|
||
js/data-types/primitive-vs-non-primitive: | ||
title: Diferenciar entre tipos de datos primitivos y no primitivos | ||
|
||
js/variables: | ||
title: Variables (declaración, asignación, ámbito) | ||
links: | ||
- title: Valores, tipos de datos y operadores | ||
url: topics/javascript/basics/values-variables-and-types | ||
- title: Variables | ||
url: topics/javascript/basics/variables | ||
|
||
js/conditionals: | ||
title: Uso de condicionales (if-else, switch, operador ternario, lógica booleana) | ||
links: | ||
- title: Estructuras condicionales y repetitivas | ||
url: topics/javascript/flow-control/conditionals-and-loops | ||
- title: Tomando decisiones en tu código — condicionales - MDN | ||
url: https://developer.mozilla.org/es/docs/Learn/JavaScript/Building_blocks/conditionals |
114 changes: 114 additions & 0 deletions
114
lib/__tests__/__fixtures__/learning-objectives-missing-intl-fail-strict/intl/pt.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# browser/dom/events | ||
|
||
browser: | ||
title: Web APIs | ||
|
||
browser/dom: | ||
title: DOM (Document Object Model) | ||
|
||
browser/dom/selectors: | ||
title: Uso de seletores de DOM | ||
links: | ||
- title: Modificando o DOM | ||
url: topics/browser/dom/1-dom-methods-selection | ||
- title: Introdução ao DOM - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Document_Object_Model/Introduction | ||
- title: Locating DOM elements using selectors - MDN | ||
url: https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/Locating_DOM_elements_using_selectors | ||
|
||
browser/dom/manipulation: | ||
title: Manipulação dinâmica de DOM | ||
links: | ||
- title: Introdução ao DOM | ||
url: https://developer.mozilla.org/pt-BR/docs/DOM/Referencia_do_DOM/Introdu%C3%A7%C3%A3o | ||
- title: Node.appendChild() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Node/appendChild | ||
- title: Document.createElement() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Document/createElement | ||
- title: Document.createTextNode() | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Document/createTextNode | ||
- title: Element.innerHTML - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Element/innerHTML | ||
- title: Node.textContent - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Node/textContent | ||
|
||
browser/routing: | ||
title: Routing (History API, evento hashchange, window.location) | ||
links: | ||
- title: Manipulando o histórico do navegador - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/History_API | ||
|
||
browser/storage: | ||
title: Browser storage (localStorage, sessionStorage) | ||
links: | ||
- title: Window.localStorage - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Window/Window.localStorage | ||
|
||
browser/fetch: | ||
title: Fetch API | ||
links: | ||
- title: Fetch API - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/API/Fetch_API | ||
|
||
js: | ||
title: JavaScript | ||
|
||
js/data-types: | ||
title: Tipos de dados | ||
|
||
js/data-types/primitive: | ||
title: Tipos de dados primitivos | ||
links: | ||
- title: Valores Primitivos - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Data_structures#valores_primitivos | ||
|
||
js/data-types/strings: | ||
title: Strings (cadeias de caracteres) | ||
links: | ||
- title: Strings | ||
url: topics/javascript/strings | ||
- title: String — Cadeia de caracteres - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String | ||
|
||
js/data-types/arrays: | ||
title: Arrays (arranjos) | ||
links: | ||
- title: Arranjos | ||
url: topics/javascript/arrays | ||
- title: Array - MDN | ||
url: https://developer.mozilla.org//pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/ | ||
- title: Array.prototype.sort() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/sort | ||
- title: Array.prototype.forEach() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach | ||
- title: Array.prototype.map() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/map | ||
- title: Array.prototype.filter() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | ||
- title: Array.prototype.reduce() - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce | ||
|
||
js/data-types/objects: | ||
title: Objetos (key, value) | ||
links: | ||
- title: Objetos em JavaScript | ||
url: topics/javascript/objects/objects | ||
|
||
js/data-types/primitive-vs-non-primitive: | ||
title: Diferenciar entre tipos de dados primitivos e não primitivos | ||
|
||
js/variables: | ||
title: Variáveis (declaração, atribuição, escopo) | ||
links: | ||
- title: Valores, tipos de dados e operadores | ||
url: topics/javascript/basics/values-variables-and-types | ||
- title: Variáveis | ||
url: topics/javascript/basics/variables | ||
|
||
js/conditionals: | ||
title: Uso de condicionais (if-else, switch, operador ternário, lógica booleana) | ||
links: | ||
- title: Estruturas condicionais e repetitivas | ||
url: topics/javascript/flow-control/conditionals-and-loops | ||
- title: Tomando decisões no seu código — condicionais - MDN | ||
url: https://developer.mozilla.org/pt-BR/docs/Learn/JavaScript/Building_blocks/conditionals |
Oops, something went wrong.