-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nginx): split logic for nginx conf
change a lot of var names, optimize some region codes, increase coverage of tests
- Loading branch information
1 parent
3864283
commit 89045f8
Showing
38 changed files
with
503 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"istanbul" | ||
], | ||
"ignore": [ | ||
"serverconf", | ||
"config/", | ||
"docs/", | ||
"lib/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
/testcoverage/ | ||
/docs/ | ||
/lib/ | ||
/**/barebone.js | ||
duplication.html | ||
_* | ||
npm-debug* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/usr/bin/env node | ||
process.env.NODE_ENV = process.argv.indexOf("-p") > -1 || process.argv.indexOf("--production") > -1 ? "production" : "development"; | ||
process.env.port = parseInt(process.argv[process.argv.indexOf("--port") + 1], 10) || 62626; | ||
require('./lib'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,103 @@ | ||
{ | ||
"name": "koaton-cli", | ||
"version": "0.0.0-semantic-release", | ||
"description": "Koaton is a CLI tool that provides a nice starting point for full stack JavaScript Web development with Koa, Ember, and Node.js along with CaminateJS and WebSockets.", | ||
"main": "./koaton", | ||
"scripts": { | ||
"export:live": "npm run export & chokidar src -c \"cls && npm run export\"", | ||
"eslint:live": "npm run eslint & chokidar src -c \"cls && npm run eslint\"", | ||
"eslint": "eslint src --ignore-path .gitignore", | ||
"export": "node transpile.js v1", | ||
"test": "cross-env NODE_ENV=koaton mocha test/unit/**/*.js test/integration.js --compilers js:babel-register", | ||
"test:live": "npm t -- -w", | ||
"cover": "nyc npm t", | ||
"cover:reload": "node reloadcoverage.js", | ||
"cover:watch": "npm run cover & chokidar src test -c \"cls & npm run cover\"", | ||
"cover:live": "npm-run-all --parallel cover:watch cover:reload", | ||
"codeclimate": "codeclimate analyze -f html -e duplication > duplication.html", | ||
"doc": "esdoc -c esdoc.json", | ||
"commit": "git-cz", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"bin": { | ||
"koaton": "./koaton" | ||
}, | ||
"directories": { | ||
"lib": "lib" | ||
}, | ||
"engines": { | ||
"node": ">= 6.5.0" | ||
}, | ||
"preferGlobal": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gerard2p/koaton-cli.git" | ||
}, | ||
"keywords": [ | ||
"koa", | ||
"bootstrap", | ||
"seed", | ||
"mvc", | ||
"emberjs", | ||
"websockets" | ||
], | ||
"files": [ | ||
"lib", | ||
"README.md", | ||
"LICENSE.md" | ||
], | ||
"author": "Gerardo Pérez Pérez <gerard2perez@outlook.com>", | ||
"license": "MIT", | ||
"readmeFilename": "README.md", | ||
"homepage": "https://github.com/gerard2p/koaton-cli.git", | ||
"dependencies": { | ||
"bcrypt": "^0.8.7", | ||
"bluebird": "^3.3.5", | ||
"chokidar": "^1.5.0", | ||
"co": "^4.6.0", | ||
"co-prompt": "^1.0.0", | ||
"colors": "^1.1.2", | ||
"commander": "^2.9.0", | ||
"concat-with-sourcemaps": "^1.0.4", | ||
"cross-spawn": "^4.0.0", | ||
"glob": "^7.0.5", | ||
"graceful-fs": "^4.1.4", | ||
"gulp-livereload": "^3.8.1", | ||
"handlebars-layout": "^0.1.3", | ||
"i": "^0.3.4", | ||
"imagemin": "^5.2.1", | ||
"imagemin-mozjpeg": "^6.0.0", | ||
"imagemin-pngquant": "^5.0.0", | ||
"koa-compose": "^2.4.0", | ||
"koa-convert": "^1.2.0", | ||
"koa-passport": "^1.3.1", | ||
"koa-send": "^3.2.0", | ||
"less": "^2.7.1", | ||
"less-plugin-clean-css": "^1.5.1", | ||
"mkdirp": "^0.5.1", | ||
"node-minify": "^1.3.7", | ||
"node-notifier": "^4.5.0", | ||
"node-sass": "^3.8.0", | ||
"node-sass-css-importer": "0.0.3", | ||
"nodemon": "^1.9.2", | ||
"oauth2orize-koa": "^1.3.2", | ||
"passport-http": "^0.3.0", | ||
"passport-http-bearer": "^1.0.1", | ||
"passport-local": "^1.0.0", | ||
"passport-oauth2-client-password": "^0.1.2", | ||
"recursive-copy": "^2.0.5", | ||
"uglify-js": "^2.6.4", | ||
"upath": "^0.2.0", | ||
"fs-extra": "^0.30.0", | ||
"ncp": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-istanbul": "^2.0.3", | ||
"babel-plugin-transform-koa2-async-to-generator": "git+https://gerardopp@bitbucket.org/gerardopp/babel-plugin-transform-koa2-async-to-generator.git", | ||
"babel-plugin-transform-koaton-es6-modules": "git+https://gerardopp@bitbucket.org/gerardopp/babel-plugin-transform-koaton-es6-modules.git", | ||
"babel-register": "^6.18.0", | ||
"commitizen": "^2.8.6", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"eslint": "^3.7.0", | ||
"eslint-config-airbnb-base": "^8.0.0", | ||
"eslint-plugin-import": "^1.16.0", | ||
"mocha": "^3.1.0", | ||
"nyc": "^8.4.0", | ||
"semantic-release": "^4.3.5" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
} | ||
"name": "koaton-cli", | ||
"version": "0.0.0-semantic-release", | ||
"description": "Koaton is a CLI tool that provides a nice starting point for full stack JavaScript Web development with Koa, Ember, and Node.js along with CaminateJS and WebSockets.", | ||
"main": "./koaton", | ||
"scripts": { | ||
"export:live": "npm run export & chokidar src -c \"cls && npm run export\"", | ||
"eslint:live": "npm run eslint & chokidar src -c \"cls && npm run eslint\"", | ||
"eslint": "eslint src --ignore-path .gitignore", | ||
"export": "node transpile.js v1", | ||
"test": "cross-env NODE_ENV=koaton mocha test/unit/**/*.js test/integration.js --compilers js:babel-register", | ||
"test:live": "npm t -- -w", | ||
"cover": "nyc npm t", | ||
"cover:reload": "node reloadcoverage.js", | ||
"cover:watch": "npm run cover & chokidar src test -c \"cls & npm run cover\"", | ||
"cover:live": "npm-run-all --parallel cover:watch cover:reload", | ||
"codeclimate": "codeclimate analyze -f html -e duplication > duplication.html", | ||
"doc": "esdoc -c esdoc.json", | ||
"commit": "git-cz", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"bin": { | ||
"koaton": "./koaton" | ||
}, | ||
"directories": { | ||
"lib": "lib" | ||
}, | ||
"engines": { | ||
"node": ">= 6.5.0" | ||
}, | ||
"preferGlobal": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gerard2p/koaton-cli.git" | ||
}, | ||
"keywords": [ | ||
"koa", | ||
"bootstrap", | ||
"seed", | ||
"mvc", | ||
"emberjs", | ||
"websockets" | ||
], | ||
"files": [ | ||
"lib", | ||
"README.md", | ||
"LICENSE.md" | ||
], | ||
"author": "Gerardo Pérez Pérez <gerard2perez@outlook.com>", | ||
"license": "MIT", | ||
"readmeFilename": "README.md", | ||
"homepage": "https://github.com/gerard2p/koaton-cli.git", | ||
"dependencies": { | ||
"bluebird": "^3.3.5", | ||
"chokidar": "^1.5.0", | ||
"co": "^4.6.0", | ||
"co-prompt": "^1.0.0", | ||
"colors": "^1.1.2", | ||
"commander": "^2.9.0", | ||
"concat-with-sourcemaps": "^1.0.4", | ||
"cross-spawn": "^5.0.1", | ||
"fs-extra": "^1.0.0", | ||
"glob": "^7.0.5", | ||
"graceful-fs": "^4.1.10", | ||
"gulp-livereload": "^3.8.1", | ||
"i": "^0.3.4", | ||
"imagemin": "^5.2.1", | ||
"imagemin-mozjpeg": "^6.0.0", | ||
"imagemin-pngquant": "^5.0.0", | ||
"less": "^2.7.1", | ||
"less-plugin-clean-css": "^1.5.1", | ||
"mkdirp": "^0.5.1", | ||
"node-notifier": "^4.5.0", | ||
"node-sass": "^3.13.0", | ||
"node-sass-css-importer": "0.0.3", | ||
"nodemon": "^1.9.2", | ||
"uglify-js": "^2.6.4", | ||
"upath": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.18.2", | ||
"babel-plugin-istanbul": "^3.0.0", | ||
"babel-plugin-transform-koa2-async-to-generator": "git+https://gerardopp@bitbucket.org/gerardopp/babel-plugin-transform-koa2-async-to-generator.git", | ||
"babel-plugin-transform-koaton-es6-modules": "git+https://gerardopp@bitbucket.org/gerardopp/babel-plugin-transform-koaton-es6-modules.git", | ||
"babel-plugin-transform-strict-mode": "^6.18.0", | ||
"babel-register": "^6.18.0", | ||
"commitizen": "^2.8.6", | ||
"cross-env": "^3.1.3", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"eslint": "^3.10.2", | ||
"eslint-config-airbnb-base": "^10.0.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"mocha": "^3.1.0", | ||
"npm-run-all": "^3.1.1", | ||
"nyc": "^9.0.1", | ||
"semantic-release": "^4.3.5" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
import * as path from 'path'; | ||
import read from '../utils/.include_base'; | ||
|
||
let mods = {}; | ||
readDir(__dirname) | ||
.filter(item => !(/(^|\/)\.[^\/\.]/g).test(item)) | ||
.filter(item => item !== "index.js") | ||
.filter(item => item !== "help.js") | ||
.forEach((file) => { | ||
if (file.indexOf("barebone") === -1) { | ||
let module = require(path.join(__dirname, file)); | ||
mods[path.basename(file).replace(".js", "")] = module.default ? module.default : module; | ||
} | ||
}); | ||
makeObjIterable(mods); | ||
export default mods; | ||
module.exports = read(__dirname); |
Oops, something went wrong.