Miroslav Bajtoš
edb1f1fdce
index: fix jshint error
...
Wrap a too long line in a jsdoc comment.
2014-08-18 14:26:11 +02:00
Raymond Feng
20ed867d79
Merge pull request #34 from cajoy/master
...
documentation fix
2014-08-07 08:23:37 -07:00
Alex
1ae0167b7c
documentation fix
2014-08-07 10:12:35 -04:00
Raymond Feng
51cf0052d0
Merge pull request #31 from fabien/fix/compile-options
...
Implemented modelSources, bootDirs and bootScripts options
2014-08-04 08:42:45 -07:00
Fabien Franzen
217f0ce32f
Fix typo
2014-08-04 10:35:13 +02:00
Fabien Franzen
f98d2cb89c
Implemented modelSources, bootDirs and bootScripts options
2014-08-04 10:33:03 +02:00
Miroslav Bajtoš
bc233e83d3
Merge tag 'v2.0.0'
...
2.0.0
2014-07-22 19:34:28 +02:00
Miroslav Bajtoš
4d55ab82aa
Merge branch 'release/2.0.0' into production
2014-07-22 19:34:24 +02:00
Miroslav Bajtoš
5471129f79
2.0.0
2014-07-22 19:34:01 +02:00
Miroslav Bajtoš
e2092bba17
Merge pull request #26 from strongloop/feature/simplify-model-fn-signature
...
executor: remove `Base` arg from model function
2014-07-22 19:28:05 +02:00
Miroslav Bajtoš
c4b09c6b7a
executor: remove `Base` arg from model function
...
Simplify the contract for functions exported by `models/*.js` files
by removing the second argument `Base`. The base class can be accessed
using `ModelCtor.base`.
An updated example of a model js file:
```js
module.exports = function(Customer) {
Customer.setup = function() {
Customer.base.setup.apply(this, arguments);
// etc.
};
};
```
2014-07-22 10:59:50 +02:00
Miroslav Bajtoš
b5989e907e
package: update dependency versions
2014-07-22 10:57:44 +02:00
Miroslav Bajtoš
e42ee20d00
Merge tag 'vv2.0.0-beta3'
...
v2.0.0-beta3
2014-07-17 19:01:19 +02:00
Miroslav Bajtoš
be74e7c1ec
Merge branch 'release/v2.0.0-beta3' into production
2014-07-17 19:01:16 +02:00
Miroslav Bajtoš
eac6cdf645
v2.0.0-beta3
2014-07-17 19:00:55 +02:00
Miroslav Bajtoš
6bf995c55b
compiler: return a clone of instructions
...
When executor passes the instruction to loopback methods,
loopback modifies the data. Since we are loading the data using
`require` such changes affects also code that calls
`require` for one of the instructions files.
This change adds a deep clone step to prevent this issue.
2014-07-17 18:44:15 +02:00
Raymond Feng
cb67fc4165
Merge tag 'v2.0.0-beta2'
...
2.0.0-beta2
2014-07-17 09:05:54 -07:00
Raymond Feng
85c40c635a
Merge branch 'release/2.0.0-beta2' into production
2014-07-17 09:05:46 -07:00
Raymond Feng
9493aca34e
Merge pull request #23 from strongloop/feature/fix-unit-tests
...
test: export Int32Array and DataView for browser
2014-07-17 09:03:13 -07:00
Miroslav Bajtoš
e7250b6eac
test: export Int32Array and DataView for browser
...
crypto-browserify uses Int32Array, which is not exposed on the VM
context in Node v0.10.
2014-07-17 10:05:08 +02:00
Miroslav Bajtoš
2bcf1f60aa
Merge tag 'v2.0.0-beta2'
...
v2.0.0-beta2
2014-07-16 08:21:54 +02:00
Miroslav Bajtoš
431bdc9b18
Merge branch 'release/2.0.0-beta2' into production
2014-07-16 08:21:46 +02:00
Miroslav Bajtoš
53ca2f697a
v2.0.0-beta2
2014-07-16 08:21:16 +02:00
Miroslav Bajtoš
cfe5f40808
Merge pull request #19 from strongloop/feature/rename-models-to-models-config
...
Rename `models.json` to `model-config.json`
2014-07-15 20:46:47 +02:00
Miroslav Bajtoš
3129f6495c
Rename `models.json` to `model-config.json`
...
The name `models.json` was potentially confusing since there are no
models defined in that file.
2014-07-15 11:09:39 +02:00
Miroslav Bajtoš
3522f117c0
Merge pull request #18 from strongloop/doc-changes
...
Doc changes
2014-07-09 07:39:02 +02:00
Rand McKinney
25704cf69a
Remove non-API docs.
...
- Remove material that's in Confluence.
- Change function name to boot()
- Create header-node.md and header-browser.md
2014-07-09 07:36:45 +02:00
Miroslav Bajtoš
5e142c5188
Merge tag 'v2.0.0-beta1'
...
2.0.0-beta1
2014-06-26 14:56:34 +02:00
Miroslav Bajtoš
fc18561cc7
Merge branch 'release/2.0.0-beta1' into production
2014-06-26 14:56:29 +02:00
Miroslav Bajtoš
5e23db50a5
2.0.0-beta1
2014-06-26 14:56:02 +02:00
Miroslav Bajtoš
f222be477e
Merge pull request #17 from strongloop/feature/fix-executor
...
Fix references to loopback; fix jshint warnings
2014-06-26 14:54:42 +02:00
Miroslav Bajtoš
92455f569c
test: fix jshint warnings
2014-06-26 14:54:07 +02:00
Miroslav Bajtoš
a3c347d073
compiler: fix references to loopback
2014-06-26 14:53:47 +02:00
Miroslav Bajtoš
d5cd0a3b50
Merge branch 'master' into 2.0
...
Conflicts:
README.md
docs/configuration.md
lib/executor.js
package.json
Changes in the docs were merged manually and updated to correctly
describe the 2.x layout.
2014-06-26 14:40:24 +02:00
Miroslav Bajtoš
af9c4d8cc6
Merge tag 'v1.1.0'
...
1.1.0
2014-06-26 11:00:26 +02:00
Miroslav Bajtoš
c70b8ac413
Merge branch 'release/1.1.0' into production
2014-06-26 11:00:19 +02:00
Miroslav Bajtoš
edd41be02f
1.1.0
2014-06-26 10:59:49 +02:00
Miroslav Bajtoš
b9b338ddde
Merge pull request #15 from strongloop/feature/remove-last-require-loopback
...
executor: remove direct reference to loopback
2014-06-26 10:58:01 +02:00
Miroslav Bajtoš
18e1b3b4f5
Merge pull request #14 from strongloop/feature/add-more-meat-to-readme
...
docs: move hand-written content to README.md
2014-06-26 10:31:26 +02:00
Miroslav Bajtoš
961e04b379
docs: move hand-written content to README.md
2014-06-26 10:31:05 +02:00
Miroslav Bajtoš
2cc5a88699
Merge pull request #13 from strongloop/rename-app-json-to-config-json
...
Rename `app.json` to `config.json`
2014-06-26 10:28:44 +02:00
Miroslav Bajtoš
230360ef28
executor: remove direct reference to loopback
...
Modify the executor to access the loopback object via `app.loopback`.
Fall back to `require('loopback')` only when `app.loopback` is not set
(loopback versions before 1.9).
2014-06-25 14:12:53 +02:00
Miroslav Bajtoš
ac16d92a8b
Rename `app.json` to `config.json`
...
The new loopback project layout adds a concept of components like
'rest server' and 'isomorphic client', each component having its own set
of boot files. The name `app.json` is confusing, since it is configuring
a component, not the app (which is the whole project).
2014-06-25 08:18:04 +02:00
Rand McKinney
4b5f57a7df
Update link to doc
2014-06-24 17:00:54 -07:00
Miroslav Bajtoš
0a0a6f5d01
Merge branch 'master' into 2.0
...
Conflicts:
index.js
package.json
2014-06-16 19:49:45 +02:00
Miroslav Bajtoš
2eab6bf32a
Merge pull request #11 from strongloop/model-boot-improvements
...
[2.0] Model boot improvements
2014-06-16 19:47:10 +02:00
Miroslav Bajtoš
57e96b0d38
compiler: Sort models topologically
...
Sort models topologically using Base->Model as edges. This way
the base models are defined before the models extending them.
2014-06-16 19:45:34 +02:00
Miroslav Bajtoš
a0d5dafd99
Merge pull request #12 from strongloop/feature/drop-peer-dep-on-loopback
...
Drop peer dep on loopback; add a runtime check
2014-06-16 19:43:24 +02:00
Miroslav Bajtoš
ef72efa70b
executor: Split model boot into two phases
...
In the first phase, all models are defined.
In the second phase, models are configured, attached to data-sources
and exposed on the app object.
This way when the `attached` Model event is emitted, all models are
already defined and thus a listener can get reference of any other
model used in the app.
2014-06-16 16:41:12 +02:00
Miroslav Bajtoš
b887b33b57
compiler: Move model-sources cfg to models.json
...
Remove `modelSources` option from `boot()` options, add `_meta.sources`
to `models.json`.
```json
{
"_meta": {
"sources": ["./custom/path/to/models"]
},
"Car": {
"dataSource": "db"
}
}
```
2014-06-16 16:41:12 +02:00