Skip to content

Commit

Permalink
[chore] add archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-wyatt committed Oct 7, 2018
1 parent 762ef20 commit f0ca1fd
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 25 deletions.
12 changes: 12 additions & 0 deletions archetype/config/router.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Router Configuration
*
*/
export const router = {
// Default Prefix to add to all routes where a prefix is not specified
prefix: null,
// Order in which the routes are listed (Some webservers require specific ordering)
sortOrder: 'asc',
// Debug router setup
debug: false
}
11 changes: 11 additions & 0 deletions archetype/config/routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Routes for webservers and more
* @link {{}}
*/
/**
* Examples:
* '/get', {
* 'GET': 'RouterController.get'
* }
*/
export const routes = {}
31 changes: 11 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fabrix/spool-router",
"version": "1.5.0",
"version": "1.5.1",
"description": "Spool - Router for Fabrix",
"scripts": {
"build": "tsc -p ./lib/tsconfig.release.json",
Expand All @@ -14,7 +14,8 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
"dist",
"archetype"
],
"pre-commit": [
"test"
Expand Down Expand Up @@ -49,11 +50,11 @@
"lodash": "^4.17.11"
},
"devDependencies": {
"@fabrix/fabrix": "^1.5.0",
"@fabrix/fabrix": "^1.5.9",
"@fabrix/lint": "^1.0.0-alpha.3",
"@types/lodash": "^4.14.109",
"@types/node": "~10.3.4",
"hapi": "^17.5",
"hapi": "^17.6",
"mocha": "^5",
"nyc": "^13.0.1",
"smokesignals": "^3",
Expand All @@ -64,7 +65,7 @@
"typescript": "~2.8.1"
},
"peerDependencies": {
"@fabrix/fabrix": "^1.1.4"
"@fabrix/fabrix": "^1.5.9"
},
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit f0ca1fd

Please sign in to comment.