Skip to content

Commit

Permalink
Merge pull request #257 from trailsjs/2.0-rc
Browse files Browse the repository at this point in the history
2.0 rc
  • Loading branch information
tjwebb authored Dec 27, 2016
2 parents c313b4c + 62ee391 commit 7bf03d6
Show file tree
Hide file tree
Showing 37 changed files with 1,531 additions and 830 deletions.
5 changes: 5 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
engines:
eslint:
enabled: true
duplication:
enabled: false
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_js:
- 4
- 5
- 6
- 7
compiler:
- gcc
env:
Expand Down Expand Up @@ -41,6 +42,10 @@ script:
- npm test
- npm run ci

after_script:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < coverage/lcov.info

notifications:
email: false
webhooks:
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ capabilities and allow developers to leverage existing ecosystem tools through a
simple and well-defined API. New features, behavior, APIs, and other functionality
can be added to the Trails framework through Trailpacks.

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

- [core](https://github.com/trailsjs/trailpack-core)
- [router](https://github.com/trailsjs/trailpack-router)
- [repl](https://github.com/trailsjs/trailpack-repl)
- [hapi](https://github.com/trailsjs/trailpack-hapi)
- [express](https://github.com/trailsjs/trailpack-express)
- [waterline](https://github.com/trailsjs/trailpack-waterline)
- [knex](https://github.com/trailsjs/trailpack-knex)

## Compatibility

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

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

## FAQ

Expand Down
2 changes: 1 addition & 1 deletion archetype/api/services/DefaultService.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const Service = require('trails-service')
const Service = require('trails/service')

/**
* @module DefaultService
Expand Down
2 changes: 0 additions & 2 deletions archetype/config/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
* If your app will touch people from all over the world, i18n (or internationalization)
* may be an important part of your international strategy.
*
*
* @see http://trailsjs.io/doc/config/i18n
*
*/

'use strict'
Expand Down
1 change: 0 additions & 1 deletion archetype/config/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = {
* requirements.
*/
packs: [
require('trailpack-core'),
require('trailpack-repl'),
require('trailpack-router'),
require('<%- trailpacks %>')
Expand Down
15 changes: 5 additions & 10 deletions archetype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
],
"main": "index.js",
"dependencies": {
"trailpack-core": "^1.0.1",
"trailpack-repl": "^1.1.0",
"trailpack-router": "^1.0.8",
"trails": "^1.1.0",
"trails-controller": "^1.0.0-beta-2",
"trails-model": "^1.0.0-beta-2",
"trails-policy": "^1.0.1",
"trails-service": "1.0.0-beta-2",
"winston": "^2.2"
"trailpack-repl": "v2-latest",
"trailpack-router": "v2-latest",
"trails": "v2-latest",
"winston": "^2.3"
},
"devDependencies": {
"eslint": "^2.11",
"eslint-config-trails": "latest",
"eslint-config-trails": "^2",
"mocha": "^2.5",
"supertest": "^1.2"
},
Expand Down
2 changes: 1 addition & 1 deletion archetype/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

'use strict'

const app = require('./')
const TrailsApp = require('trails')
const app = require('./')
const server = new TrailsApp(app)

server.start().catch(err => server.stop(err))
1 change: 1 addition & 0 deletions controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('trails-controller')
Loading

0 comments on commit 7bf03d6

Please sign in to comment.