Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Apr 20, 2019
0 parents commit f9a10c9
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*.{js,css,md}]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
!src
!test
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: require.resolve('eslint-config-ostai')
}
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Node, Coverage, NPM
/.nyc_output
/coverage
/coverage.lcov
/package-lock.json
/*.tgz


# Numerous always-ignore extensions
*.bak
*.patch
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi
*~
*.sass-cache
*.lock
*.rdb
*.db
nohup.out

# OS or Editor folders
.DS_Store
._*
.cache
.project
.settings
.tmproj
*.esproj
*.*-project
*.*-workspace
nbproject
thumbs.db

# Folders to ignore
.hg
.svn
.CVS
.idea
node_modules
old/
*-old/
*-notrack/
no-track/
build/
combo/
reference/
jscoverage_lib/
temp/
tmp/

# Java
.mvn
.gradle
.vscode
.project
.classpath
/gradle
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
sudo: false
node_js:
- "8"
- "10"
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# History
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) 2013 kaelzhang <>, contributors
http://kael.me/

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.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[![Build Status](https://travis-ci.org/kaelzhang/caviar-test.svg?branch=master)](https://travis-ci.org/kaelzhang/caviar-test)
[![Coverage](https://codecov.io/gh/kaelzhang/caviar-test/branch/master/graph/badge.svg)](https://codecov.io/gh/kaelzhang/caviar-test)
<!-- optional appveyor tst
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/caviar-test?branch=master&svg=true)](https://ci.appveyor.com/project/kaelzhang/caviar-test)
-->
<!-- optional npm version
[![NPM version](https://badge.fury.io/js/@caviar/test.svg)](http://badge.fury.io/js/@caviar/test)
-->
<!-- optional npm downloads
[![npm module downloads per month](http://img.shields.io/npm/dm/@caviar/test.svg)](https://www.npmjs.org/package/@caviar/test)
-->
<!-- optional dependency status
[![Dependency Status](https://david-dm.org/kaelzhang/caviar-test.svg)](https://david-dm.org/kaelzhang/caviar-test)
-->

# @caviar/test

Testing utility for caviar

## Install

```sh
$ npm i @caviar/test
```

## Usage

```js
import @caviar/test from '@caviar/test'
```

## License

[MIT](LICENSE)
22 changes: 22 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Test against this version of Node.js
environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "10"

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- npm test

# Don't actually build.
build: off
44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@caviar/test",
"version": "1.0.0",
"description": "Testing utility for caviar",
"main": "src/index.js",
"scripts": {
"test": "NODE_DEBUG=@caviar/test nyc ava --timeout=10s --verbose",
"test:only": " nyc ava --timeout=10s --verbose",
"lint": "eslint .",
"posttest": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
},
"files": [
"src/"
],
"repository": {
"type": "git",
"url": "git://github.com/kaelzhang/caviar-test.git"
},
"keywords": [
"@caviar/test"
],
"engines": {
"node": ">= 6"
},
"ava": {
"babel": false,
"files": [
"test/*.test.js"
]
},
"author": "kaelzhang",
"license": "MIT",
"bugs": {
"url": "https://github.com/kaelzhang/caviar-test/issues"
},
"devDependencies": {
"ava": "^1.4.1",
"codecov": "^3.3.0",
"nyc": "^13.3.0",
"eslint-config-ostai": "^3.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint": "^5.16.0"
}
}
Empty file added src/index.js
Empty file.
7 changes: 7 additions & 0 deletions test/@caviar/test.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const test = require('ava')
const log = require('util').debuglog('@caviar/test')
const @caviar/test = require('../src')

test('description', t => {
t.is(true, true)
})

0 comments on commit f9a10c9

Please sign in to comment.