Skip to content

Commit b29346e

Browse files
committed
Implement new structure
1 parent ef8da38 commit b29346e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+12645
-5154
lines changed

.drone.yml

+38-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ platform:
66
arch: amd64
77

88
steps:
9+
- name: submodules
10+
image: alpine/git
11+
commands:
12+
- git submodule update --init
13+
914
- name: cache:restore
1015
image: node:12
1116
commands:
@@ -69,7 +74,7 @@ steps:
6974
- name: publish:gcs
7075
image: plugins/gcs
7176
settings:
72-
source: gcs_bucket
77+
source: binary-upload
7378
target: codesrv-ci.cdr.sh/
7479
token:
7580
from_secret: gcs-token
@@ -85,6 +90,11 @@ platform:
8590
arch: amd64
8691

8792
steps:
93+
- name: submodules
94+
image: alpine/git
95+
commands:
96+
- git submodule update --init
97+
8898
- name: cache:restore
8999
image: node:12-alpine
90100
commands:
@@ -133,7 +143,7 @@ steps:
133143
- name: publish:gcs
134144
image: plugins/gcs
135145
settings:
136-
source: gcs_bucket
146+
source: binary-upload
137147
target: codesrv-ci.cdr.sh/
138148
token:
139149
from_secret: gcs-token
@@ -149,6 +159,12 @@ platform:
149159
arch: arm64
150160

151161
steps:
162+
- name: submodules
163+
image: alpine
164+
commands:
165+
- apk add git
166+
- git submodule update --init
167+
152168
- name: cache:restore
153169
image: node:12
154170
commands:
@@ -211,7 +227,7 @@ steps:
211227
- name: publish:gcs
212228
image: plugins/gcs
213229
settings:
214-
source: gcs_bucket
230+
source: binary-upload
215231
target: codesrv-ci.cdr.sh/
216232
token:
217233
from_secret: gcs-token
@@ -227,6 +243,12 @@ platform:
227243
arch: arm64
228244

229245
steps:
246+
- name: submodules
247+
image: alpine
248+
commands:
249+
- apk add git
250+
- git submodule update --init
251+
230252
- name: cache:restore
231253
image: node:12-alpine
232254
commands:
@@ -275,7 +297,7 @@ steps:
275297
- name: publish:gcs
276298
image: plugins/gcs
277299
settings:
278-
source: gcs_bucket
300+
source: binary-upload
279301
target: codesrv-ci.cdr.sh/
280302
token:
281303
from_secret: gcs-token
@@ -291,6 +313,12 @@ platform:
291313
arch: arm
292314

293315
steps:
316+
- name: submodules
317+
image: alpine
318+
commands:
319+
- apk add git
320+
- git submodule update --init
321+
294322
- name: cache:restore
295323
image: node:12
296324
commands:
@@ -360,6 +388,12 @@ platform:
360388
arch: arm
361389

362390
steps:
391+
- name: submodules
392+
image: alpine
393+
commands:
394+
- apk add git
395+
- git submodule update --init
396+
363397
- name: cache:restore
364398
image: node:12-alpine
365399
commands:

.editorconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
trim_trailing_whitespace = true
6+
indent_size = 2

.eslintrc.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
parser: "@typescript-eslint/parser"
2+
env:
3+
browser: true
4+
es6: true # Map, etc.
5+
mocha: true
6+
node: true
7+
8+
parserOptions:
9+
ecmaVersion: 2018
10+
sourceType: module
11+
ecmaFeatures:
12+
jsx: true
13+
14+
extends:
15+
- eslint:recommended
16+
- plugin:@typescript-eslint/recommended
17+
- plugin:import/recommended
18+
- plugin:import/typescript
19+
- plugin:react/recommended
20+
- plugin:prettier/recommended
21+
- prettier # Removes eslint rules that conflict with prettier.
22+
- prettier/@typescript-eslint # Remove conflicts again.
23+
24+
plugins:
25+
- react-hooks
26+
27+
# Need to set this explicitly for the eslint-plugin-react.
28+
settings:
29+
react:
30+
version: detect
31+
32+
rules:
33+
# For overloads.
34+
no-dupe-class-members: off
35+
36+
# https://www.npmjs.com/package/eslint-plugin-react-hooks
37+
react-hooks/rules-of-hooks: error
38+
39+
react/prop-types: off # We use Typescript to verify prop types.

.gitignore

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
*.tsbuildinfo
2+
.cache
3+
binaries
4+
binary-upload
5+
build
6+
cache-upload
7+
dist
8+
dist-build
19
node_modules
2-
/build
3-
/release
4-
/binaries
5-
/lib
10+
out
11+
out-build
12+
release
13+
source
14+
yarn-cache

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/vscode"]
2+
path = lib/vscode
3+
url = https://github.com/microsoft/vscode

.prettierrc.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
printWidth: 120
2+
semi: false
3+
tabWidth: 2
4+
singleQuote: false
5+
trailingComma: es5
6+
useTabs: false
7+
arrowParens: always

.stylelintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extends:
2+
- stylelint-config-standard

Dockerfile

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,40 @@ ARG githubToken
44

55
# Install VS Code's deps. These are the only two it seems we need.
66
RUN apt-get update && apt-get install -y \
7-
libxkbfile-dev \
8-
libsecret-1-dev
7+
libxkbfile-dev \
8+
libsecret-1-dev
99

1010
WORKDIR /src
1111
COPY . .
1212

1313
RUN yarn \
14-
&& DRONE_TAG="$tag" MINIFY=true BINARY=true GITHUB_TOKEN="$githubToken" ./scripts/ci.bash \
15-
&& rm -r /src/build \
16-
&& rm -r /src/source
14+
&& DRONE_TAG="$tag" MINIFY=true STRIP_BIN_TARGET=true GITHUB_TOKEN="$githubToken" ./scripts/ci.bash \
15+
&& rm -r /src/build \
16+
&& rm -r /src/source
1717

1818
# We deploy with Ubuntu so that devs have a familiar environment.
1919
FROM ubuntu:18.04
2020

2121
RUN apt-get update && apt-get install -y \
22-
openssl \
23-
net-tools \
24-
git \
25-
locales \
26-
sudo \
27-
dumb-init \
28-
vim \
29-
curl \
30-
wget \
31-
&& rm -rf /var/lib/apt/lists/*
22+
openssl \
23+
net-tools \
24+
git \
25+
locales \
26+
sudo \
27+
dumb-init \
28+
vim \
29+
curl \
30+
wget \
31+
&& rm -rf /var/lib/apt/lists/*
3232

3333
RUN locale-gen en_US.UTF-8
3434
# We cannot use update-locale because docker will not use the env variables
3535
# configured in /etc/default/locale so we need to set it manually.
3636
ENV LC_ALL=en_US.UTF-8 \
37-
SHELL=/bin/bash
37+
SHELL=/bin/bash
3838

3939
RUN adduser --gecos '' --disabled-password coder && \
40-
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
40+
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
4141

4242
USER coder
4343
# Create first so these directories will be owned by coder instead of root

0 commit comments

Comments
 (0)