Skip to content

Commit 7bf03d6

Browse files
authored
Merge pull request #257 from trailsjs/2.0-rc
2.0 rc
2 parents c313b4c + 62ee391 commit 7bf03d6

37 files changed

+1531
-830
lines changed

.codeclimate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
engines:
2+
eslint:
3+
enabled: true
4+
duplication:
5+
enabled: false

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_js:
88
- 4
99
- 5
1010
- 6
11+
- 7
1112
compiler:
1213
- gcc
1314
env:
@@ -41,6 +42,10 @@ script:
4142
- npm test
4243
- npm run ci
4344

45+
after_script:
46+
- npm install -g codeclimate-test-reporter
47+
- codeclimate-test-reporter < coverage/lcov.info
48+
4449
notifications:
4550
email: false
4651
webhooks:

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ capabilities and allow developers to leverage existing ecosystem tools through a
6363
simple and well-defined API. New features, behavior, APIs, and other functionality
6464
can be added to the Trails framework through Trailpacks.
6565

66-
Out of the box, Trails includes a small suite of trailpacks:
66+
Many Trails installations will include some of the following Trailpacks:
6767

68-
- [core](https://github.com/trailsjs/trailpack-core)
6968
- [router](https://github.com/trailsjs/trailpack-router)
7069
- [repl](https://github.com/trailsjs/trailpack-repl)
7170
- [hapi](https://github.com/trailsjs/trailpack-hapi)
71+
- [express](https://github.com/trailsjs/trailpack-express)
7272
- [waterline](https://github.com/trailsjs/trailpack-waterline)
73+
- [knex](https://github.com/trailsjs/trailpack-knex)
7374

7475
## Compatibility
7576

@@ -86,7 +87,9 @@ Out of the box, Trails includes a small suite of trailpacks:
8687
- [Getting Started with Trails.js](https://www.youtube.com/watch?v=AbSp8jqFDAY)
8788

8889
#### Support
89-
- [Gitter chat room](https://gitter.im/trailsjs/trails)
90+
- [Stackoverflow](http://stackoverflow.com/questions/tagged/trailsjs)
91+
- [Live Gitter Chat](https://gitter.im/trailsjs/trails)
92+
- [Twitter](https://twitter.com/trailsjs)
9093

9194
## FAQ
9295

archetype/api/services/DefaultService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const Service = require('trails-service')
3+
const Service = require('trails/service')
44

55
/**
66
* @module DefaultService

archetype/config/i18n.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* If your app will touch people from all over the world, i18n (or internationalization)
66
* may be an important part of your international strategy.
77
*
8-
*
98
* @see http://trailsjs.io/doc/config/i18n
10-
*
119
*/
1210

1311
'use strict'

archetype/config/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module.exports = {
1616
* requirements.
1717
*/
1818
packs: [
19-
require('trailpack-core'),
2019
require('trailpack-repl'),
2120
require('trailpack-router'),
2221
require('<%- trailpacks %>')

archetype/package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,14 @@
66
],
77
"main": "index.js",
88
"dependencies": {
9-
"trailpack-core": "^1.0.1",
10-
"trailpack-repl": "^1.1.0",
11-
"trailpack-router": "^1.0.8",
12-
"trails": "^1.1.0",
13-
"trails-controller": "^1.0.0-beta-2",
14-
"trails-model": "^1.0.0-beta-2",
15-
"trails-policy": "^1.0.1",
16-
"trails-service": "1.0.0-beta-2",
17-
"winston": "^2.2"
9+
"trailpack-repl": "v2-latest",
10+
"trailpack-router": "v2-latest",
11+
"trails": "v2-latest",
12+
"winston": "^2.3"
1813
},
1914
"devDependencies": {
2015
"eslint": "^2.11",
21-
"eslint-config-trails": "latest",
16+
"eslint-config-trails": "^2",
2217
"mocha": "^2.5",
2318
"supertest": "^1.2"
2419
},

archetype/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
'use strict'
88

9-
const app = require('./')
109
const TrailsApp = require('trails')
10+
const app = require('./')
1111
const server = new TrailsApp(app)
1212

1313
server.start().catch(err => server.stop(err))

controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('trails-controller')

0 commit comments

Comments
 (0)