Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit 7e4cc2f

Browse files
committed
feat: add netlify support
1 parent 3ef7816 commit 7e4cc2f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/webpack-plugin/src/services/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as drone from './drone'
88
import * as gitlab from './gitlab'
99
import * as heroku from './heroku'
1010
import * as jenkins from './jenkins'
11+
import * as netlify from './netlify'
1112
import * as semaphore from './semaphore'
1213
import * as shippable from './shippable'
1314
import * as snap from './snap'
@@ -16,15 +17,16 @@ import * as travis from './travis'
1617
import * as wercker from './wercker'
1718

1819
export default [
20+
netlify,
21+
circle,
22+
heroku,
1923
appveyor,
2024
azurePipelines,
2125
buildkite,
22-
circle,
2326
cirrus,
2427
codeship,
2528
drone,
2629
gitlab,
27-
heroku,
2830
jenkins,
2931
semaphore,
3032
shippable,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export function detect() {
2+
return !!process.env.NETLIFY
3+
}
4+
5+
export function config() {
6+
return {
7+
name: 'Netlify',
8+
service: 'netlify',
9+
commit: process.env.COMMIT_REF,
10+
branch: process.env.BRANCH,
11+
build_url: process.env.DEPLOY_URL,
12+
root: process.env.WORKSPACE,
13+
pr: process.env.REVIEW_ID,
14+
}
15+
}

0 commit comments

Comments
 (0)