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