1
0
Fork 0

Build now generates index.js modules

master
Mike Gerwitz 2014-04-18 10:03:40 -04:00
parent 7d27e83f29
commit c1c5349385
3 changed files with 16 additions and 12 deletions

3
.gitignore vendored
View File

@ -11,5 +11,8 @@ config.*
Makefile
package.json
# generated by gen-index
src/**/index.js
# npm
node_modules

View File

@ -18,17 +18,22 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##
namespaces=$(shell find src -type d)
nsindex=$(addsuffix /index.js, $(namespaces))
SUBDIRS = doc
.PHONY: todo
.PHONY: FORCE todo
all-am: todo
all-am: modindex
# placeholder
todo:
@echo "You are too early! Liza is not ready; check back later."
modindex: $(nsindex)
%/index.js: FORCE
./tools/gen-index "$*" > "$@"
test: check
check:
@PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
mocha --recursive $(TESTARGS)
FORCE:

View File

@ -1,5 +1,5 @@
/**
* Provides ease of access to liza entry points
* Provides ease of access to liza modules via namespace object
*
* Copyright (C) 2014 LoVullo Associates, Inc.
*
@ -19,9 +19,5 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// as soon as we have something useful to export, this will contain classes
// that represent common, viable entry points for the framework (e.g.
// facades).
module.exports = {
version: require( __dirname + '/src/version' )
};
// namespace objects are generated by the build
module.exports = require( __dirname + '/src' );