Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Move to lib folder instead of src/X
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Nov 3, 2017
1 parent 2831ff0 commit 394e9fa
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .gitignore
@@ -1,5 +1,3 @@
/modules
/luacov.*
/roact-installer.lua
/lemur
/testez
/roact-installer.lua
2 changes: 1 addition & 1 deletion .luacheckrc
Expand Up @@ -40,6 +40,6 @@ ignore = {

std = "lua51+roblox"

files["src/**/*.spec.lua"] = {
files["**/*.spec.lua"] = {
std = "+testez",
}
2 changes: 1 addition & 1 deletion .luacov
@@ -1,6 +1,6 @@
return {
include = {
"src",
"lib",
},
exclude = {
"%.spec$",
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -22,7 +22,7 @@ install:
- ./install-dependencies

script:
- luacheck src
- luacheck lib
- lua -lluacov spec.lua

after_success:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -33,8 +33,6 @@ If building a Roblox place by importing scripts from the filesystem, copy the `s
# Roact
Roact is a declarative Lua view framework intended to mirror Facebook's *React* framework. It exposes a very similar API to React and implements nearly identical semantics.

**This document is a work in progress. See the `Examples` folder for pure code examples of how to use Roact.**

## Hello, Roact!
This sample creates a full-screen `TextLabel` with a greeting:

Expand Down
2 changes: 1 addition & 1 deletion build-installer
@@ -1,3 +1,3 @@
#!/bin/sh

rbxpacker --exclude **/*.spec.lua --folder Roact --name Roact src/roact > roact-installer.lua
rbxpacker --exclude **/*.spec.lua --folder Roact --name Roact lib > roact-installer.lua
4 changes: 2 additions & 2 deletions install-dependencies
@@ -1,4 +1,4 @@
#!/bin/sh

git clone --depth=1 https://github.com/LPGhatguy/lemur.git lemur
git clone --depth=1 https://github.com/Roblox/TestEZ.git testez
git clone --depth=1 https://github.com/LPGhatguy/lemur.git modules/lemur
git clone --depth=1 https://github.com/Roblox/TestEZ.git modules/testez
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions spec.lua
@@ -1,10 +1,10 @@
local lemur = require("lemur")
local lemur = require("modules.lemur")

local habitat = lemur.Habitat.new()

local Roact = lemur.Instance.new("Folder")
Roact.Name = "Roact"
habitat:loadFromFs("src/roact", Roact)
habitat:loadFromFs("lib", Roact)

-- Simulate rbxpacker's 'collapse' mechanism
do
Expand All @@ -21,7 +21,7 @@ end

local TestEZ = lemur.Instance.new("Folder")
TestEZ.Name = "TestEZ"
habitat:loadFromFs("testez/lib", TestEZ)
habitat:loadFromFs("modules/testez/lib", TestEZ)

local TestBootstrap = habitat:require(TestEZ.TestBootstrap)
local TextReporter = habitat:require(TestEZ.Reporters.TextReporter)
Expand Down

0 comments on commit 394e9fa

Please sign in to comment.