Skip to content

Commit

Permalink
chore: update example projects to romcal v.3.0.0-dev.57 + fix date co…
Browse files Browse the repository at this point in the history
…mputing
  • Loading branch information
emagnier authored Dec 9, 2023
2 parents 6e08a3b + 5f12144 commit 9967dfa
Show file tree
Hide file tree
Showing 18 changed files with 9,583 additions and 9,476 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
7 changes: 4 additions & 3 deletions html-web-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ <h1>romcal v3</h1>
<hr />
<p>Open the developer tools and check the console.</p>
<script>
const romcal = new Romcal({ localizedCalendar: France_Fr });
const romcal = new Romcal.Romcal({ localizedCalendar: France_Fr });

romcal.getAllDefinitions().then((calendarDefinitions) => {
console.log(
'All definitions, which are all possible liturgical days of a specific calendar, that can occur during a whole year:',
);
console.log(calendarDefinitions);
});
const year = new Date().getUTCFullYear();

romcal.generateCalendar(2022).then((myCalendar) => {
console.log('A calendar that contains all liturgical days occurring during 2022:');
romcal.generateCalendar(year).then((myCalendar) => {
console.log(`A calendar that contains all liturgical days occurring during ${year}:`);
console.log(myCalendar);
});
</script>
Expand Down
98 changes: 49 additions & 49 deletions html-web-page/package-lock.json

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

6 changes: 3 additions & 3 deletions html-web-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"start": "http-server ./"
},
"dependencies": {
"@romcal/calendar.france": "^3.0.0-dev.29",
"@romcal/calendar.general-roman": "^3.0.0-dev.29",
"@romcal/calendar.france": "^3.0.0-dev.57",
"@romcal/calendar.general-roman": "^3.0.0-dev.57",
"http-server": "^14.1.1",
"romcal": "^3.0.0-dev.29"
"romcal": "^3.0.0-dev.57"
},
"license": "MIT"
}
16 changes: 16 additions & 0 deletions react-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ Instead, it will copy all the configuration files and the transitive dependencie

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

### `yarn dev:link`

Link development dependencies like an updated copy of romcal.

If your `romcal-examples` checkout is a sibling to romcal, stored at...
- `romcal-examples`
- `romcal`
then this will work for you by default.

If you store your `romcal` checkout in a different folder, like `lib`, as an example, you'd need to run:
```shell
ROMCAL_ALIAS=lib yarn dev:link
```

So the name you provide to the `ROMCAL_ALIAS` environment var needs to be what it's called in relation to the parent folder of `romcal-examples`.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
Expand Down
Loading

0 comments on commit 9967dfa

Please sign in to comment.