-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from nightcycle/remake-2023
Remake 2023
- Loading branch information
Showing
172 changed files
with
19,992 additions
and
10,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
pseudo-enum build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
2 changes: 1 addition & 1 deletion
2
scripts/update-packages.sh → scripts/workspace/update-packages.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.