Skip to content

Commit

Permalink
fix(scaffold): update project scaffold template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Nov 7, 2018
1 parent 759bffe commit fd01aff
Show file tree
Hide file tree
Showing 17 changed files with 351 additions and 4,855 deletions.
17 changes: 0 additions & 17 deletions .codeclimate.yml

This file was deleted.

1 change: 0 additions & 1 deletion .editorconfig
@@ -1,4 +1,3 @@
# http://editorconfig.org
root = true

[*]
Expand Down
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "@ahmadnassri/eslint-config"
}
16 changes: 16 additions & 0 deletions .github/settings.yml
@@ -0,0 +1,16 @@
_extends: .github

repository:
name: node-har-validator
description: Extremely fast HTTP Archive (HAR) validator using JSON Schema
topics: har,cli,ajv,http,archive,validate,validator
homepage: https://github.com/ahmadnassri/node-har-validator
private: false
has_issues: true
has_wiki: false
has_downloads: false
has_projects: false
default_branch: master
allow_squash_merge: true
allow_merge_commit: false
allow_rebase_merge: true
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
*.log
/node_modules
/.nyc_output
/coverage
/node_modules
3 changes: 3 additions & 0 deletions .releaserc
@@ -0,0 +1,3 @@
{
"extends": "@ahmadnassri/semantic-release-config"
}
5 changes: 5 additions & 0 deletions .remarkrc
@@ -0,0 +1,5 @@
{
"plugins": [
"@ahmadnassri/remark-config"
]
}
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions LICENSE
@@ -1,13 +1,9 @@
Copyright (c) 2015, Ahmad Nassri <ahmad@ahmadnassri.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
MIT License

Copyright (c) 2018 Ahmad Nassri <ahmad@ahmadnassri.com>

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.
45 changes: 14 additions & 31 deletions README.md
@@ -1,18 +1,13 @@
# HAR Validator [![version][npm-version]][npm-url] [![License][license-image]][license-url]
# HAR Validator

> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-url]

[![Build Status][travis-image]][travis-url]
[![Downloads][npm-downloads]][npm-url]
[![Code Climate][codeclimate-quality]][codeclimate-url]
[![Coverage Status][codeclimate-coverage]][codeclimate-url]
[![Dependency Status][dependencyci-image]][dependencyci-url]
[![Dependencies][david-image]][david-url]
> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
## Install

```bash
npm install --only=production --save har-validator
npm install har-validator
```

## CLI Usage
Expand All @@ -21,34 +16,22 @@ Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more inf

## API

**Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/har-validator/releases/tag/v2.0.0) this module defaults to Promise based API. *For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided*
**Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/har-validator/releases/tag/v2.0.0) this module defaults to Promise based API. _For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided_

- [async API](docs/async.md)
- [callback API](docs/async.md)
- [Promise API](docs/promise.md) *(default)*
- [Promise API](docs/promise.md) _(default)_

----
> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) &nbsp;&middot;&nbsp;
> License: [ISC][license-url] &nbsp;&middot;&nbsp;
> Github: [@ahmadnassri](https://github.com/ahmadnassri) &nbsp;&middot;&nbsp;
---
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) &bull;
> Github: [@ahmadnassri](https://github.com/ahmadnassri) &bull;
> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
[license-url]: http://choosealicense.com/licenses/isc/
[license-image]: https://img.shields.io/github/license/ahmadnassri/har-validator.svg?style=flat-square
[license-url]: LICENSE
[license-image]: https://img.shields.io/github/license/ahmadnassri/node-har-validator.svg?style=for-the-badge&logo=circleci

[travis-url]: https://travis-ci.org/ahmadnassri/har-validator
[travis-image]: https://img.shields.io/travis/ahmadnassri/har-validator.svg?style=flat-square
[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/har-validator
[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-har-validator/master.svg?style=for-the-badge&logo=circleci

[npm-url]: https://www.npmjs.com/package/har-validator
[npm-version]: https://img.shields.io/npm/v/har-validator.svg?style=flat-square
[npm-downloads]: https://img.shields.io/npm/dm/har-validator.svg?style=flat-square

[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/har-validator
[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/har-validator.svg?style=flat-square
[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/har-validator.svg?style=flat-square

[david-url]: https://david-dm.org/ahmadnassri/har-validator
[david-image]: https://img.shields.io/david/ahmadnassri/har-validator.svg?style=flat-square

[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/har-validator
[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/har-validator/badge?style=flat-square
[npm-image]: https://img.shields.io/npm/v/har-validator.svg?style=for-the-badge&logo=npm
99 changes: 99 additions & 0 deletions circle.yml
@@ -0,0 +1,99 @@
version: 2.1

executors:
builder:
docker:
- image: ahmadnassri/build-essential

node-6:
docker:
- image: node:6-slim

node-8:
docker:
- image: node:8-slim

node-10:
docker:
- image: node:10-slim

commands:
persist:
steps:
- persist_to_workspace:
root: .
paths: .

attach:
steps:
- attach_workspace:
at: .

install:
steps:
- run:
name: Install dependencies
command: npm ci

jobs:
build:
executor: builder
steps:
- checkout
- install
- persist

lint:
executor: builder
steps:
- attach
- run: npm run lint

test-node-6:
executor: node-6
steps:
- attach
- run: npm run test

test-node-8:
executor: node-8
steps:
- attach
- run: npm run test

test-node-10:
executor: node-10
steps:
- attach
- run: npm run test

release:
executor: builder
steps:
- attach
- run: npx semantic-release

workflows:
version: 2
main:
jobs:
- build

- lint:
requires: [ build ]

- test-node-6:
requires: [ build ]

- test-node-8:
requires: [ build ]

- test-node-10:
requires: [ build ]

- release:
context: semantic-release
requires: [ build, lint, test-node-6, test-node-8, test-node-10 ]
filters:
branches:
only: master

0 comments on commit fd01aff

Please sign in to comment.