Skip to content

Create Devtools package and its Roblox plugin #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion default.project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"ReactDebugTools": {
"$path": "packages/react-debug-tools/default.project.json"
},
"ReactDevtools": {
"$path": "packages/react-devtools/default.project.json"
},
"ReactDevtoolsCore": {
"$path": "packages/react-devtools-core/default.project.json"
},
"ReactDevtoolsShared": {
"$path": "packages/react-devtools-shared/default.project.json"
},
Expand All @@ -29,7 +35,10 @@
"Shared": {
"$path": "packages/shared/default.project.json"
},

"MorePolyfill": {
"$path": "packages/more-polyfill/default.project.json"
},

"_Index": {
"$path": "deps/_Index"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/more-polyfill/.luaurc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"languageMode": "strict"
}
3 changes: 3 additions & 0 deletions packages/more-polyfill/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `more-polyfill`

This package is meant as an extension to [LuauPolyfill](https://github.com/jsdotlua/luau-polyfill). Content should be moved to LuauPolyfill when possible.
6 changes: 6 additions & 0 deletions packages/more-polyfill/default.project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "MorePolyfill",
"tree": {
"$path": "src/"
}
}
5 changes: 5 additions & 0 deletions packages/more-polyfill/src/init.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local JSON = require(script.json)

return {
JSON = JSON,
}
12 changes: 12 additions & 0 deletions packages/more-polyfill/src/json.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local HttpService = game:GetService("HttpService")
local JSON = {}

function JSON.parse(value: string): any
return HttpService:JSONDecode(value)
end

function JSON.stringify(value: unknown, replacer: nil, space: nil): string
return HttpService:JSONEncode(value)
end

return JSON
10 changes: 10 additions & 0 deletions packages/more-polyfill/wally.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = 'jsdotlua/more-polyfill'
description = 'https://github.com/grilme99/CorePackages'
version = '0.1.0'
license = 'MIT'
authors = ['jeparlefrancais <jeparlefrancais21@gmail.com>']
registry = 'https://github.com/UpliftGames/wally-index'
realm = 'shared'

[dependencies]
2 changes: 1 addition & 1 deletion packages/react-debug-tools/wally.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = 'jsdotlua/react-debug-tools'
description = 'https://github.com/grilme99/CorePackages'
version = '17.0.2'
license = 'MIT'
authors = ['Roblox Corporation']
authors = ['Facebook, Inc']
registry = 'https://github.com/UpliftGames/wally-index'
realm = 'shared'

Expand Down
6 changes: 6 additions & 0 deletions packages/react-devtools-core/default.project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "react-devtools-core",
"tree": {
"$path": "src/"
}
}
Loading