Skip to content

Commit a55455a

Browse files
sttkphated
authored andcommitted
Scaffold: Normalize repository
1 parent 9047016 commit a55455a

File tree

12 files changed

+219
-28
lines changed

12 files changed

+219
-28
lines changed

.ci/.azure-pipelines-steps.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 uninstall --no-save nyc && npm install --no-save nyc@latest
15+
displayName: Use latest nyc on Node.js>=12, Windows
16+
condition: and(eq('Windows_NT', variables['Agent.OS']), le(12, variables['node_version']))
17+
18+
- script: npm test
19+
displayName: Run tests
20+
21+
- script: npm run coveralls
22+
displayName: Run coveralls
23+
condition: eq(variables['Build.Repository.Name'], 'gulpjs/replace-ext')
24+
env:
25+
# Pretend to be AppVeyor for now
26+
APPVEYOR: true
27+
APPVEYOR_BUILD_NUMBER: $(Build.BuildNumber)
28+
APPVEYOR_BUILD_ID: $(Agent.OS)_$(node_version)
29+
APPVEYOR_REPO_COMMIT: $(Build.SourceVersion)
30+
APPVEYOR_REPO_BRANCH: $(Build.SourceBranchName)
31+
# Overwrite the AppVeyor Service Name
32+
COVERALLS_SERVICE_NAME: Azure Pipelines
33+
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN_SECRET)
34+
COVERALLS_PARALLEL: true
35+
CI_PULL_REQUEST: $(System.PullRequest.PullRequestNumber)
36+
37+
- script: npm run azure-pipelines
38+
displayName: Write tests to xml
39+
40+
- task: PublishTestResults@2
41+
inputs:
42+
testResultsFiles: '**/test.xunit'
43+
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)

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage/

.gitignore

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +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

19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2033
build/Release
2134

22-
# Dependency directory
23-
# Commenting this out is preferred by some people, see
24-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25-
node_modules
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
2638

27-
# Users Environment Variables
28-
.lock-wscript
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
50+
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
2962

3063
# Garbage files
3164
.DS_Store
3265

33-
# Generated by integration tests
34-
test/fixtures/tmp
35-
test/fixtures/out
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
sudo: false
22
language: node_js
33
node_js:
4+
- '12'
5+
- '10'
6+
- '8'
47
- '6'
5-
- '5'
68
- '4'
79
- '0.12'
810
- '0.10'
911
after_script:
1012
- npm run coveralls
13+
os:
14+
- linux
15+
- osx

LICENSE

100755100644
File mode changed.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# replace-ext
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
Replaces a file extension with another one.
1212

@@ -45,6 +45,9 @@ MIT
4545
[npm-url]: https://www.npmjs.com/package/replace-ext
4646
[npm-image]: http://img.shields.io/npm/v/replace-ext.svg
4747

48+
[azure-pipelines-url]: https://dev.azure.com/gulpjs/replace-ext/_build/latest?branchName=master
49+
[azure-pipelines-image]: https://dev.azure.com/gulpjs/replace-ext/_apis/build/status/replace-ext?branchName=master
50+
4851
[travis-url]: https://travis-ci.org/gulpjs/replace-ext
4952
[travis-image]: http://img.shields.io/travis/gulpjs/replace-ext.svg?label=travis-ci
5053

appveyor.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ environment:
77
- nodejs_version: "0.10"
88
- nodejs_version: "0.12"
99
- nodejs_version: "4"
10-
- nodejs_version: "5"
1110
- nodejs_version: "6"
11+
- nodejs_version: "8"
12+
- nodejs_version: "10"
13+
- nodejs_version: "12"
14+
15+
platform:
16+
- x86
17+
- x64
1218

1319
install:
1420
- ps: Install-Product node $env:nodejs_version

0 commit comments

Comments
 (0)