Skip to content

Commit

Permalink
Sync upstream (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio authored Feb 1, 2024
1 parent 7479d8f commit fbd17f1
Show file tree
Hide file tree
Showing 93 changed files with 4,023 additions and 486 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.json]
indent_style = space
indent_size = 2

[*.toml]
indent_style = space
indent_size = 4

[*.{yaml,yml}]
indent_style = space
indent_size = 2

[*.{md,markdown}]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Migrate code style with StyLua 0.19.1

5d8a63b791baabdebced5ee2f52204494be806ae
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: erynlynn
7 changes: 2 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
## Proposed changes

Only changes to types should be made here. For general changes, make them to our
[main project](https://github.com/matter-ecs/matter/pulls).

A clear and concise description of what your changes are. Explain to
maintainers why we should accept your solution. Be sure to adhere to our
[contribution guidelines](https://github.com/matter-ecs/matter/blob/main/CONTRIBUTING.md).

## Related issues

Explain how this pull request relates to any relevant
[issues](https://github.com/matter-ecs/matter-types/issues). Bugs and features
should always have related issues.
[issues](https://github.com/matter-ecs/matter/issues). Bugs and features should
always have related issues.

## Additional comments

Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
format:
name: Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Check Formatting
run: stylua --check .

lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Check Linting
run: selene lib tests example/src

build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Install Dependencies
run: wally install

- name: Build
run: rojo build --output build.rbxm default.project.json

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build.rbxm

build-example:
name: Build Example Game
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Aftman
uses: ok-nick/setup-aftman@v0.3.0

- name: Install Dependencies
run: wally install --project-path example

- name: Build
run: rojo build --output build.rbxm example.project.json

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: build-example
path: build.rbxm
47 changes: 47 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs

on:
pull_request:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Moonwave
run: npm install -g moonwave

- name: Generate Docs
run: moonwave build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy
if: github.event_name == 'push'
needs:
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
54 changes: 53 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,56 @@
/out
/include
*.tsbuildinfo
.DS_Store
.DS_Store
# Compiled Lua sources
luac.out

# luarocks build files
*.src.rock
*.zip
*.tar.gz

# Object files
*.o
*.os
*.ko
*.obj
*.elf

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo
*.def
*.exp

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Wally files
DevPackages
Packages
wally.lock

roblox.toml
build
*.rbxl
*.rbxl.lock
matter.rbxm
sourcemap.json
6 changes: 6 additions & 0 deletions .luaurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"languageMode": "nonstrict",
"lint": {
"LocalShadow": false
}
}
13 changes: 13 additions & 0 deletions .moonwave/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.navbar__logo img {
transition: filter 100ms ease-in-out;
}

.navbar__logo img:hover {
filter: drop-shadow(0px 0px 10px rgba(130, 0, 0, 0.9));
}

:root {
--ifm-navbar-link-hover-color: #bd515c;
--ifm-link-color: #bd515c;
--ifm-color-primary: #bd515c;
}
1 change: 1 addition & 0 deletions .moonwave/static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fbd17f1

Please sign in to comment.