Skip to content

Commit

Permalink
Merge pull request #12 from nightcycle/remake-2023
Browse files Browse the repository at this point in the history
Remake 2023
  • Loading branch information
nightcycle authored Dec 16, 2023
2 parents 1f8ba33 + f6195e9 commit 8e254b1
Show file tree
Hide file tree
Showing 172 changed files with 19,992 additions and 10,103 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Validate Commit

on:
push:

jobs:

validate:
runs-on: windows-latest

strategy:
matrix:
scene: [main]
include:
- name: main
steps:
# Checkout your Git repo
- uses: actions/checkout@v2

# Install foreman and all foreman tools
- uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Install wally packages
- name: update wally packages
run: wally-update patch

- name: install wally packages
run: wally install

- name: generate sourcemap
run: rojo sourcemap dev.project.json --output sourcemap.json

- name: export wally package types
run: wally-package-types --sourcemap sourcemap.json Packages

- name: Install testing files
shell: bash
run: |
# type definitions
if [ ! -d "types" ]; then
mkdir "types"
fi
curl -L "https://gist.github.com/nightcycle/50ca8f42147077b8f584b503030c8500/raw" > "types/testEZ.d.lua"
curl -L "https://gist.github.com/nightcycle/ae7ea3376337512772d1d2b314ef467b/raw" > "types/remodel.d.lua"
curl -L "https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.lua" > "types/globalTypes.d.lua"
# lint definitions
if [ ! -d "lints" ]; then
mkdir "lints"
fi
curl -L "https://gist.github.com/nightcycle/a57e04de443dfa89bd08c8eb001b03c6/raw" > "lints/lua51.yml"
curl -L "https://gist.github.com/nightcycle/93c4b9af5bbf4ed09f39aa908dffccd0/raw" > "lints/luau.yml"
curl -L "https://gist.github.com/nightcycle/e8c4a9a1d71cfd1a1fff59cad84156d1/raw" > "lints/roblox.yml"
# apply code styling
- name: style src scripts
run: stylua src

# - name: style built scripts
# shell: bash
# run: |
# if [ ! -d "out" ]; then
# mkdir "out"
# fi
# stylua out

- name: generate sourcemap
run: rojo sourcemap dev.project.json --output sourcemap.json

# Test validity
- name: typecheck src files
run: luau-lsp analyze --sourcemap="sourcemap.json" --ignore="Packages/**" --ignore="src/Server/NPC/Animate.server.lua" --ignore="**/Packages/**" --ignore="*.spec.luau" --ignore="out/**" --flag:LuauTypeInferIterationLimit=0 --flag:LuauCheckRecursionLimit=0 --flag:LuauTypeInferRecursionLimit=0 --flag:LuauTarjanChildLimit=0 --flag:LuauTypeInferTypePackLoopLimit=0 --flag:LuauVisitRecursionLimit=0 --definitions=types/globalTypes.d.lua --flag:LuauParseDeclareClassIndexer=true src

- name: lint src files
run: selene src

# - name: lint built files
# run: selene out
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
fi
curl -L "https://gist.github.com/nightcycle/a57e04de443dfa89bd08c8eb001b03c6/raw" > "lints/lua51.yml"
curl -L "https://gist.github.com/nightcycle/93c4b9af5bbf4ed09f39aa908dffccd0/raw" > "lints/luau.yml"
curl -L "https://gist.github.com/nightcycle/e8c4a9a1d71cfd1a1fff59cad84156d1/raw" > "lints/roblox.yml"
# apply code styling
- name: style src scripts
Expand All @@ -103,7 +102,7 @@ jobs:

# Test validity
- name: typecheck src files
run: luau-lsp analyze src --sourcemap=sourcemap.json --ignore="Packages/**" --ignore="**/Packages/**" --ignore="*.spec.luau" --flag:LuauTypeInferIterationLimit=0 --flag:LuauCheckRecursionLimit=0 --flag:LuauTypeInferRecursionLimit=0 --flag:LuauTarjanChildLimit=0 --flag:LuauTypeInferTypePackLoopLimit=0 --flag:LuauVisitRecursionLimit=0 --definitions=types/globalTypes.d.lua --flag:LuauParseDeclareClassIndexer=true
run: luau-lsp analyze --sourcemap="sourcemap.json" --ignore="Packages/**" --ignore="src/Server/NPC/Animate.server.lua" --ignore="**/Packages/**" --ignore="*.spec.luau" --ignore="out/**" --flag:LuauTypeInferIterationLimit=0 --flag:LuauCheckRecursionLimit=0 --flag:LuauTypeInferRecursionLimit=0 --flag:LuauTarjanChildLimit=0 --flag:LuauTypeInferTypePackLoopLimit=0 --flag:LuauVisitRecursionLimit=0 --definitions=types/globalTypes.d.lua --flag:LuauParseDeclareClassIndexer=true src

- name: lint src files
run: selene src
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Synthetic
Material UI inspired elements ported to Fusion! You can read all you need to know about Material UI design [here!](https://material.io/design)
# Synthetic
A UI component framework for Roblox Front-End development with the goal of compiling a robust library of professional grade components UI components with (eventual) support for popular workflows in both its development and application.
3 changes: 2 additions & 1 deletion foreman.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ wally = {source = "UpliftGames/wally", version = "0.3.2" }
wally-package-types = {source = "JohnnyMorganz/wally-package-types", version = "1.2.0"}
selene = {source = "kampfkarren/selene", version = "0.25.0"}
rojo = {source = "rojo-rbx/rojo", version = "7.3.0" }
luau-lsp = {source="JohnnyMorganz/luau-lsp", version="1.22.1"}
luau-lsp = {source="JohnnyMorganz/luau-lsp", version="1.26.0"}
run-in-roblox = { source = "rojo-rbx/run-in-roblox", version = "0.3.0" }
stylua = {source = "JohnnyMorganz/StyLua", version = "0.18.0"}
wally-update = {source = "nightcycle/wally-update", version = "0.1.2"}
pseudo-enum = {source = "nightcycle/pseudo-enum", version = "0.2.2"}
Binary file removed logo.png
Binary file not shown.
151 changes: 151 additions & 0 deletions pseudo-enum.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
build_path = "src/Enums.luau"
use_union_types_for_tree = false
use_union_types_for_export = true

[enums]

SoundType = [
"hero_simple_celebration_02",
"navigation_cancel",
"ui_tap_variant_03",
"alert_error_03",
"notification_ambient",
"state_change_confirm_up",
"ringtone_minimal",
"hero_decorative_celebration_01",
"navigation_transition_right",
"hero_decorative_celebration_02",
"alert_simple",
"ui_loading",
"notification_decorative_01",
"notification_high_intensity",
"navigation_backward_selection_minimal",
"navigation_unavailable_selection",
"ui_unlock",
"notification_decorative_02",
"navigation_hover_tap",
"ui_tap_variant_01",
"ui_tap_variant_04",
"ui_tap_variant_02",
"alert_error_02",
"alarm_gentle",
"ui_refresh_feed",
"hero_simple_celebration_01",
"hero_decorative_celebration_03",
"hero_simple_celebration_03",
"alert_high_intensity",
"state_change_confirm_down",
"navigation_transition_left",
"notification_simple_01",
"navigation_forward_selection",
"navigation_selection_complete_celebration",
"ui_camera_shutter",
"navigation_forward_selection_minimal",
"notification_simple_02",
"navigation_backward_selection",
"ui_lock",
"alert_error_01",
]
FontType = [
"DisplayLarge",
"DisplayMedium",
"DisplaySmall",
"HeadlineLarge",
"HeadlineMedium",
"HeadlineSmall",
"TitleLarge",
"TitleMedium",
"TitleSmall",
"BodyLarge",
"BodyMedium",
"BodySmall",
"LabelLarge",
"LabelMedium",
"LabelSmall",
]
ButtonStateType = ["Enabled", "Disabled", "Hovered", "Focused", "Pressed"]
SchemeType = ["Light", "Dark"]
CustomColorType = [
"Custom",
"OnCustom",
"CustomContainer",
"OnCustomContainer"
]
SelectionState = [
"Selected",
"Unselected"
]
ColorRoleType = [
"Primary",
"OnPrimary",
"PrimaryContainer",
"OnPrimaryContainer",
"Secondary",
"OnSecondary",
"SecondaryContainer",
"OnSecondaryContainer",
"Tertiary",
"OnTertiary",
"TertiaryContainer",
"OnTertiaryContainer",
"Error",
"OnError",
"ErrorContainer",
"OnErrorContainer",
"Background",
"OnBackground",
"Surface",
"OnSurface",
"SurfaceVariant",
"OnSurfaceVariant",
"Outline",
"OutlineVariant",
"Shadow",
"Scrim",
"InverseSurface",
"InverseOnSurface",
"InversePrimary",
"SurfaceDim",
"SurfaceBright",
"SurfaceContainerLowest",
"SurfaceContainerLow",
"SurfaceContainer",
"SurfaceContainerHigh",
"SurfaceContainerHighest",
"SurfaceTint",
]
PaletteType = [
"Primary",
"Secondary",
"Tertiary",
"Neutral",
"NeutralVariant",
"Error",
]
TransitionType = [
"Emphasized",
"EmphasizedDecelerate",
"EmphasizedAccelerate",
"Standard",
"StandardDecelerate",
"StandardAccelerate",
]
TransitionDuration = [
"Short1",
"Short2",
"Short3",
"Short4",
"Medium1",
"Medium2",
"Medium3",
"Medium4",
"Long1",
"Long2",
"Long3",
"Long4",
"ExtraLong1",
"ExtraLong2",
"ExtraLong3",
"ExtraLong4",

]
7 changes: 7 additions & 0 deletions scripts/js-to-luau/convert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
js_to_lua="C:/Users/coyer/js-to-lua"
target_dir="C:/Users/coyer/material-ui/packages/mui-material"
synthetic="C:/Users/coyer/Documents/GitHub/synthetic"
out="${synthetic}/src/mui-test"

"${js_to_lua}/dist/apps/convert-js-to-lua/index.js" --input "${target_dir}/src/Badge/index.js" --output $out
2 changes: 2 additions & 0 deletions scripts/pseudo-enum.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
pseudo-enum build
6 changes: 3 additions & 3 deletions scripts/test/all.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# sh scripts/test/download.sh
# sh scripts/test/unit-test.sh
sh scripts/test/lsp.sh src out
luau-lsp analyze --sourcemap="sourcemap.json" --ignore="Packages/**" --ignore="src/Server/NPC/Animate.server.lua" --ignore="**/Packages/**" --ignore="*.spec.luau" --ignore="out/**" --flag:LuauTypeInferIterationLimit=0 --flag:LuauCheckRecursionLimit=0 --flag:LuauTypeInferRecursionLimit=0 --flag:LuauTarjanChildLimit=0 --flag:LuauTypeInferTypePackLoopLimit=0 --flag:LuauVisitRecursionLimit=0 --definitions=types/globalTypes.d.lua src
# sh scripts/test/lsp.sh out src
sh scripts/test/selene.sh src
# sh scripts/test/selene.sh out
selene src
# selene out
1 change: 0 additions & 1 deletion scripts/test/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ if [ ! -d "lints" ]; then
fi
curl -L "https://gist.github.com/nightcycle/a57e04de443dfa89bd08c8eb001b03c6/raw" > "lints/lua51.yml"
curl -L "https://gist.github.com/nightcycle/93c4b9af5bbf4ed09f39aa908dffccd0/raw" > "lints/luau.yml"
curl -L "https://gist.github.com/nightcycle/e8c4a9a1d71cfd1a1fff59cad84156d1/raw" > "lints/roblox.yml"
20 changes: 0 additions & 20 deletions scripts/test/lsp.sh

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/test/selene.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
#!/usr/bin/env bash
content_dir_path=$1
selene $content_dir_path > tests/selene/$content_dir_path.txt
error_count=$(grep -o -w "error" "tests/selene/${content_dir_path}.txt" | wc -l)
warn_count=$(grep -o -w "warning" "tests/selene/${content_dir_path}.txt" | wc -l)
echo "${content_dir_path} selene errors: ${error_count}, warnings: ${warn_count}"
selene $1
2 changes: 2 additions & 0 deletions scripts/workspace/build-project.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
rojo build --output synthetic.rbxl dev.project.json
4 changes: 4 additions & 0 deletions scripts/workspace/install-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
wally install
rojo sourcemap dev.project.json --output sourcemap.json
wally-package-types --sourcemap sourcemap.json Packages
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
wally-update minor
wally-update major
wally install
rojo sourcemap dev.project.json --output sourcemap.json
wally-package-types --sourcemap sourcemap.json Packages
2 changes: 1 addition & 1 deletion selene.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
std = "lints/roblox"
std = "lints/luau+roblox"
exclude = [
"out/*",
"*.spec.lua",
Expand Down
2 changes: 1 addition & 1 deletion sourcemap.json

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions src/BillboardFrame/demo.story.lua

This file was deleted.

Loading

0 comments on commit 8e254b1

Please sign in to comment.