0
mirror of https://github.com/valentineus/simple-container.git synced 2025-04-28 00:41:24 +03:00

Initial commit

This commit is contained in:
Valentin Popov 2017-10-04 19:59:46 +04:00
commit b36916c7f5
10 changed files with 295 additions and 0 deletions

5
.babelrc Normal file
View File

@ -0,0 +1,5 @@
{
presets: ["es2015"],
sourceMaps: false,
comments: false
}

28
.eslintrc.json Normal file
View File

@ -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"
]
}
}

66
.gitignore vendored Normal file
View File

@ -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

74
.npmignore Normal file
View File

@ -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

46
.travis.yml Normal file
View File

@ -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

6
LICENSE.md Normal file
View File

@ -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.

28
README.md Normal file
View File

@ -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/).

36
package.json Normal file
View File

@ -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/"
}
}

3
src/lib/index.js Normal file
View File

@ -0,0 +1,3 @@
import { Item } from 'ancient-funicular';
export class Container extends Item {};

3
src/tests/index.js Normal file
View File

@ -0,0 +1,3 @@
describe('simple-container:', () => {
it('test()', () => {});
});