This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/src/main/javascript/lib
2013-12-24 22:47:57 +00:00
..
events.js reorg 2013-12-24 00:16:07 +00:00
plugin.js Major overhaul of plugin and module loading system and scriptcraft directory layout 2013-12-24 00:09:49 +00:00
readme.md Updating documentation for modules release 2013-12-24 22:46:35 +00:00
require.js updating docs for module release 2013-12-24 22:47:57 +00:00
scriptcraft.js updating docs for module release 2013-12-24 22:47:57 +00:00

lib directory

This directory contains core scriptcraft files and modules.

  • plugin.js - A module which provides support for persistent plugins (plugins which need to save state)
  • require.js - The require() function implementation. See [Node.js modules] documentation.
  • scriptcraft.js - The core scriptcraft code.
  • events.js - Event handling module for use by plugin/module developers.

When require('modulename') is called, if a file in the current working directory called 'modulename' is not found then the lib folder is the first location that require() looks for modules.