package.json is now generated by configure script and included in distribution
parent
465fe35831
commit
e1fdc92beb
|
@ -1,5 +1,6 @@
|
|||
build
|
||||
node_modules
|
||||
package.json
|
||||
|
||||
# generated by dist target
|
||||
AUTHORS
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# see README
|
||||
SUBDIRS = doc
|
||||
EXTRA_DIST = AUTHORS NEWS ChangeLog
|
||||
EXTRA_DIST = AUTHORS NEWS ChangeLog package.json
|
||||
|
||||
path_build = $(top_builddir)/build
|
||||
path_tools = $(top_builddir)/tools
|
||||
|
|
|
@ -98,5 +98,5 @@ AS_IF(test "$JAVA" -a ! "$CCJAR",
|
|||
|
||||
AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"])
|
||||
|
||||
AC_CONFIG_FILES([Makefile doc/Makefile])
|
||||
AC_CONFIG_FILES([Makefile doc/Makefile package.json])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "easejs",
|
||||
"description": "A Classical Object-Oriented Framework for JavaScript",
|
||||
"version": "0.2.0-dev",
|
||||
"version": "@VERSION@",
|
||||
"author": "Mike Gerwitz <mike@mikegerwitz.com> (http://mikegerwitz.com)",
|
||||
"homepage": "http://easejs.org",
|
||||
|
|
@ -39,8 +39,5 @@ cat version.js.tpl | sed "
|
|||
s/@SUFFIX@/${suffix#-}/;
|
||||
" > ../lib/version.js
|
||||
|
||||
# update package.json for npm
|
||||
sed -i 's/"version":.*/"version": "'$version'",/' ../package.json
|
||||
|
||||
# update configure script by replacing the second argument of AC_INIT
|
||||
sed -i '/^AC_INIT/s/, \[[^]]\+\]/, ['$version']/' ../configure.ac
|
||||
|
|
Loading…
Reference in New Issue