Test
This commit is contained in:
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -32,20 +32,19 @@ jobs:
|
|||||||
# Step 2: Generate LuaLS Definitions
|
# Step 2: Generate LuaLS Definitions
|
||||||
- name: Generate LuaLS
|
- name: Generate LuaLS
|
||||||
run: |
|
run: |
|
||||||
echo "Current directory: $PWD"
|
# Remove potential old file
|
||||||
echo "Listing tools directory:"
|
rm -f src/elements/src/LuaLS.lua
|
||||||
ls -la tools/
|
|
||||||
echo "Listing src/elements directory:"
|
|
||||||
ls -la src/elements/
|
|
||||||
|
|
||||||
# Ensure the script is executable
|
# Generate with correct paths
|
||||||
chmod +x tools/annotationParser.lua
|
lua tools/annotationParser.lua ./src/elements ./src/LuaLS.lua
|
||||||
|
|
||||||
# Run with full path and debug output
|
# Verify generation
|
||||||
lua tools/annotationParser.lua "$(pwd)/src/elements" "$(pwd)/src/LuaLS.lua"
|
if [ -f "./src/LuaLS.lua" ]; then
|
||||||
|
echo "LuaLS.lua generated successfully"
|
||||||
# Check if file was created
|
else
|
||||||
ls -la src/LuaLS.lua || echo "File not created!"
|
echo "Failed to generate LuaLS.lua"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Step 3: Bundle and Minify
|
# Step 3: Bundle and Minify
|
||||||
- name: Bundle and Minify
|
- name: Bundle and Minify
|
||||||
|
|||||||
@@ -197,6 +197,12 @@ function basalt.run(isActive)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Starts the Basalt runtime
|
||||||
|
--- @param isActive? boolean Whether to start active (default: true)
|
||||||
|
--- @usage basalt.autoUpdate()
|
||||||
|
--- @usage basalt.autoUpdate(false)
|
||||||
|
basalt.autoUpdate = basalt.run
|
||||||
|
|
||||||
function basalt.getAPI(name)
|
function basalt.getAPI(name)
|
||||||
return elementManager.getAPI(name)
|
return elementManager.getAPI(name)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user