Skip to content

Commit f95e9a5

Browse files
authored
Merge pull request #54 from usethesource/packages-and-devcontainers
Packages-and-devcontainers
2 parents 1f722b9 + f34f074 commit f95e9a5

File tree

11 files changed

+1650
-1598
lines changed

11 files changed

+1650
-1598
lines changed

.devcontainer/devcontainer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
3+
{
4+
"name": "Rascal-website",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-17-bookworm",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1.5": {
10+
"version": "17",
11+
"installMaven": "true",
12+
"installGradle": "false"
13+
},
14+
"ghcr.io/devcontainers/features/node:1.4": {
15+
"version": "20"
16+
}
17+
},
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "java -version",
24+
25+
// Configure tool-specific properties.
26+
// "customizations": {},
27+
// Configure tool-specific properties.
28+
"customizations": {
29+
// Configure properties specific to VS Code.
30+
"vscode": {
31+
// Add the IDs of extensions you want installed when the container is created.
32+
"extensions": [
33+
"vscjava.vscode-java-pack",
34+
"UseTheSource.rascalmpl"
35+
]
36+
}
37+
}
38+
39+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
40+
// "remoteUser": "root"
41+
}

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
13+
- package-ecosystem: "devcontainers"
14+
directory: "/"
15+
schedule:
16+
interval: weekly
17+
- package-ecosystem: "yarn"
18+
directory: "/"
19+
schedule:
20+
interval: weekly
21+
- package-ecosystem: "maven"
22+
directory: "/"
23+
schedule:
24+
interval: weekly

.github/workflows/base-jobs.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,41 @@ jobs:
1111
- name: Clone
1212
uses: actions/checkout@v4
1313

14-
- uses: actions/setup-java@v3
14+
- uses: buildjet/setup-java@v4
1515
with:
1616
distribution: 'temurin'
1717
java-version: '17'
1818
cache: 'maven'
1919

20-
- uses: actions/setup-node@v3
20+
- uses: buildjet/setup-node@v4
2121
with:
22-
node-version: 16
22+
node-version: 20
2323
cache: yarn
2424

2525
- uses: browser-actions/setup-chrome@latest
2626
with:
2727
chrome-version: 'stable'
2828
id: setup-chrome
29+
2930
- run: which chrome
31+
3032
- uses: nanasess/setup-chromedriver@v2
3133
with:
3234
chromedriver-version: ${{ steps.setup-chrome.outputs.chrome-version }}
35+
3336
- run: which chromedriver
3437

3538
# Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets
3639
- name: Run rascal-tutor and reuse libraries
3740
run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome`
3841

39-
# Big speedup over uploading seperate files
40-
- name: Tar files
41-
run: tar --exclude='target' --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar .
42-
43-
- uses: actions/upload-artifact@v3
42+
- uses: actions/upload-artifact@v4
4443
with:
4544
name: sources
46-
path: sources.tar
45+
path: |
46+
.
47+
!target
48+
!.git
49+
!.github
50+
!.vscode
51+
!META-INF

.github/workflows/pr-builder.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ jobs:
1616
steps:
1717
# Download prepared sources from base
1818
- name: Download sources
19-
uses: actions/download-artifact@v3
19+
uses: actions/download-artifact@v4
2020
with:
2121
name: sources
2222

23-
- name: Untar files
24-
run: tar -xvf sources.tar
25-
2623
# Do a dummy build to see if there are errors
2724
- name: Install dependencies
2825
run: yarn install --frozen-lockfile
26+
2927
- name: Build website
3028
run: yarn build

.github/workflows/website-builder.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ jobs:
1616
steps:
1717
# Download prepared sources from base
1818
- name: Download sources
19-
uses: actions/download-artifact@v3
19+
uses: actions/download-artifact@v4
2020
with:
2121
name: sources
22-
23-
- name: Untar files
24-
run: tar -xvf sources.tar
2522

2623
# Production deploy
2724
- name: Netlify Deploy

blog/authors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tvdstorm:
88
name: Tijs van der Storm
99
title: Group Leader @ CWI-SWAT, professor @ RUG, Rascal Core Team
1010
url: https://homepages.cwi.nl/~storm/
11-
image_url: https://www.uva.nl/binaries/_ht_1610011694919/extralarge/content/gallery/personen/s/t/tijs-van-der-storm_low_res.jpg
11+
image_url: https://www.cwi.nl/intranet/faces/1812.jpg
1212

1313
dlandman:
1414
name: Davy Landman

courses/Packages/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
title: Package Directory
3+
sidebar_position: 10
34
---
4-
5-

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ const config = {
8888
// {to: '/stories', label: 'Stories', position: 'left'},
8989
{ to: '/blog', label: 'Blog', position: 'left' },
9090
{ to: '/release-notes', label: 'Release notes', position: 'left' },
91-
{ to: 'http://www.rascal-mpl.org/docs/Packages', label: 'Packages', position: 'left' },
92-
91+
{
92+
type: 'doc',
93+
docId: 'Packages/index',
94+
position: 'left',
95+
label: 'Packages',
96+
},
9397
{ to: '/projects', label: 'Projects', position: 'right' },
9498
{ to: '/team', label: 'Team', position: 'right' },
9599
{

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6+
"dev": "mvn package && yarn start",
7+
"prod": "yarn clear && mvn clean package -B && yarn build",
68
"mvn": "mvn package",
79
"docusaurus": "docusaurus",
810
"start": "docusaurus start",

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
<src>${project.basedir}/courses/GettingStarted</src>
197197
<src>${project.basedir}/courses/Rascalopedia</src>
198198
<src>${project.basedir}/courses/Bibliography</src>
199+
<src>${project.basedir}/courses/Packages</src>
199200
</srcs>
200201
<ignores>
201202
<ignore>|lib://rascal/org/rascalmpl/library/lang/rascal|</ignore>

0 commit comments

Comments
 (0)