# tasegir

> TypeScript JavaScript project management

Latest version **1.9.3** (published 2021-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install tasegir
pnpm add tasegir
yarn add tasegir
bun add tasegir
```

Provides the command `tasegir`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.9.3 |
| Published | 2021-01-28 |
| First published | 2019-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 96 |
| Unpacked size | 114.7 KB |
| Known vulnerabilities | 0 (+12 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | auhau |
| Keywords | webpack, standard, lint, typescript, build |

## Links

- npm: https://www.npmjs.com/package/tasegir
- Repository: https://github.com/auhau/tasegir
- Issues: https://github.com/ipfs/auhau/tasegir
- npm.io page: https://npm.io/package/tasegir

## Dependencies (96)

- [del](https://npm.io/package/del.md) ^5.1.0
- [nyc](https://npm.io/package/nyc.md) ^14.1.0
- [pify](https://npm.io/package/pify.md) ^4.0.1
- [async](https://npm.io/package/async.md) ^2.6.1
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [execa](https://npm.io/package/execa.md) ^5.0.0
- [karma](https://npm.io/package/karma.md) ^4.3.0
- [listr](https://npm.io/package/listr.md) ~0.14.2
- [mocha](https://npm.io/package/mocha.md) ^6.1.4
- [p-map](https://npm.io/package/p-map.md) ^3.0.0
- [yargs](https://npm.io/package/yargs.md) ^14.0.0
- [arrify](https://npm.io/package/arrify.md) ^2.0.1
- [eslint](https://npm.io/package/eslint.md) ^7.17.0
- [globby](https://npm.io/package/globby.md) ^10.0.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.14
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.0
- [semver](https://npm.io/package/semver.md) ^6.3.0
- [codecov](https://npm.io/package/codecov.md) ^3.3.0
- [it-glob](https://npm.io/package/it-glob.md) ~0.0.5
- [through](https://npm.io/package/through.md) ^2.3.8
- [ts-node](https://npm.io/package/ts-node.md) ^9.1.1
- [webpack](https://npm.io/package/webpack.md) ^4.40.2
- [filesize](https://npm.io/package/filesize.md) ^4.2.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [gh-pages](https://npm.io/package/gh-pages.md) ^2.1.1
- [inquirer](https://npm.io/package/inquirer.md) ^7.0.0
- [vinyl-fs](https://npm.io/package/vinyl-fs.md) ^3.0.3
- [@hapi/joi](https://npm.io/package/@hapi/joi.md) ^15.1.0
- [karma-cli](https://npm.io/package/karma-cli.md) ^2.0.0
- [npm-which](https://npm.io/package/npm-which.md) ^3.0.1
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.6.0
- [bundlesize](https://npm.io/package/bundlesize.md) ~0.18.0
- [simple-git](https://npm.io/package/simple-git.md) ^1.126.0
- [typescript](https://npm.io/package/typescript.md) ^4.1.3
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.6.0
- [@types/node](https://npm.io/package/@types/node.md) ^14.14.14
- [detect-node](https://npm.io/package/detect-node.md) ^2.0.4
- [findup-sync](https://npm.io/package/findup-sync.md) ^4.0.0
- [json-loader](https://npm.io/package/json-loader.md) ~0.5.7
- [karma-mocha](https://npm.io/package/karma-mocha.md) ^1.3.0
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^6.0.0
- [resolve-bin](https://npm.io/package/resolve-bin.md) ~0.4.0
- [stream-http](https://npm.io/package/stream-http.md) ^3.1.0
- [ts-node-dev](https://npm.io/package/ts-node-dev.md) ^1.1.1
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.8
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.5
- [git-validate](https://npm.io/package/git-validate.md) ^2.2.4
- [stream-array](https://npm.io/package/stream-array.md) ^1.1.2
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^14.0.0
- [documentation](https://npm.io/package/documentation.md) ^13.1.0
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^6.0.2
- [karma-webpack](https://npm.io/package/karma-webpack.md) 4.0.2
- [pretty-hrtime](https://npm.io/package/pretty-hrtime.md) ^1.0.3
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^4.2.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.6.0
- [electron-mocha](https://npm.io/package/electron-mocha.md) ^8.1.2
- [prompt-promise](https://npm.io/package/prompt-promise.md) ^1.0.3
- [@commitlint/cli](https://npm.io/package/@commitlint/cli.md) ^8.3.3
- [browserify-zlib](https://npm.io/package/browserify-zlib.md) ~0.2.0
- [update-notifier](https://npm.io/package/update-notifier.md) ^3.0.1
- [@commitlint/lint](https://npm.io/package/@commitlint/lint.md) ^8.3.2
- [@commitlint/load](https://npm.io/package/@commitlint/load.md) ^8.3.3
- [@commitlint/read](https://npm.io/package/@commitlint/read.md) ^8.3.2
- [dependency-check](https://npm.io/package/dependency-check.md) ^4.1.0
- [transform-loader](https://npm.io/package/transform-loader.md) ~0.2.4
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.6.0
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.16
- [karma-edge-launcher](https://npm.io/package/karma-edge-launcher.md) ~0.4.2
- [detective-typescript](https://npm.io/package/detective-typescript.md) ^6.0.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.22.1
- [karma-junit-reporter](https://npm.io/package/karma-junit-reporter.md) ^1.2.0
- [karma-mocha-reporter](https://npm.io/package/karma-mocha-reporter.md) ^2.2.5
- [stats-webpack-plugin](https://npm.io/package/stats-webpack-plugin.md) ~0.7.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^4.2.1
- [karma-chrome-launcher](https://npm.io/package/karma-chrome-launcher.md) ^3.1.0
- [karma-mocha-webworker](https://npm.io/package/karma-mocha-webworker.md) ^1.3.0
- [npm-package-json-lint](https://npm.io/package/npm-package-json-lint.md) ^3.7.0
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^2.0.1
- [@commitlint/travis-cli](https://npm.io/package/@commitlint/travis-cli.md) ^8.3.3
- [conventional-changelog](https://npm.io/package/conventional-changelog.md) ^3.1.10
- [eslint-config-standard](https://npm.io/package/eslint-config-standard.md) ^16.0.2
- [karma-firefox-launcher](https://npm.io/package/karma-firefox-launcher.md) ^1.2.0
- [karma-sourcemap-loader](https://npm.io/package/karma-sourcemap-loader.md) ~0.3.7
- [listr-verbose-renderer](https://npm.io/package/listr-verbose-renderer.md) ~0.5.0
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^3.5.0
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) ^7.6.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^4.13.0
- [eslint-plugin-no-only-tests](https://npm.io/package/eslint-plugin-no-only-tests.md) ^2.4.0
- [conventional-github-releaser](https://npm.io/package/conventional-github-releaser.md) ^3.1.3
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) ^7.6.0
- [@commitlint/config-conventional](https://npm.io/package/@commitlint/config-conventional.md) ^8.3.3
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^4.13.0
- [@babel/plugin-transform-regenerator](https://npm.io/package/@babel/plugin-transform-regenerator.md) ^7.4.5
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.7.4
- [@babel/plugin-proposal-object-rest-spread](https://npm.io/package/@babel/plugin-proposal-object-rest-spread.md) ^7.6.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.9.3 (latest) — 2021-01-28
- 1.9.2 — 2021-01-12
- 1.9.1 — 2021-01-12
- 1.9.0 — 2020-12-23
- 1.8.0 — 2020-08-11
- 1.7.2 — 2020-08-10
- 1.7.1 — 2020-03-24
- 1.7.0 — 2020-03-05
- 1.6.0 — 2020-01-04
- 1.5.2 — 2019-12-29
- 1.5.1 — 2019-12-29
- 1.5.0 — 2019-12-29
- 1.4.0 — 2019-12-23
- 1.3.4 — 2019-12-11
- 1.3.3 — 2019-12-06
- … 12 more at https://npm.io/package/tasegir/versions

## README

# tAsEgir

[![Travis CI](https://flat.badgen.net/travis/auhau/tasegir)](https://travis-ci.com/auhau/tasegir)
[![Dependency Status](https://david-dm.org/auhau/tasegir.svg?style=flat-square)](https://david-dm.org/auhau/tasegir)
[![Managed by tAsEgir](https://img.shields.io/badge/%20managed%20by-tasegir-blue)](https://github.com/auhau/tasegir)

> Automated TypeScript project management.

*Fork of [aegir](https://github.com/ipfs/aegir) specializing on TypeScript projects. Thanks [Protocol Labs](https://protocol.ai/) for all the work!* 

**Warning: this project is still in quite active transition phase to support TypeScript. Things might break, please report them!**

## Lead Maintainer

[Adam Uhlíř](https://github.com/AuHau)

## Project Structure

The project structure when using this is quite strict, to ease replication and configuration overhead.

All source code should be placed under `src`, with the main entry point being `src/index.ts`.

All test files should be placed under `test`. Individual test files should end in `.spec.ts` and setup files for the node and the browser should be `test/node.ts` and `test/browser.ts` respectively.

Your `package.json` should have the following entries and should pass `tasegir lint-package-json`.

```json
{
  "main": "src/index.ts",
  "files": [
    "src",
    "dist",
    "lib",
    "types"
  ],
  
  "scripts": {
    "compile": "tasegir compile",
    "compile:watch": "tasegir compile -- --watch",
    "types-check": "tasegir types-check",
    "exec": "tasegir run",
    "lint": "tasegir lint",
    "release": "tasegir release",
    "build": "tasegir build",
    "test": "tasegir test",
    "test:node": "tasegir test --target node",
    "test:browser": "tasegir test --target browser"
  }
}
```

## Stack and requirement

To bring you its many benefits, `tasegir` requires

- TS written in [Standard](https://github.com/feross/standard) style enforced using [ESlint](https://eslint.org/).
- Tests written in [Mocha](https://github.com/mochajs/mocha)
- [Karma](https://github.com/karma-runner/karma) for browser tests

TypeScript is supported using [tsc](https://www.npmjs.com/package/typescript) (for compilation), [ts-node](https://www.npmjs.com/package/ts-node) (for execution)
and [babel/preset-typescript](https://www.npmjs.com/package/@babel/preset-typescript) (for browser bundling).

## Development

As TypeScript needs to be compiled to run, there are several options how to do that based on your flow.

 - It can be compiled using [`compile`](#compile) task, which produces JavaScript files in `lib` folder.
 - If you want just do an type analysis you can run [`types-check`](#types-check) task. 
 - If you want to execute some TS file, you can use [`run`](#run) task to execute specific file.

## Configuration

### Local configuration

It is possible to overload the default configuration of most tools that `tasegir` integrates. You can do so by creating
a `.tasegir.js` file in the root of the project. It has to export an object with this schema:

```javascript
module.exports = {
  bundlesize: {}, // bundleSize config
  webpack: {}, // webpack.config.js content
  karma: {}, // karma.conf.js content
  hooks: {}, // See Tests -> Hooks
  lint: {
    files: [] // Globby list of paths to lint
  },
  depCheck: {
    files: [], // Globby list of paths to check allowing overriding the default setting
    ignore: [] // Array of modules to ignore, '*' is supported for globbing. Overrides the default setting.
  },
  tsconfig: { compilerOptions: {...} }, // Place for tsconfig.json configuration, only compilerOptions are used though.
  entry: utils.fromRoot('src', 'index.ts'), // Entry point 
}
``` 

### Global configuration

You can use global configuration for some aspects of `tasegir`. Similalrly to local configuration it is file `.tasegir.js`
placed in your home folder (eq. `~/.tasegir.js`). This location can be customized using `TASEGIR_CONFIG` env. variable.

```javascript
module.exports = {
    release: {
        ghtoken: 'token'
    }
}
``` 

Currently only supported option is `release.ghtoken`. It is used for configuration Github Token needed for creating releases using `tasegir release` command. 
It has following possible values:
 - `function` returning `Promise<string>` with ghtoken
 - `string` starting with `shell:` prefix. In such case remaining of the string will be executed as shell command and its `stdout` used as the token.
 - `string` *not* starting with `shell:`. The string will be used as the token.

## IDE support

If you use an IDE that has support for the tools used, you can point your IDE towards the proper configuration files.

 - `./node_modules/tasegir/src/config/eslintrc.js` for ESlint
 - `./node_modules/tasegir/src/config/tsconfig.json` for TypeScript

## Tasks

### Compile

Compile task will compile all TypeScript files in `/src` folder into `/lib` folder. It performs type checking as well.

You can watch for changes passing `--watch` flag like: `tasegir compile -- --watch`.

### Run

If you need to run just specific file (for example web server/CLI command) you can use the `tasegir run <file> [args...]` task.
It is executed using [ts-node](https://www.npmjs.com/package/ts-node)

This task also support `--watch` parameter (`tasegir run --watch <file> [args...]`) which will automatically reload
modified files. It uses [ts-node-dev](https://github.com/whitecolor/ts-node-dev) package for it.

If you need to debug some script you can use node's `--inspect` and `--inspect-brk` flags.

### Linting

Linting happens in three phases:
  - Linting of package.json using [npm-package-json-lint](https://www.npmjs.com/package/npm-package-json-lint)
  - Checking version number of all dependencies (normal, dev, peer, optional and bundled)
  - Code linting

Code linting uses [eslint](http://eslint.org/), [standard](https://github.com/feross/standard), [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin)
with [some custom rules](https://github.com/auhau/tasegir/tree/master/src/config/eslintrc.js) to enforce some more strictness.

You can run it using

```bash
$ tasegir lint
$ tasegir lint-package-json
```
### Types check

When you want to perform just a type check without TypeScript compilation you can run `tasegir types-check`. This step is also part of the CI pipeline.

### Dependency check

Dependency check parses code and check if all dependencies used in code are declared in `package.json` and also vice versa
if all dependencies declared in `package.json` are actually used in the code.

It is quite common to have dependencies that are not used directly in the code in such a case use the [`tasegir`'s config
file](#configuration) capabilities to ignore out these modules.

### Testing

You can run it using

```bash
$ tasegir test
```

There are also browser and node specific tasks

```bash
$ tasegir test --target node
$ tasegir test --target browser
$ tasegir test --target webworker
```

#### Hooks

You can specify hooks that are run before/after the tests. Definition of the hooks is done using [Configuration](#configuration) and the `hooks` property.
It has following syntax:

```javascript
module.exports = {
  hooks: {
    node: {
      pre: () => {},
      post: () => {},
    },
    browser: {
      pre: () => {},
      post: () => {},
    },
  }
}
```

#### Fixtures

Loading fixture files in node and the browser can be painful, that's why tasegir provides
a method to do this. For it to work you have to put your fixtures in the folder `test/fixtures`, and then

```js
// test/awesome.spec.js
const loadFixture = require('tasegir/fixtures')

const myFixture = loadFixture('test/fixtures/largefixture')
```

The path to the fixture is relative to the module root.

If you write a module
which is to be consumed by other modules tests you need to pass in a third parameter such that
the server is able to serve the correct files.

For example

```js
// awesome-tests module
const loadFixture = require('tasegir/fixtures')

const myFixture = loadFixture('test/fixtures/coolfixture', 'awesome-tests')
```


```js
// tests for module using the awesome-tests
require('awesome-tests')
```

```js
// .tasegir.js file in the module using the awesome-tests module
'use strict'

module.exports = {
  karma: {
    files: [{
      pattern: 'node_modules/awesome-tests/test/fixtures/**/*',
      watched: false,
      served: true,
      included: false
    }]
  }
}
```

#### Coverage

The tests are automatically ran with test coverage support and basic text reporting. If you don't want to ran
tests with test coverage you can pass `--no-coverage` flag to the `tasegir test` command. The coverage is currently supported
only on `node` target.

If you want to specify some other `nyc` reporter to be used use `--reporter` flag.

```bash
$ tasegir test -t node --reporter html && open coverage/index.html
```

To auto publish coverage reports from Travis to Codecov use this in
your `.travis.yml` file.

```yml

script: npx tasegir test -t node --reporter lcovonly -- --bail
after_success: npx codecov
```

### Building

You can run it using

```bash
$ tasegir build
```
This will build a browser ready version into `dist`, so after publishing the results will be available under

```
https://unpkg.com/<module-name>/dist/index.js
https://unpkg.com/<module-name>/dist/index.min.js
```

**Specifying a custom entry file for Webpack**

By default, `tasegir` uses `src/index.js` as the entry file for Webpack. If you want to modify this value use `entry` field in `tasegir` configuration as mentioned in [Configuration](#configuration):

```javascript
module.exports = {
  entry: "src/browser-index.js",
}
```

Webpack will use the specified file as the entry point and output it to `dist/<filename>`, eg. `dist/browser-index.js`.


#### Generating Webpack stats.json

Pass the `--analyze` option to have Webpack generate a `stats.json` file for the bundle and save it in the project root (see https://webpack.js.org/api/stats/). e.g.

```bash
tasegir build --analyze
```

### Releasing

1. Run linting
2. Run tests
3. Build everything
4. Compile everything in `/src` to `/lib`
4. Bump the version in `package.json`
5. Generate a changelog based on the git log
6. Commit the version change & `CHANGELOG.md`
7. Create a git tag
8. Run `git push` to `origin/master`
9. Publish a release to Github releases
10. Generate documentation and push to github
11. Publish to npm

```bash
# Major release
$ tasegir release --type major
# Minor relase
$ tasegir release --type minor
# Patch release
$ tasegir release

# Major prerelease (1.0.0 -> 2.0.0-rc.0)
$ tasegir release --type premajor --preid rc --dist-tag next
# Minor prerelease (1.0.0 -> 1.1.0-rc.0)
$ tasegir release --type preminor --preid rc --dist-tag next
# Patch prerelease (1.0.0 -> 1.0.1-rc.0)
$ tasegir release --type prepatch --preid rc --dist-tag next

# Increment prerelease (1.1.0-rc.0 -> 1.1.0-rc.1)
$ tasegir release --type prerelease --preid rc --dist-tag next
```

> This requires Github Token to be available.

You can also specify the same targets as for `test`.

If no `CHANGELOG.md` is present, one is generated the first time a release is done.

You can skip all changelog generation and the github release by passing
in `--no-changelog`.

If you want no documentation generation you can pass `--no-docs` to the release task to disable documentation builds.

#### Scoped Github Token

Performing a release involves creating new commits and tags and then pushing them back to the repository you are releasing from. 
In order to do this you should create a [GitHub personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
The only access scope it needs is `public_repo`.

There are several options how you can store it and/or pass it to `tasegir`:

 1. Pass it using `--ghtoken` parameter of `tasegir release` command. **Do this only in "private" mode of your shell, otherwise token will be stored in your shell's history files and retrievable by potentially malicious programs.**
 1. Pass it using `TASEGIR_GHTOKEN` env. variable. **Same warning applies here as in previous option.**
 1. If `tasegir` won't find any token using methods in this list, it will prompt for you to enter it.
 1. Using [global configuration](#global-configuration) setting `release.ghtoken` property. See [global configuration](#global-configuration) for more info.
 
**Recommendation:** If security is your priority I recommend you to encrypt the token using PGP like `gpg --encrypt --recipient {YOUR_KEY_ID} ~/.ghtoken`
which results in encrypted `~/.ghtoken.gpg`, you can then remove the original file. Then in [global configuration](#global-configuration)
use `shell:gpg -q --decrypt ~/.ghtoken.gpg` to automatically decrypt it using PGP every time it is needed. 

Be aware that by storing it as `TASEGIR_GHTOKEN` env. variable in `~/.profile` or similar you will make it available to any program that runs on your computer.

### Documentation

You can use `tasegir docs` to generate documentation. This uses [documentation.js](http://documentation.js.org/) with the theme [clean-documentation-theme](https://github.com/dignifiedquire/clean-documentation-theme).

To publish the documentation automatically to the `gh-pages` branch you can run

```bash
$ tasegir docs --publish
```

## Add CI to your repo
  
### Activate Travis
Create a file named .travis.yml with the following content:

```yaml
language: node_js
cache: npm
stages:
  - check
  - test
  - cov

node_js:
  - '12'
  - '10'

os:
  - linux
  - osx
  - windows

script: npx tasegir test -t node --reporter lcovonly -- --bail
after_success: npx codecov

jobs:
  include:
    - stage: check
      script:
        - npx tasegir commitlint --travis
        - npx tasegir dep-check
        - npm run lint

    - stage: test
      name: chrome
      addons:
        chrome: stable
      script: npx tasegir test -t browser -t webworker

    - stage: test
      name: firefox
      addons:
        firefox: latest
      script: npx tasegir test -t browser -t webworker -- --browsers FirefoxHeadless
    
    - stage: test
      name: electron-main
      os: osx
      script:
        - npx tasegir test -t electron-main --bail
    
    - stage: test
      name: electron-renderer
      os: osx
      script:
        - npx tasegir test -t electron-renderer --bail

notifications:
  email: false

```
To add a CI badge to your README use :

```markdown
[![Travis CI](https://flat.badgen.net/travis/<path_to_your_repo>)](https://travis-ci.com/<path_to_your_repo>)
```

#### Commit linting

Travis does commit linting prior any tests run. The commit's schema is based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
and [commitlint](https://github.com/conventional-changelog/commitlint) implementation.

The support commit types are: *build, chore, ci, docs, feat, fix, improvement, perf, refactor, revert, style, test*

### Troubleshooting Windows jobs

#### Caches timeout   

If you get something like this 
<img width="1082" alt="screenshot 2019-02-12 at 12 52 10" src="https://user-images.githubusercontent.com/314190/52636718-4f934f80-2ec5-11e9-9b8d-2d368ec4cf4a.png">
Clean the caches for that repo/branch and restart.

#### Secrets problem

<img width="1062" alt="screenshot 2019-02-13 at 16 08 22" src="https://user-images.githubusercontent.com/314190/52725701-9eb2b080-2fa9-11e9-9508-2bd00ad31062.png">

If your build stops in the  `nvs add 10` step you probably have secrets (ENV vars) in your Travis config and Windows doesn't work with secrets. You must delete all the secrets to make it works.

<img width="1082" alt="screenshot 2019-02-13 at 16 06 56" src="https://user-images.githubusercontent.com/314190/52725628-7f1b8800-2fa9-11e9-995a-39341a3c7785.png">

#### Allow failure on windows
add the following 
```yaml
matrix:
  fast_finish: true
  allow_failures:
    - os: windows
```
before this line https://github.com/libp2p/js-libp2p/blob/master/.travis.yml#L14

## License

MIT

---
_Source: https://npm.io/package/tasegir · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
