Skip to content

Commit f950251

Browse files
committed
buildkite, prettier-check
1 parent bae9ae2 commit f950251

4 files changed

Lines changed: 25 additions & 5 deletions

File tree

‎buildkite.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
env:
2+
FORCE_COLOR: '1'
3+
4+
steps:
5+
# Run tests
6+
- command: |-
7+
yarn
8+
yarn run prettier-check
9+
yarn run tslint
10+
yarn run typecheck
11+
yarn run build
12+
label: ':go:'
13+
14+
- wait
15+
16+
# Build & deploy extension
17+
- command: ./deploy.sh
18+
branches: master
19+
label: ':rocket:'
20+
concurrency: 1
21+
concurrency_group: deploy

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"main": "dist/sourcegraph-python.js",
3535
"scripts": {
3636
"prettier": "prettier '**/*.{js?(on),ts}' --write --list-different",
37+
"prettier-check": "npm run prettier -- --write=false",
3738
"tslint": "tslint -p tsconfig.json './src/**/*.ts'",
3839
"typecheck": "tsc -p tsconfig.json",
3940
"build": "parcel build --out-file dist/sourcegraph-python.js src/sourcegraph-python.ts",

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"esModuleInterop": true,
1212
"allowSyntheticDefaultImports": true
1313
}
14-
}
14+
}

‎tslint.json‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"@sourcegraph/tslint-config"
4-
]
5-
}
2+
"extends": ["@sourcegraph/tslint-config"]
3+
}

0 commit comments

Comments
 (0)