Skip to content

Commit 7bb1473

Browse files
committed
Scaffold: Update repository template
1 parent 5e1b0b1 commit 7bb1473

File tree

9 files changed

+198
-28
lines changed

9 files changed

+198
-28
lines changed

.ci/.azure-pipelines-steps.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
steps:
2+
- script: npm i -g npm@$(npm_version)
3+
displayName: Use legacy npm version $(npm_version)
4+
condition: ne(variables['npm_version'], '')
5+
6+
- task: NodeTool@0
7+
inputs:
8+
versionSpec: '$(node_version)'
9+
displayName: Use Node $(node_version)
10+
11+
- script: npm install
12+
displayName: npm install
13+
14+
- script: npm test
15+
displayName: Run tests
16+
17+
- script: npm run coveralls
18+
displayName: Run coveralls
19+
env:
20+
# Pretend to be AppVeyor for now
21+
APPVEYOR: true
22+
APPVEYOR_BUILD_NUMBER: $(Build.BuildNumber)
23+
APPVEYOR_BUILD_ID: $(Agent.OS)_$(node_version)
24+
APPVEYOR_REPO_COMMIT: $(Build.SourceVersion)
25+
APPVEYOR_REPO_BRANCH: $(Build.SourceBranchName)
26+
# Overwrite the AppVeyor Service Name
27+
COVERALLS_SERVICE_NAME: Azure Pipelines
28+
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET)
29+
COVERALLS_PARALLEL: true
30+
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
31+
32+
- script: npm run azure-pipelines
33+
displayName: Write tests to xml
34+
35+
- task: PublishTestResults@2
36+
inputs:
37+
testResultsFiles: '**/test.xunit'
38+
condition: succeededOrFailed()

.ci/.azure-pipelines.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
trigger:
2+
- master
3+
- releases/*
4+
5+
jobs:
6+
- job: Test_Linux
7+
displayName: Run Tests on Linux
8+
pool:
9+
vmImage: "Ubuntu 16.04"
10+
strategy:
11+
matrix:
12+
Node_v12:
13+
node_version: 12
14+
Node_v10:
15+
node_version: 10
16+
Node_v8:
17+
node_version: 8
18+
Node_v6:
19+
node_version: 6
20+
Node_v4:
21+
node_version: 4
22+
Node_v0_12:
23+
node_version: 0.12
24+
Node_v0_10:
25+
node_version: 0.10
26+
steps:
27+
- template: .azure-pipelines-steps.yml
28+
29+
- job: Test_Windows
30+
displayName: Run Tests on Windows
31+
pool:
32+
vmImage: vs2017-win2016
33+
strategy:
34+
matrix:
35+
Node_v12:
36+
node_version: 12
37+
Node_v10:
38+
node_version: 10
39+
Node_v8:
40+
node_version: 8
41+
Node_v6:
42+
node_version: 6
43+
Node_v4:
44+
node_version: 4
45+
npm_version: 2
46+
Node_v0_12:
47+
node_version: 0.12
48+
npm_version: 2
49+
Node_v0_10:
50+
node_version: 0.10
51+
npm_version: 2
52+
steps:
53+
- template: .azure-pipelines-steps.yml
54+
55+
- job: Test_MacOS
56+
displayName: Run Tests on MacOS
57+
pool:
58+
vmImage: macos-10.13
59+
strategy:
60+
matrix:
61+
Node_v12:
62+
node_version: 12
63+
Node_v10:
64+
node_version: 10
65+
Node_v8:
66+
node_version: 8
67+
Node_v6:
68+
node_version: 6
69+
Node_v4:
70+
node_version: 4
71+
Node_v0_12:
72+
node_version: 0.12
73+
Node_v0_10:
74+
node_version: 0.10
75+
steps:
76+
- template: .azure-pipelines-steps.yml
77+
78+
- job: Notify_Coveralls
79+
displayName: Notify Coveralls that the parallel report is done
80+
pool:
81+
vmImage: "Ubuntu 16.04"
82+
dependsOn:
83+
- Test_Linux
84+
- Test_Windows
85+
- Test_MacOS
86+
steps:
87+
- script: curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$BUILD_NAME&payload[status]=done"
88+
env:
89+
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET)
90+
BUILD_NAME: $(Build.BuildNumber)

.gitignore

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,67 @@
11
# Logs
22
logs
33
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
47

58
# Runtime data
69
pids
710
*.pid
811
*.seed
12+
*.pid.lock
913

1014
# Directory for instrumented libs generated by jscoverage/JSCover
1115
lib-cov
1216

1317
# Coverage directory used by tools like istanbul
1418
coverage
1519

20+
# nyc test coverage
21+
.nyc_output
22+
1623
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1724
.grunt
1825

26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
1929
# node-waf configuration
2030
.lock-wscript
2131

22-
# Compiled binary addons (http://nodejs.org/api/addons.html)
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2333
build/Release
2434

25-
# Dependency directory
26-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27-
node_modules
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
2850

51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
63+
# Garbage files
2964
.DS_Store
65+
66+
# Test results
67+
test.xunit

.jscsrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
sudo: false
22
language: node_js
33
node_js:
4+
- '12'
45
- '10'
56
- '8'
67
- '6'
7-
- '5'
88
- '4'
99
- '0.12'
1010
- '0.10'

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# async-done
88

9-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
9+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
1010

1111
Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and streams, and callbacks to callback style.
1212

@@ -91,18 +91,21 @@ Errors can be caused by:
9191

9292
MIT
9393

94-
[downloads-image]: http://img.shields.io/npm/dm/async-done.svg
94+
[downloads-image]: https://img.shields.io/npm/dm/async-done.svg
9595
[npm-url]: https://www.npmjs.com/package/async-done
96-
[npm-image]: http://img.shields.io/npm/v/async-done.svg
96+
[npm-image]: https://img.shields.io/npm/v/async-done.svg
97+
98+
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=6&branchName=master
99+
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/async-done?branchName=master
97100

98101
[travis-url]: https://travis-ci.org/gulpjs/async-done
99-
[travis-image]: http://img.shields.io/travis/gulpjs/async-done.svg?label=travis-ci
102+
[travis-image]: https://img.shields.io/travis/gulpjs/async-done.svg?label=travis-ci
100103

101104
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/async-done
102105
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/async-done.svg?label=appveyor
103106

104107
[coveralls-url]: https://coveralls.io/r/gulpjs/async-done
105-
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/async-done/master.svg
108+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/async-done/master.svg
106109

107110
[gitter-url]: https://gitter.im/gulpjs/gulp
108111
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg

appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ environment:
77
- nodejs_version: "0.10"
88
- nodejs_version: "0.12"
99
- nodejs_version: "4"
10-
- nodejs_version: "5"
1110
- nodejs_version: "6"
1211
- nodejs_version: "8"
1312
- nodejs_version: "10"
13+
- nodejs_version: "12"
14+
15+
platform:
16+
- x86
17+
- x64
1418

1519
install:
16-
- ps: Install-Product node $env:nodejs_version
20+
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
21+
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
1722
- npm install
1823

1924
test_script:

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "async-done",
33
"version": "1.3.1",
44
"description": "Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and streams, and callbacks to callback style.",
5-
"author": "Gulp Team <[email protected]> (http://gulpjs.com/)",
5+
"author": "Gulp Team <[email protected]> (https://gulpjs.com/)",
66
"contributors": [
77
"Blaine Bublitz <[email protected]>",
88
"Pawel Kozlowski <[email protected]>",
@@ -22,12 +22,12 @@
2222
"LICENSE"
2323
],
2424
"scripts": {
25-
"lint": "eslint . && jscs index.js test/",
25+
"lint": "eslint .",
2626
"pretest": "npm run lint",
27-
"test": "mocha --async-only && npm run test-types",
27+
"test": "nyc mocha --async-only",
2828
"test-types": "tsc -p test/types",
29-
"cover": "istanbul cover _mocha --report lcovonly",
30-
"coveralls": "npm run cover && istanbul-coveralls"
29+
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
30+
"coveralls": "nyc report --reporter=text-lcov | coveralls"
3131
},
3232
"dependencies": {
3333
"end-of-stream": "^1.1.0",
@@ -37,14 +37,12 @@
3737
},
3838
"devDependencies": {
3939
"@types/node": "^9.3.0",
40-
"eslint": "^1.7.3",
41-
"eslint-config-gulp": "^2.0.0",
42-
"expect": "^1.19.0",
43-
"istanbul": "^0.4.3",
44-
"istanbul-coveralls": "^1.0.3",
45-
"jscs": "^2.3.5",
46-
"jscs-preset-gulp": "^1.0.0",
47-
"mocha": "^2.4.5",
40+
"coveralls": "github:phated/node-coveralls#2.x",
41+
"eslint": "^2.13.1",
42+
"eslint-config-gulp": "^3.0.1",
43+
"expect": "^1.20.2",
44+
"mocha": "^3.0.0",
45+
"nyc": "^10.3.2",
4846
"pumpify": "^1.3.6",
4947
"rxjs": "^5.5.6",
5048
"through2": "^2.0.0",

0 commit comments

Comments
 (0)