Skip to content

Commit

Permalink
Merge branch 'main' into oa_yaml_check_85
Browse files Browse the repository at this point in the history
  • Loading branch information
unjust committed Jun 11, 2024
2 parents 8df5666 + ea34dc1 commit 9ff7d6c
Show file tree
Hide file tree
Showing 35 changed files with 2,730 additions and 2,697 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:

strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand All @@ -22,7 +22,7 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

publish_next:
runs-on: ubuntu-latest
if: >
Expand All @@ -33,16 +33,16 @@ jobs:
)
needs: [test]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm publish --access public --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish_latest:
runs-on: ubuntu-latest
if: >
Expand All @@ -51,8 +51,8 @@ jobs:
&& !contains(github.ref, 'beta')
needs: [test]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
Expand Down
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default [{
ignores: ['lib/__tests__/__fixtures__'],
}];
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ program.command('project')
.argument('<dir>', 'path to project directory')
.option('--repo <string>', 'Repository')
.option('--version <string>', 'Project version')
.option('--lo <string>', 'Path to yml file with reference learning objectives')
.option(
'--lo <string>',
'Path to directory containing data.yml with reference learning objectives',
)
.option('--debug', 'Show error stack traces')
.action(createHandler(parseProject));

Expand Down
15 changes: 15 additions & 0 deletions lib/__tests__/__fixtures__/01-a-project-tags-not-array/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
track: web-dev
tracks:
- web-dev
tags: omg
learningObjectives:
- html
- css
- dom
15 changes: 15 additions & 0 deletions lib/__tests__/__fixtures__/01-a-project-tags-not-strings/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
track: web-dev
tracks:
- web-dev
tags:
- featured
- foo: true
bar: 1
learningObjectives:
- html
- css
- dom
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
track: web-dev
tracks:
- web-dev
learningObjectives:
- html/semantics
- css/selectors
- dom/selectors
- dom/events
- dom/manipulation
- js/data-types/primitive-vs-non-primitive
- js/data-types/strings
- js/variables
- js/conditionals
- js/functions
- js/semantics
- ux/user-understanding
- ux/prototyping
- id: css
exclude: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
track: web-dev
tracks:
- web-dev
learningObjectives:
- html/semantics
- css/selectors
- name: react
optional: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
track: web-dev
tracks:
- web-dev
tags:
- featured
- foo
learningObjectives:
- html
- css
- dom
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
track: web-dev
tracks:
- web-dev
learningObjectives:
- html/semantics
- css/selectors
- dom/selectors
- dom/events
- dom/manipulation
- js/data-types/primitive-vs-non-primitive
- js/data-types/strings
- js/variables
- js/conditionals
- js/functions
- js/semantics
- ux/user-understanding
- ux/prototyping
variants:
- name: foo
learningObjectives:
- id: css
exclude: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
track: web-dev
tracks:
- web-dev
learningObjectives:
- html/semantics
- css/selectors
- dom/selectors
- dom/events
- dom/manipulation
- js/data-types/primitive-vs-non-primitive
- js/data-types/strings
- js/variables
- js/conditionals
- js/functions
- js/semantics
- ux/user-understanding
- ux/prototyping
variants:
- name: node
learningObjectives:
- node
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
track: web-dev
tracks:
- web-dev
learningObjectives:
- html/semantics
- css/selectors
- dom/selectors
- dom/events
- dom/manipulation
- js/data-types/primitive-vs-non-primitive
- js/data-types/strings
- js/variables
- js/conditionals
- js/functions
- js/semantics
- ux/user-understanding
- ux/prototyping
- id: react
optional: true
15 changes: 15 additions & 0 deletions lib/__tests__/__fixtures__/01-a-project-with-tags/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# A project

## Índice

Blah blah blah

***

## 1. Preámbulo

Blah blah blah

## 2. Resumen del proyecto

Blah blah blah
12 changes: 12 additions & 0 deletions lib/__tests__/__fixtures__/01-a-project-with-tags/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
track: web-dev
tracks:
- web-dev
tags:
- featured
- beta
- deprecated
- hidden
learningObjectives:
- html
- css
- dom
Loading

0 comments on commit 9ff7d6c

Please sign in to comment.