marmot-release
Advanced tools
Comparing version 1.1.7 to 1.1.8
'use strict'; | ||
const os = require('os'); | ||
const fs = require('mz/fs'); | ||
@@ -8,8 +9,7 @@ const path = require('path'); | ||
const assert = require('assert'); | ||
const mime = require('mime-types'); | ||
const compressing = require('compressing'); | ||
const rimraf = require('rimraf'); | ||
const crypto = require('crypto'); | ||
const os = require('os'); | ||
const urllib = require('urllib'); | ||
const mime = require('mime-types'); | ||
const compressing = require('compressing'); | ||
@@ -22,3 +22,3 @@ const MAX_RETRY_TIMES = 3; | ||
'.png', '.jpg', '.json', '.ico', '.svg', | ||
'.map' | ||
'.map', | ||
]; | ||
@@ -28,4 +28,5 @@ | ||
const autoDetectContentType = [ | ||
'.html', '.css', '.js', '.json', | ||
'.png', '.jpg', '.svg', '.ico', | ||
'.html', '.css', '.js', | ||
'.otf', '.woff2', '.woff', '.eot', '.ttf', | ||
'.png', '.jpg', '.json', '.svg', | ||
]; | ||
@@ -32,0 +33,0 @@ const CLIENT_TYPES = { |
{ | ||
"name": "marmot-release", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "marmot release tool", | ||
@@ -27,4 +27,5 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "npm run lint && nyc --reporter=lcov --reporter=text mocha", | ||
"lint": "eslint . --fix" | ||
"test": "nyc --reporter=lcov --reporter=text mocha", | ||
"lint": "eslint . --fix", | ||
"contributor": "git-contributor" | ||
}, | ||
@@ -43,2 +44,3 @@ "engines": { | ||
"eslint-config-antife": "^1.0.2", | ||
"git-contributor": "^1.0.8", | ||
"intelli-espower-loader": "^1.0.1", | ||
@@ -45,0 +47,0 @@ "mocha": "^5.2.0", |
@@ -1,9 +0,24 @@ | ||
Release build files | ||
=================== | ||
# Release build files | ||
### Usage | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![npm download][download-image]][download-url] | ||
[npm-image]: https://img.shields.io/npm/v/marmot-release.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/marmot-release | ||
[travis-image]: https://img.shields.io/travis/macacajs/marmot-release.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/macacajs/marmot-release | ||
[coveralls-image]: https://img.shields.io/coveralls/macacajs/marmot-release.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/macacajs/marmot-release?branch=master | ||
[download-image]: https://img.shields.io/npm/dm/marmot-release.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/marmot-release | ||
--- | ||
## Usage | ||
- create `.marmot-release.js` file: | ||
``` | ||
```javascript | ||
module.exports = { | ||
@@ -29,1 +44,16 @@ region: 'region-name', | ||
<!-- GITCONTRIBUTOR_START --> | ||
## Contributors | ||
|[<img src="https://avatars1.githubusercontent.com/u/2139038?v=4" width="100px;"/><br/><sub><b>zhangyuheng</b></sub>](https://github.com/zhangyuheng)<br/>|[<img src="https://avatars1.githubusercontent.com/u/15955374?v=4" width="100px;"/><br/><sub><b>gaius-qi</b></sub>](https://github.com/gaius-qi)<br/> | ||
| :---: | :---: | | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto upated at `Wed Sep 12 2018 14:48:08 GMT+0800`. | ||
<!-- GITCONTRIBUTOR_END --> | ||
## License | ||
[MIT](LICENSE) |
13521
7
323
59
8