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 Makefile
package.json package.json
# generated by gen-index
src/**/index.js
# npm # npm
node_modules node_modules

View File

@ -18,17 +18,22 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # 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 SUBDIRS = doc
.PHONY: todo .PHONY: FORCE todo
all-am: todo all-am: modindex
# placeholder modindex: $(nsindex)
todo: %/index.js: FORCE
@echo "You are too early! Liza is not ready; check back later." ./tools/gen-index "$*" > "$@"
test: check test: check
check: check:
@PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \ @PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
mocha --recursive $(TESTARGS) 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. * Copyright (C) 2014 LoVullo Associates, Inc.
* *
@ -19,9 +19,5 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 // namespace objects are generated by the build
// that represent common, viable entry points for the framework (e.g. module.exports = require( __dirname + '/src' );
// facades).
module.exports = {
version: require( __dirname + '/src/version' )
};