|
|
@ -57,21 +57,20 @@ You should now see a `lib` subdirectory containing the necessary dependencies.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
3. `moonspeak` can now be downloaded directly by `crush` to the project's `lib` directory,
|
|
|
|
3. `moonspeak` can now be downloaded directly by `crush` to the project's `lib` directory:
|
|
|
|
along with any other dependency:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
```sh
|
|
|
|
lua crush.lua
|
|
|
|
lua crush.lua
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
4. You may now use `moonspeak` in your project by `require()`-ing it.
|
|
|
|
4. Now `moonspeak` can be `require()`d in your code, like this:
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
```lua
|
|
|
|
local moonspeak = require 'lib.moonspeak'
|
|
|
|
local moonspeak = require 'lib.moonspeak'
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
5. Any project depending on yours may now fetch your project's dependencies (including `moonspeak`)
|
|
|
|
5. Any project depending on yours will now fetch `moonspeak`
|
|
|
|
automatically using **crush**, following the above procedure.
|
|
|
|
automatically when using `crush`, following the above procedure.
|
|
|
|
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
|
|
|
|