mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 11:44:08 +00:00
build: remove project json files
Including Rojo project files in packages interferes with certain Wally packages that depend on roblox-ts packages
This commit is contained in:
parent
e7fe400fa8
commit
aff5f768bf
42 changed files with 68 additions and 88 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "CharmSync",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
5
packages/charm-sync/init.luau
Normal file
5
packages/charm-sync/init.luau
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
local src = require(script.src)
|
||||
|
||||
export type SyncPayload = src.SyncPayload
|
||||
|
||||
return src
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
local Charm = require(script.Parent.Parent.Charm)
|
||||
local Charm = require(script.Parent.Parent.Parent.charm)
|
||||
local patch = require(script.Parent.patch)
|
||||
local types = require(script.Parent.types)
|
||||
type AtomMap = types.AtomMap
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
local Players = game:GetService("Players")
|
||||
|
||||
local Charm = require(script.Parent.Parent.Charm)
|
||||
local Charm = require(script.Parent.Parent.Parent.charm)
|
||||
local interval = require(script.Parent.interval)
|
||||
local patch = require(script.Parent.patch)
|
||||
local types = require(script.Parent.types)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local Charm = require(script.Parent.Parent.Charm)
|
||||
local Charm = require(script.Parent.Parent.Parent.charm)
|
||||
type Atom<T> = Charm.Atom<T>
|
||||
|
||||
--[=[
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ name = "littensy/charm-sync"
|
|||
version = "0.2.0"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
exclude = ["package.json"]
|
||||
|
||||
[dependencies]
|
||||
Charm = "littensy/charm@^0.9"
|
||||
charm = "littensy/charm@^0.9"
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "Charm",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
7
packages/charm/init.luau
Normal file
7
packages/charm/init.luau
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
local src = require(script.src)
|
||||
|
||||
export type Atom<State> = src.Atom<State>
|
||||
export type Selector<State> = src.Selector<State>
|
||||
export type Molecule<State> = src.Selector<State>
|
||||
|
||||
return src
|
||||
|
|
@ -10,7 +10,6 @@ local types = require(script.types)
|
|||
export type Atom<State> = types.Atom<State>
|
||||
export type Selector<State> = types.Selector<State>
|
||||
export type Molecule<State> = types.Selector<State>
|
||||
export type SyncPayload = types.SyncPayload
|
||||
|
||||
return {
|
||||
atom = atom,
|
||||
|
|
|
|||
|
|
@ -31,13 +31,4 @@ export type AtomOptions<T> = {
|
|||
equals: (prev: T, next: T) -> boolean,
|
||||
}
|
||||
|
||||
--[=[
|
||||
A payload that can be sent from the server to the client to synchronize
|
||||
state between the two.
|
||||
]=]
|
||||
export type SyncPayload = {
|
||||
type: "patch" | "init",
|
||||
data: { [any]: any },
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@ name = "littensy/charm"
|
|||
version = "0.9.0"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
exclude = ["package.json"]
|
||||
|
||||
[dependencies]
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "ReactCharm",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
local Charm = require(script.Parent.Charm)
|
||||
local React = if script.Parent:FindFirstChild("react")
|
||||
then require(script.Parent.react) :: never
|
||||
else require(script.Parent.React)
|
||||
local Charm = require(script.Parent.charm)
|
||||
local React = if script.Parent:FindFirstChild("React")
|
||||
then require(script.Parent.React)
|
||||
else require((script.Parent :: any).react) :: never
|
||||
|
||||
--[=[
|
||||
A hook that subscribes to changes in the given atom or selector. The
|
||||
|
|
@ -3,7 +3,8 @@ name = "littensy/react-charm"
|
|||
version = "0.2.0"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
exclude = ["package.json"]
|
||||
|
||||
[dependencies]
|
||||
Charm = "littensy/charm@^0.9"
|
||||
charm = "littensy/charm@^0.9"
|
||||
React = "jsdotlua/react@^17"
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "VideCharm",
|
||||
"tree": {
|
||||
"$path": "src"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
local Charm = require(script.Parent.Charm)
|
||||
local Vide = if script.Parent:FindFirstChild("vide")
|
||||
then require(script.Parent.vide.src) :: never
|
||||
else require(script.Parent.Vide)
|
||||
local Charm = require(script.Parent.charm)
|
||||
local Vide = if script.Parent:FindFirstChild("Vide")
|
||||
then require(script.Parent.Vide)
|
||||
else require((script.Parent :: any).vide.src) :: never
|
||||
|
||||
--[=[
|
||||
Subscribes to the state of an atom and returns a Vide source.
|
||||
|
|
@ -3,7 +3,8 @@ name = "littensy/vide-charm"
|
|||
version = "0.2.0"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
exclude = ["package.json"]
|
||||
|
||||
[dependencies]
|
||||
Charm = "littensy/charm@^0.9"
|
||||
charm = "littensy/charm@^0.9"
|
||||
Vide = "centau/vide@^0.3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue