-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scaffold: Update repository template
- Loading branch information
Showing
9 changed files
with
198 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
steps: | ||
- script: npm i -g npm@$(npm_version) | ||
displayName: Use legacy npm version $(npm_version) | ||
condition: ne(variables['npm_version'], '') | ||
|
||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '$(node_version)' | ||
displayName: Use Node $(node_version) | ||
|
||
- script: npm install | ||
displayName: npm install | ||
|
||
- script: npm test | ||
displayName: Run tests | ||
|
||
- script: npm run coveralls | ||
displayName: Run coveralls | ||
env: | ||
# Pretend to be AppVeyor for now | ||
APPVEYOR: true | ||
APPVEYOR_BUILD_NUMBER: $(Build.BuildNumber) | ||
APPVEYOR_BUILD_ID: $(Agent.OS)_$(node_version) | ||
APPVEYOR_REPO_COMMIT: $(Build.SourceVersion) | ||
APPVEYOR_REPO_BRANCH: $(Build.SourceBranchName) | ||
# Overwrite the AppVeyor Service Name | ||
COVERALLS_SERVICE_NAME: Azure Pipelines | ||
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET) | ||
COVERALLS_PARALLEL: true | ||
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber) | ||
|
||
- script: npm run azure-pipelines | ||
displayName: Write tests to xml | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test.xunit' | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
trigger: | ||
- master | ||
- releases/* | ||
|
||
jobs: | ||
- job: Test_Linux | ||
displayName: Run Tests on Linux | ||
pool: | ||
vmImage: "Ubuntu 16.04" | ||
strategy: | ||
matrix: | ||
Node_v12: | ||
node_version: 12 | ||
Node_v10: | ||
node_version: 10 | ||
Node_v8: | ||
node_version: 8 | ||
Node_v6: | ||
node_version: 6 | ||
Node_v4: | ||
node_version: 4 | ||
Node_v0_12: | ||
node_version: 0.12 | ||
Node_v0_10: | ||
node_version: 0.10 | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: Test_Windows | ||
displayName: Run Tests on Windows | ||
pool: | ||
vmImage: vs2017-win2016 | ||
strategy: | ||
matrix: | ||
Node_v12: | ||
node_version: 12 | ||
Node_v10: | ||
node_version: 10 | ||
Node_v8: | ||
node_version: 8 | ||
Node_v6: | ||
node_version: 6 | ||
Node_v4: | ||
node_version: 4 | ||
npm_version: 2 | ||
Node_v0_12: | ||
node_version: 0.12 | ||
npm_version: 2 | ||
Node_v0_10: | ||
node_version: 0.10 | ||
npm_version: 2 | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: Test_MacOS | ||
displayName: Run Tests on MacOS | ||
pool: | ||
vmImage: macos-10.13 | ||
strategy: | ||
matrix: | ||
Node_v12: | ||
node_version: 12 | ||
Node_v10: | ||
node_version: 10 | ||
Node_v8: | ||
node_version: 8 | ||
Node_v6: | ||
node_version: 6 | ||
Node_v4: | ||
node_version: 4 | ||
Node_v0_12: | ||
node_version: 0.12 | ||
Node_v0_10: | ||
node_version: 0.10 | ||
steps: | ||
- template: .azure-pipelines-steps.yml | ||
|
||
- job: Notify_Coveralls | ||
displayName: Notify Coveralls that the parallel report is done | ||
pool: | ||
vmImage: "Ubuntu 16.04" | ||
dependsOn: | ||
- Test_Linux | ||
- Test_Windows | ||
- Test_MacOS | ||
steps: | ||
- script: curl -k https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$BUILD_NAME&payload[status]=done" | ||
env: | ||
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET) | ||
BUILD_NAME: $(Build.BuildNumber) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,67 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# Garbage files | ||
.DS_Store | ||
|
||
# Test results | ||
test.xunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '12' | ||
- '10' | ||
- '8' | ||
- '6' | ||
- '5' | ||
- '4' | ||
- '0.12' | ||
- '0.10' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "async-done", | ||
"version": "1.3.1", | ||
"description": "Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and streams, and callbacks to callback style.", | ||
"author": "Gulp Team <[email protected]> (http://gulpjs.com/)", | ||
"author": "Gulp Team <[email protected]> (https://gulpjs.com/)", | ||
"contributors": [ | ||
"Blaine Bublitz <[email protected]>", | ||
"Pawel Kozlowski <[email protected]>", | ||
|
@@ -22,12 +22,12 @@ | |
"LICENSE" | ||
], | ||
"scripts": { | ||
"lint": "eslint . && jscs index.js test/", | ||
"lint": "eslint .", | ||
"pretest": "npm run lint", | ||
"test": "mocha --async-only && npm run test-types", | ||
"test": "nyc mocha --async-only", | ||
"test-types": "tsc -p test/types", | ||
"cover": "istanbul cover _mocha --report lcovonly", | ||
"coveralls": "npm run cover && istanbul-coveralls" | ||
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"dependencies": { | ||
"end-of-stream": "^1.1.0", | ||
|
@@ -37,14 +37,12 @@ | |
}, | ||
"devDependencies": { | ||
"@types/node": "^9.3.0", | ||
"eslint": "^1.7.3", | ||
"eslint-config-gulp": "^2.0.0", | ||
"expect": "^1.19.0", | ||
"istanbul": "^0.4.3", | ||
"istanbul-coveralls": "^1.0.3", | ||
"jscs": "^2.3.5", | ||
"jscs-preset-gulp": "^1.0.0", | ||
"mocha": "^2.4.5", | ||
"coveralls": "github:phated/node-coveralls#2.x", | ||
"eslint": "^2.13.1", | ||
"eslint-config-gulp": "^3.0.1", | ||
"expect": "^1.20.2", | ||
"mocha": "^3.0.0", | ||
"nyc": "^10.3.2", | ||
"pumpify": "^1.3.6", | ||
"rxjs": "^5.5.6", | ||
"through2": "^2.0.0", | ||
|