diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2091022 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# IDEA +.idea + +# node + +node_modules \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..e7cea69 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "node_deployer", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/noguchi-hiroshi/node_deployer.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/noguchi-hiroshi/node_deployer/issues" + }, + "homepage": "https://github.com/noguchi-hiroshi/node_deployer#readme" +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..30b6abe --- /dev/null +++ b/src/index.js @@ -0,0 +1,9 @@ +"use strict"; + +const task = new Task(); + +task.add('deploy', async () => { + +}); + +module.exports = task; diff --git a/src/lib/server.js b/src/lib/server.js new file mode 100644 index 0000000..d708d9f --- /dev/null +++ b/src/lib/server.js @@ -0,0 +1,7 @@ +"use strict"; + +class Server { + constructor() { + this._servers = {}; + } +} \ No newline at end of file diff --git a/src/lib/task.js b/src/lib/task.js new file mode 100644 index 0000000..f8adce4 --- /dev/null +++ b/src/lib/task.js @@ -0,0 +1,13 @@ +"use strict"; + +class Task { + constructor() { + this._tasks = {}; + } + + add(name, fn) { + this._tasks[name] = fn; + } +} + +module.exports = Task; \ No newline at end of file