Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat authored Jul 10, 2020
2 parents 7767e88 + 2573e33 commit 04729e1
Show file tree
Hide file tree
Showing 112 changed files with 8,098 additions and 208,619 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
docs/
27 changes: 27 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
env:
browser: true
es6: true
node: true

parserOptions:
ecmaVersion: 2017
sourceType: module

overrides:
- files: "**/*.js"
extends:
- eslint-config-airbnb/base
rules:
import/no-unresolved: [error, {ignore: [dist/]}]
no-console: off
no-unused-expressions: off

- files: "**/*.ts"
extends:
- airbnb-typescript/base
parserOptions:
project: ./tsconfig.lint.json
rules:
no-proto: off
no-underscore-dangle: [error, {allowAfterThis: true}]
import/no-cycle: off
23 changes: 23 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: docs

on:
push:
branches:
- stable

jobs:
docs:
name: build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm ci
- run: npm run build:docs
- run: cp -r on-web docs/
- uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: test

on:
push:
branches:
- stable
pull_request:

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm ci
- run: npm run lint

test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '13', '14']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm ci
- uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_ID }}
with:
coverageCommand: npm run test

build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
node: ['12', '13', '14']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: npm run test:bundle
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.nyc_output/
coverage/
dist/
docs/
node_modules/
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ A benchmarking library for javascript that supports Promise.

[![NPM](https://nodei.co/npm/asyncmark.png)](https://nodei.co/npm/asyncmark/)

[![Build Status](https://travis-ci.org/macrat/AsyncMark.svg?branch=master)](https://travis-ci.org/macrat/AsyncMark)
[![Test Status](https://github.com/macrat/AsyncMark/workflows/test/badge.svg)](https://github.com/macrat/AsyncMark/actions?query=workflow%3Atest)
[![Test Coverage](https://api.codeclimate.com/v1/badges/cd3cd1561b170ca42584/test_coverage)](https://codeclimate.com/github/macrat/AsyncMark/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/cd3cd1561b170ca42584/maintainability)](https://codeclimate.com/github/macrat/AsyncMark/maintainability)

[![dependencies Status](https://david-dm.org/macrat/asyncmark/status.svg)](https://david-dm.org/macrat/asyncmark)
[![devDependencies Status](https://david-dm.org/macrat/asyncmark/dev-status.svg)](https://david-dm.org/macrat/asyncmark?type=dev)
[![optionalDependencies Status](https://david-dm.org/macrat/asyncmark/optional-status.svg)](https://david-dm.org/macrat/asyncmark?type=optional)

[![license](https://img.shields.io/github/license/macrat/AsyncMark.svg)](https://github.com/macrat/AsyncMark/blob/master/LICENSE)
[![document](https://macrat.github.io/AsyncMark/badge.svg)](https://macrat.github.io/AsyncMark/)

You can [try benchmark on the web](https://macrat.github.io/AsyncMark/on-web/index.html).
You can [try benchmark on the web](https://macrat.github.io/AsyncMark/on-web/).

## be simple
``` javascript
import Benchmark from 'asyncmark';
import { Benchmark } from 'asyncmark';


new Benchmark(function() {
Expand All @@ -29,7 +32,7 @@ new Benchmark(function() {

## be customizable
``` javascript
import {Suite} from 'asyncmark';
import { Suite } from 'asyncmark';


const suite = new Suite({
Expand Down Expand Up @@ -79,7 +82,7 @@ suite.run()

## with unit test
``` javascript
import Benchmark from 'asyncmark';
import { Benchmark } from 'asyncmark';


describe('benchmark test', function() {
Expand All @@ -101,7 +104,7 @@ $ npm install asyncmark

#### ES6
``` javascript
import Benchmark, {Suite} from 'asyncmark';
import { Benchmark, Suite } from 'asyncmark';
```

#### CommonJS
Expand Down
27 changes: 0 additions & 27 deletions build.js

This file was deleted.

Loading

0 comments on commit 04729e1

Please sign in to comment.