Max Neunhoeffer
19b14bd98c
Move loading of db:// modules later in the search.
...
Collection lookups are painfully slow on a coordinator if they fail,
because the cache has to be reloaded from the Agency. Therefore we
only want to load modules from there after all other local methods
have been tried.
2015-04-08 13:16:34 +02:00
Alan Plum
f8cfcbdbd6
Use ArangoError in module loader.
2015-04-08 13:16:12 +02:00
Alan Plum
064599d1a5
Code style.
2015-04-08 01:53:09 +02:00
Alan Plum
4dcdb1cde9
Fixed relative requires in apps. Also fixes #887 .
2015-04-08 01:49:27 +02:00
Alan Plum
eb255f73ed
Use ArangoError in Module#run.
2015-04-07 23:33:23 +02:00
Alan Plum
211d6f3987
Lunt.
2015-04-07 17:41:04 +02:00
Alan Plum
df23003452
Extracted Module#run.
2015-04-07 17:34:32 +02:00
Frank Celler
de1a9fe833
added reload for DB modules
2015-04-05 14:02:34 +02:00
Michael Hackstein
449f6dfc6c
Fixed bugs for app path movement
2015-02-09 08:53:51 +01:00
Michael Hackstein
aad7e46f10
Merge branch 'devel' of github.com:arangodb/arangodb into foxx-pathes
...
Conflicts:
Documentation/Books/Users/SUMMARY.md
js/actions/api-system.js
js/common/bootstrap/modules.js
js/server/modules/org/arangodb/foxx/manager.js
js/server/tests/shell-routing.js
2015-02-06 17:22:01 +01:00
Michael Hackstein
acc4aabdad
Renamed App folder from databases to _db. It is now consistent with url
2015-02-03 15:45:00 +01:00
Frank Celler
86c1082935
added path cache
2015-02-02 17:07:31 +01:00
Alan Plum
0859b83558
Fixed unset mount point.
2015-01-28 18:50:42 +01:00
Frank Celler
0e7f958e0e
moved console to package environment
2015-01-28 18:43:22 +01:00
Alan Plum
6a4625e1e0
Added Foxx log manager.
2015-01-27 20:00:00 +01:00
Alan Plum
755b1567d3
Rewrote all the logging.
2015-01-27 20:00:00 +01:00
Alan Plum
964d6f93df
Inject console into app modules.
2015-01-27 19:59:59 +01:00
Michael Hackstein
986cdbacec
The new modules arangoApp and routing now are able to create an app including a context. Also the routing information is created in the routing file. Now has to be included into the routing table
2015-01-26 11:57:05 +01:00
Michael Hackstein
4bafbc44b1
Moved ArangoApp to its own file. It is not contained in bootstrap modules anymore
2015-01-26 11:56:32 +01:00
Michael Hackstein
f74c181bf5
The ArangoApp in modules now takes a configuration and exports the configuration to be stored in a collection
2015-01-26 11:36:20 +01:00
Michael Hackstein
a8cdd1b6d1
Moved description computation from moduels to manager. And deleted obsolete code
2015-01-26 11:36:20 +01:00
Michael Hackstein
0df4242965
Moved some code from the module into foxx manager
2015-01-26 11:36:20 +01:00
Michael Hackstein
939e12c458
Removed foxx store and client foxx manager dependency on common/bootstrap/module
2015-01-26 11:36:19 +01:00
Jan Steemann
d3be7cb7f5
indentation
2014-11-05 16:29:25 +01:00
Frank Celler
a7d93abe43
fixed requireApp in development mode
2014-10-21 12:28:33 +02:00
Jan Steemann
3da082fdc8
issue #1026 : Modules loaded in different files within the same app should refer to the same module
2014-09-24 17:05:04 +02:00
Jan Steemann
d0639f584b
fixed line number in stack traces to show the correct line
2014-09-22 20:53:21 +02:00
Frank Celler
070326f4e2
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
2014-09-03 10:32:30 +02:00
Frank Celler
e764896cba
fixed loading of modules and usage of strict
2014-09-03 10:32:21 +02:00
Alan Plum
7b24bdba8d
Enabled strict: true.
2014-09-02 22:16:07 +02:00
Alan Plum
606da1e3e8
Removed jslint headers from server/client/common modules.
2014-09-02 22:14:56 +02:00
Alan Plum
3156a245f6
Stricter jshintrc.
2014-09-02 22:12:46 +02:00
Alan Plum
6a3386e55a
Fixed jshint headers.
2014-09-02 22:12:45 +02:00
Frank Celler
be06ef7f25
new upgrade-database (formely known as version-check) and new startup procedure
2014-08-07 14:12:19 +02:00
Frank Celler
e436ecfa40
if a cancelation has occured, flush the module cache
2014-07-08 11:54:53 +02:00
Frank Celler
44aefb2344
added mountedApp
2014-06-03 17:19:03 +02:00
Alan Plum
6e33c8966b
Fallback for sub-module requires. Fixes #789 .
2014-06-02 15:01:37 +02:00
Frank Celler
c2d57c7909
added applicationContext and foxxFilename
2014-05-09 17:12:55 +02:00
Jan Steemann
c843a12149
jshund
2014-05-09 00:42:18 +02:00
Frank Celler
e25945aaba
fixed javascript.execute for coffee-script
2014-03-20 22:51:30 +01:00
Frank Celler
e3df90d2c3
coffee script fix
...
Conflicts:
js/server/modules/org/arangodb/foxx/manager.js
2014-03-20 19:36:42 +01:00
Jan Steemann
25b622aab1
fixed jslint warnings
2014-02-17 11:21:01 +01:00
Frank Celler
6d51527fb5
check for drive letter
2014-02-14 16:51:40 +01:00
Frank Celler
25878be3d4
added fix for absolute path
2014-02-12 13:54:32 +01:00
Frank Celler
289a7dc0e0
fixed unloadAll for system modules
2014-02-11 22:54:02 +01:00
Frank Celler
5b7eb66c9d
added iced coffee script
2014-02-11 14:49:01 +01:00
Frank Celler
da0453daa6
removed moduleNames, fixed app module
2014-02-11 13:48:37 +01:00
Frank Celler
c6ce5c7406
made module loader more node compatible, added coffee script support
2014-02-11 13:26:11 +01:00
Frank Celler
98ed813138
added json reading
2014-02-09 18:27:47 +01:00
Jan Steemann
d10748155f
follow up for issue #738
2014-01-21 13:31:01 +01:00
Jan Steemann
f99f362f07
small improvement for issue #738
2014-01-21 13:30:38 +01:00
Alan Plum
3e653e303d
Added __dirname, __filename pseudo-globals. Fixes #733 .
2014-01-21 13:28:46 +01:00
Jan Steemann
cfdbb1996e
added startupPath value to result of /_api/foxx/config
2014-01-15 18:05:27 +01:00
Frank Celler
13d1e5e5ab
Merge pull request #727 from pluma/manifest-lib-default-local
...
App requires should be module-relative by default. Fixes #721
2014-01-11 12:02:25 +01:00
Frank Celler
005144ff05
Merge pull request #723 from pluma/npm-default-package-main
...
Default package "main" to "index". Fixes #719 .
2014-01-09 23:07:38 +01:00
Alan Plum
1a5f4c98f2
Fixed package file resolution. Fixes #718 , #720 .
2014-01-09 23:03:30 +01:00
Jan Steemann
cd5d228e77
moved path checks from --upgrade to server start and database creation
2013-10-16 15:30:13 +02:00
Jan Steemann
729bbc44f0
use per-database directories for Foxx apps
2013-09-30 10:57:29 +02:00
Frank Celler
95f6cf1275
fix require bug for modules
2013-09-20 17:46:07 +02:00
Frank Celler
8ed7a0115b
added transformation
2013-08-07 11:41:49 +02:00
Jan Steemann
44d6aecef1
options
2013-07-26 20:05:55 +02:00
Jan Steemann
b741209348
handle errors
2013-07-26 11:28:25 +02:00
Frank Celler
709e09d04e
added install command
2013-07-25 18:33:24 +02:00
Frank Celler
1b6dfad627
new name convention
2013-07-25 17:25:39 +02:00
Frank Celler
97aa4f6597
cosmetics
2013-07-21 12:01:30 +02:00
Jan Steemann
4ed7ac6376
improved error messages
2013-06-27 14:49:33 +02:00
Frank Celler
581c667a5a
fixed jslint
2013-05-04 21:52:09 +02:00
Frank Celler
186694dc22
added safety check for packages which define main with .js
2013-04-23 22:42:11 +02:00
Frank Celler
fb8d8799c3
moved document of console to JSModuleConsole, added packages and node
2013-04-23 18:39:25 +02:00
Frank Celler
7bfce45ece
added more node modules
2013-04-21 22:00:54 +02:00
Frank Celler
a75736a148
added Buffer from node
2013-04-21 21:45:39 +02:00
Frank Celler
828b939053
fixed isolates, made ArangoError internal
2013-04-10 21:22:09 +02:00
Frank Celler
d7443f5caa
default path needs the type
2013-04-08 16:23:57 +02:00
Frank Celler
dcb65a92bf
fixed error messages
2013-04-04 23:19:27 +02:00
Frank Celler
37e134ff50
new Foxx
2013-04-04 18:56:38 +02:00
Frank Celler
07bd4b2585
new module/package mechanism
2013-03-31 12:25:12 +02:00
Frank Celler
1467b78676
cleanup of internal, fs, console
2013-03-31 00:10:48 +01:00
Frank Celler
dfe3c22519
fixed wrong id
2013-03-28 22:46:14 +01:00
Frank Celler
2ed6b0145f
changed app-path and dev-app-path to be just one directory
2013-03-28 21:48:52 +01:00
Frank Celler
e3990f19ab
added reload in dev mode
2013-03-27 16:42:32 +01:00
Frank Celler
3ea5fbe121
added dev
2013-03-27 15:28:43 +01:00
Frank Celler
7a6cdcf9b1
changing to app-id
2013-03-27 15:05:08 +01:00
Frank Celler
96a14b0b6d
changed to appId
2013-03-27 13:43:04 +01:00
Frank Celler
111a0ed54a
write mounts into _aal
2013-03-26 17:47:32 +01:00
Frank Celler
0f6e48a38b
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
...
Conflicts:
js/server/modules/org/arangodb/foxx.js
2013-03-26 10:01:39 +01:00
Frank Celler
a8557091b8
new foxx loader
2013-03-25 10:22:35 +01:00
Frank Celler
eaa21cdfd1
fixed context
2013-03-24 17:53:53 +01:00
Frank Celler
e3de563668
requiresLibs and requiresModels
2013-03-24 15:03:01 +01:00
Frank Celler
34477c290e
added installApp
2013-03-24 12:35:43 +01:00
Frank Celler
c6444f0510
fixed name and version
2013-03-24 10:58:42 +01:00
Frank Celler
88f43e6e8f
added app path
2013-03-23 23:47:18 +01:00
Frank Celler
44806229f7
fixed jslint errors
2013-03-23 21:57:33 +01:00
Frank Celler
8012a23744
added foxx api
2013-03-23 17:09:26 +01:00
Frank Celler
4059f31170
return error message
2013-03-23 16:42:52 +01:00
Frank Celler
38a5cf6a2d
added development-mode
2013-03-22 17:33:25 +01:00
Frank Celler
12f0c901e5
Merge branch 'devel' of github.com:triAGENS/ArangoDB into feature/v8cleanup
...
Conflicts:
arangod/V8Server/v8-vocbase.cpp
arangosh/V8Client/arangosh.cpp
2013-03-22 14:47:17 +01:00
Frank Celler
59184b39bd
added update disclaimer for JS files
2013-03-13 17:30:14 +01:00
Jan Steemann
1a7e6b2d5b
colorize!
2013-03-08 18:36:11 +01:00
Jan Steemann
e2c0d9544a
fixed jslint errors
2013-03-07 17:35:12 +01:00
Frank Celler
7abef532f4
fixed package module loading and directory.lib entry
2013-03-05 17:23:19 +01:00