Skip to content

Commit 615f91d

Browse files
authored
Merge pull request #15 from fabrix-app/v1.5
[chore] add archetype
2 parents fc9774e + f0ca1fd commit 615f91d

File tree

4 files changed

+40
-25
lines changed

4 files changed

+40
-25
lines changed

archetype/config/router.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Router Configuration
3+
*
4+
*/
5+
export const router = {
6+
// Default Prefix to add to all routes where a prefix is not specified
7+
prefix: null,
8+
// Order in which the routes are listed (Some webservers require specific ordering)
9+
sortOrder: 'asc',
10+
// Debug router setup
11+
debug: false
12+
}

archetype/config/routes.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Routes for webservers and more
3+
* @link {{}}
4+
*/
5+
/**
6+
* Examples:
7+
* '/get', {
8+
* 'GET': 'RouterController.get'
9+
* }
10+
*/
11+
export const routes = {}

package-lock.json

Lines changed: 11 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fabrix/spool-router",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Spool - Router for Fabrix",
55
"scripts": {
66
"build": "tsc -p ./lib/tsconfig.release.json",
@@ -14,7 +14,8 @@
1414
"main": "dist/index.js",
1515
"typings": "dist/index.d.ts",
1616
"files": [
17-
"dist"
17+
"dist",
18+
"archetype"
1819
],
1920
"pre-commit": [
2021
"test"
@@ -49,11 +50,11 @@
4950
"lodash": "^4.17.11"
5051
},
5152
"devDependencies": {
52-
"@fabrix/fabrix": "^1.5.0",
53+
"@fabrix/fabrix": "^1.5.9",
5354
"@fabrix/lint": "^1.0.0-alpha.3",
5455
"@types/lodash": "^4.14.109",
5556
"@types/node": "~10.3.4",
56-
"hapi": "^17.5",
57+
"hapi": "^17.6",
5758
"mocha": "^5",
5859
"nyc": "^13.0.1",
5960
"smokesignals": "^3",
@@ -64,7 +65,7 @@
6465
"typescript": "~2.8.1"
6566
},
6667
"peerDependencies": {
67-
"@fabrix/fabrix": "^1.1.4"
68+
"@fabrix/fabrix": "^1.5.9"
6869
},
6970
"license": "MIT",
7071
"bugs": {

0 commit comments

Comments
 (0)