-
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: add support for google translate API
- Loading branch information
1 parent
dd1ec1f
commit c68316b
Showing
21 changed files
with
358 additions
and
162 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"source":"src", | ||
"destination":"doc", | ||
"plugins":[ | ||
{ | ||
"name":"esdoc-standard-plugin", | ||
"option":{ | ||
"accessor":{ | ||
"access":[ | ||
"public", | ||
"protected", | ||
"private" | ||
], | ||
"autoPrivate":true | ||
}, | ||
"undocumentIdentifier":{ | ||
"enable":true | ||
}, | ||
"unexportedIdentifier":{ | ||
"enable":false | ||
}, | ||
"coverage":{ | ||
"enable":true | ||
}, | ||
"brand":{ | ||
"logo":"./koaton-cli.png", | ||
"title":"My Library", | ||
"description":"this is awesome library", | ||
"repository":"https://github.com/gerard2p/koaton", | ||
"site":"http://koaton.io", | ||
"author":"https://github.com/gerard2p", | ||
"image":"http://koaton.io/static/images/logo.png" | ||
}, | ||
"test":{ | ||
"type":"mocha", | ||
"source":"test", | ||
"includes":[ | ||
"\\.(js|es6)$" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name":"esdoc-importpath-plugin", | ||
"option":{ | ||
"replaces":[ | ||
{ | ||
"from":"src/", | ||
"to":"" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "esdoc-ecmascript-proposal-plugin", | ||
"option": { | ||
"classProperties": true, | ||
"objectRestSpread": true, | ||
"doExpressions": true, | ||
"functionBind": true, | ||
"functionSent": true, | ||
"asyncGenerators": true, | ||
"decorators": true, | ||
"exportExtensions": true, | ||
"dynamicImport": true | ||
} | ||
} | ||
] | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var join = require('upath').join; | ||
var mongoose = require(join(process.cwd(), 'testingapp/node_modules/mongoose')); | ||
mongoose.connect('mongodb://localhost/testingapp'); | ||
let con = mongoose.connection; | ||
con.once('open', function () { | ||
console.log('Connected to DB'); | ||
con.dropDatabase(); | ||
con.close(() => { | ||
console.log('Connection Closed'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const chokidar = require('chokidar'); | ||
const livereload = require('gulp-livereload'); | ||
const fs = require('fs-extra'); | ||
const glob = require('glob'); | ||
|
||
function test () { | ||
let script = '<script src="http://localhost:62627/livereload.js?snipver=1"></script>\n</body>'; | ||
glob.sync('coverage/**/*.html').forEach((file) => { | ||
let index = fs.readFileSync(file, 'utf-8').replace('</body>', script); | ||
fs.writeFileSync(file, index, 'utf-8'); | ||
}); | ||
livereload.reload(); | ||
} | ||
var sourcewatcher = chokidar.watch(['coverage/lcov.info'], { | ||
persistent: true, | ||
ignoreInitial: true, | ||
alwaysStat: false, | ||
awaitWriteFinish: { | ||
stabilityThreshold: 200, | ||
pollInterval: 90 | ||
} | ||
}); | ||
sourcewatcher.on('add', () => test()).on('change', () => test()); | ||
livereload.listen({ | ||
port: 62627, | ||
quiet: true | ||
}); | ||
test(); |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const chokidar = require('chokidar'); | ||
const livereload = require('gulp-livereload'); | ||
const fs = require('fs'); | ||
const glob = require('glob'); | ||
|
||
function test (...args) { | ||
let script = '<script src="http://localhost:62627/livereload.js?snipver=1"></script>\n</body>'; | ||
glob.sync('doc/**/*.html').forEach((file) => { | ||
let index = fs.readFileSync(file, 'utf-8').replace('</body>', script); | ||
fs.writeFileSync(file, index, 'utf-8'); | ||
}); | ||
livereload.reload(); | ||
} | ||
var sourcewatcher = chokidar.watch(['doc/scripts/linenumber.js'], { | ||
persistent: true, | ||
ignoreInitial: true, | ||
alwaysStat: false, | ||
awaitWriteFinish: { | ||
stabilityThreshold: 200, | ||
pollInterval: 90 | ||
} | ||
}); | ||
sourcewatcher.on('add', test).on('change', test); | ||
livereload.listen({ | ||
port: 62627, | ||
quiet: true | ||
}); | ||
test(); |
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
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
Oops, something went wrong.