Build now generates index.js modules
parent
7d27e83f29
commit
c1c5349385
|
@ -11,5 +11,8 @@ config.*
|
|||
Makefile
|
||||
package.json
|
||||
|
||||
# generated by gen-index
|
||||
src/**/index.js
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
|
|
15
Makefile.am
15
Makefile.am
|
@ -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:
|
||||
|
|
10
index.js
10
index.js
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue