aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-04 18:59:46 +0300
committerValentin Popov <info@valentineus.link>2017-10-04 18:59:46 +0300
commitb36916c7f540d55ae28962503d4d1135e3ce3092 (patch)
tree381bf9226ee3311404ba2c55e0ca9bcbabd4154c
downloadsimple-container-b36916c7f540d55ae28962503d4d1135e3ce3092.tar.xz
simple-container-b36916c7f540d55ae28962503d4d1135e3ce3092.zip
Initial commit
-rw-r--r--.babelrc5
-rw-r--r--.eslintrc.json28
-rw-r--r--.gitignore66
-rw-r--r--.npmignore74
-rw-r--r--.travis.yml46
-rw-r--r--LICENSE.md6
-rw-r--r--README.md28
-rw-r--r--package.json36
-rw-r--r--src/lib/index.js3
-rw-r--r--src/tests/index.js3
10 files changed, 295 insertions, 0 deletions
diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..0c77244
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,5 @@
+{
+ presets: ["es2015"],
+ sourceMaps: false,
+ comments: false
+} \ No newline at end of file
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..b78236f
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,28 @@
+{
+ "env": {
+ "es6": true,
+ "node": true
+ },
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "sourceType": "module"
+ },
+ "rules": {
+ "indent": [
+ "error",
+ 4
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "single"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
+} \ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a481f81
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,66 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+package-lock.json*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# NYC test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+
+# Cloud9 IDE (https://c9.io/)
+.c9revisions
+.c9
+
+# Compiled code
+/lib \ No newline at end of file
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..b36e2c3
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,74 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# NYC test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+
+# Cloud9 IDE (https://c9.io/)
+.c9revisions
+.c9
+
+# Configuration files
+.eslintrc.json
+.travis.yml
+.gitignore
+.babelrc
+
+# Repository
+.git/
+
+# Source
+/src \ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ecd089f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,46 @@
+language: node_js
+
+node_js:
+ - "8"
+ - "7"
+ - "6"
+ - "5"
+ - "4"
+
+os:
+ - linux
+ - osx
+
+notifications:
+ email:
+ - "info@valentineus.link"
+
+before_install:
+ - npm install --global nyc
+ - npm install --global codacy-coverage
+
+install:
+ - npm install --only=production
+ - npm install --only=development
+
+script:
+ - npm run check
+ - nyc npm run test
+ - nyc report --reporter=lcov
+
+after_success:
+ - nyc report --reporter=lcov
+ - cat ./coverage/lcov.info | codacy-coverage
+
+jobs:
+ include:
+ - stage: deploy
+ node_js: "8"
+ os: "linux"
+ before_deploy:
+ - npm run build
+ deploy:
+ provider: npm
+ skip_cleanup: true
+ email: "info@valentineus.link"
+ api_key: $NPM_PROJECT_TOKEN
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..40b4d10
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,6 @@
+Copyright 2017 [Valentin Popov](mailto:info@valentineus.link)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a901a5e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# Simple Container
+[![NPM](https://img.shields.io/npm/v/simple-container.svg)](https://www.npmjs.com/package/simple-container)
+[![Build Status](https://travis-ci.org/valentineus/simple-container.svg?branch=master)](https://travis-ci.org/valentineus/simple-container)
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/286921416577421c98e5f77ce400926c)](https://www.codacy.com/app/valentineus/simple-container)
+[![Codacy Coverage Badge](https://api.codacy.com/project/badge/Coverage/286921416577421c98e5f77ce400926c)](https://www.codacy.com/app/valentineus/simple-container/files)
+[![Gitter Badge](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/valentineus/simple-container)
+
+Simple and fast work with the Docker container
+
+## Installation
+```bash
+npm install --save simple-container
+```
+
+## Using
+```JavaScript
+import Container from 'simple-container';
+
+var container = new Container({});
+container.create();
+```
+
+## License
+[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/eslint/eslint)
+
+[MIT](LICENSE.md).
+Copyright (c)
+[Valentin Popov](https://valentineus.link/). \ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..af90cf5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,36 @@
+{
+ "name": "simple-container",
+ "version": "0.0.0-alpha.1",
+ "description": "Simple and fast work with the Docker container",
+ "homepage": "https://github.com/valentineus/simple-container",
+ "license": "MIT",
+ "author": {
+ "name": "Valentin Popov",
+ "email": "info@valentineus.link"
+ },
+ "bugs": {
+ "url": "https://github.com/valentineus/simple-container/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/valentineus/simple-container.git"
+ },
+ "keywords": [],
+ "main": "lib/index.js",
+ "devDependencies": {
+ "babel-cli": "^6.26.0",
+ "babel-core": "^6.26.0",
+ "babel-preset-es2015": "^6.24.1",
+ "chai": "^4.1.2",
+ "eslint": "^4.8.0",
+ "mocha": "^4.0.0"
+ },
+ "dependencies": {
+ "ancient-funicular": "^3.0.0"
+ },
+ "scripts": {
+ "test": "mocha src/tests/index.js --require babel-core/register",
+ "build": "babel ./src/lib --out-dir ./lib",
+ "check": "eslint ./src/lib/"
+ }
+}
diff --git a/src/lib/index.js b/src/lib/index.js
new file mode 100644
index 0000000..2686a97
--- /dev/null
+++ b/src/lib/index.js
@@ -0,0 +1,3 @@
+import { Item } from 'ancient-funicular';
+
+export class Container extends Item {}; \ No newline at end of file
diff --git a/src/tests/index.js b/src/tests/index.js
new file mode 100644
index 0000000..47b7f79
--- /dev/null
+++ b/src/tests/index.js
@@ -0,0 +1,3 @@
+describe('simple-container:', () => {
+ it('test()', () => {});
+}); \ No newline at end of file