Skip to content

Commit f4b584d

Browse files
merge
2 parents 9d624ee + cea1362 commit f4b584d

File tree

3,674 files changed

+488755
-107033
lines changed

Some content is hidden

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

3,674 files changed

+488755
-107033
lines changed

.all-contributorsrc

Lines changed: 96 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"projectName": "codesandbox-client",
33
"projectOwner": "codesandbox",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
46
"files": [
57
"README.md"
68
],
79
"imageSize": 100,
8-
"commit": true,
10+
"commit": false,
911
"contributors": [
1012
{
1113
"login": "CompuIves",
@@ -1347,9 +1349,99 @@
13471349
"contributions": [
13481350
"code"
13491351
]
1352+
},
1353+
{
1354+
"login": "Shriram-Balaji",
1355+
"name": "Shriram Balaji",
1356+
"avatar_url": "https://avatars1.githubusercontent.com/u/11358903?v=4",
1357+
"profile": "https://shriram-balaji.github.io",
1358+
"contributions": [
1359+
"code"
1360+
]
1361+
},
1362+
{
1363+
"login": "chinmay17",
1364+
"name": "Chinmay Chaudhary",
1365+
"avatar_url": "https://avatars2.githubusercontent.com/u/7131231?v=4",
1366+
"profile": "https://github.com/chinmay17",
1367+
"contributions": [
1368+
"code"
1369+
]
1370+
},
1371+
{
1372+
"login": "sakthivel",
1373+
"name": "Sakthivel Sengodan Sapient",
1374+
"avatar_url": "https://avatars3.githubusercontent.com/u/205201?v=4",
1375+
"profile": "https://github.com/Sakthivel",
1376+
"contributions": [
1377+
"code"
1378+
]
1379+
},
1380+
{
1381+
"login": "vanya829",
1382+
"name": "vanya829",
1383+
"avatar_url": "https://avatars0.githubusercontent.com/u/1397979?v=4",
1384+
"profile": "https://github.com/vanya829",
1385+
"contributions": [
1386+
"code"
1387+
]
1388+
},
1389+
{
1390+
"login": "hetpatel33",
1391+
"name": "Het Patel",
1392+
"avatar_url": "https://avatars0.githubusercontent.com/u/13877514?v=4",
1393+
"profile": "http://hetpatel33.github.io",
1394+
"contributions": [
1395+
"code"
1396+
]
1397+
},
1398+
{
1399+
"login": "Gobinath-Manokaran",
1400+
"name": "Gobinath-Manokaran",
1401+
"avatar_url": "https://avatars2.githubusercontent.com/u/6711914?v=4",
1402+
"profile": "https://github.com/Gobinath-Manokaran",
1403+
"contributions": [
1404+
"code"
1405+
]
1406+
},
1407+
{
1408+
"login": "armujahid",
1409+
"name": "Abdul Rauf",
1410+
"avatar_url": "https://avatars1.githubusercontent.com/u/3725386?v=4",
1411+
"profile": "https://armujahid.me",
1412+
"contributions": [
1413+
"code",
1414+
"doc"
1415+
]
1416+
},
1417+
{
1418+
"login": "milap1296",
1419+
"name": "milap1296",
1420+
"avatar_url": "https://avatars2.githubusercontent.com/u/19545730?v=4",
1421+
"profile": "https://github.com/milap1296",
1422+
"contributions": [
1423+
"code"
1424+
]
1425+
},
1426+
{
1427+
"login": "yevhenorlov",
1428+
"name": "yevhen orlov",
1429+
"avatar_url": "https://avatars2.githubusercontent.com/u/17388747?v=4",
1430+
"profile": "http://yevhenorlov.com",
1431+
"contributions": [
1432+
"code"
1433+
]
1434+
},
1435+
{
1436+
"login": "NileshPatel17",
1437+
"name": "Nilesh Patel",
1438+
"avatar_url": "https://avatars2.githubusercontent.com/u/27020381?v=4",
1439+
"profile": "https://github.com/NileshPatel17",
1440+
"contributions": [
1441+
"code"
1442+
]
13501443
}
13511444
],
1352-
"repoType": "github",
1353-
"repoHost": "https://github.com",
1354-
"contributorsPerLine": 7
1445+
"contributorsPerLine": 7,
1446+
"commitConvention": "none"
13551447
}

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ jobs:
279279
- build_prod
280280
test-integrations:
281281
executor: node-with-puppeteer
282+
parallelism: 2
282283
steps:
283284
- checkout_with_cache
284285
- test_integrations

.drone.yml

Lines changed: 102 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,46 @@
11
---
22
kind: pipeline
3-
name: default
3+
name: pull_request
44

55
steps:
66
- name: restore node_modules cache
7-
image: codesandbox-cache:1
7+
image: lbogdan/codesandbox-cache-plugin:1
88
settings:
99
restore: true
1010
volumes:
1111
- name: node_modules-cache
1212
path: /cache
13-
when:
14-
event:
15-
- pull_request
1613

1714
- name: install packages
18-
image: node:10.15.3-jessie
15+
image: node:10.16.3-jessie
1916
volumes:
2017
- name: yarn-cache
2118
path: /usr/local/share/.cache/yarn/v4
2219
commands:
2320
- yarn
24-
when:
25-
event:
26-
- pull_request
2721

2822
- name: build
29-
image: node:10.15.3-jessie
23+
image: node:10.16.3-jessie
3024
commands:
3125
- export STAGING_BRANCH=pr$DRONE_PULL_REQUEST
3226
- yarn build
33-
when:
34-
event:
35-
- pull_request
3627

3728
- name: deploy
38-
image: codesandbox-deploy:1
29+
image: lbogdan/codesandbox-deploy-plugin:2
3930
settings:
4031
domain: &domain build.csb.dev
4132
volumes:
4233
- name: docker_sock
4334
path: /var/run/docker.sock
4435
- name: deployments
4536
path: /root/docker/deployments
46-
when:
47-
event:
48-
- pull_request
4937

5038
- name: create github deployment
51-
image: codesandbox-github-deployment:1
39+
image: lbogdan/github-deployment-plugin:1
5240
settings:
5341
domain: *domain
5442
github_token:
5543
from_secret: github_token
56-
when:
57-
event:
58-
- pull_request
5944

6045
- name: slack notification
6146
image: plugins/slack
@@ -70,22 +55,108 @@ steps:
7055
👎 {{repo.owner}}/{{repo.name}} pull request #{{build.pull}} building failed. See what happened <{{build.link}}|here>.
7156
{{/success}}
7257
when:
73-
event:
74-
- pull_request
58+
status:
59+
- success
60+
- failure
61+
62+
- name: github comment
63+
image: lbogdan/github-comment-plugin:1
64+
settings:
65+
domain: *domain
66+
github_token:
67+
from_secret: github_token
68+
template: |
69+
Build for latest commit https://github.com/{{owner}}/{{repo}}/pull/{{pr}}/commits/{{commitSha}} {{#success}}is at https://pr{{pr}}.{{buildDomain}}/s/new{{/success}}{{^success}}failed{{/success}}.
70+
when:
7571
status:
7672
- success
7773
- failure
7874

7975
- name: rebuild node_modules cache
80-
image: codesandbox-cache:1
76+
image: lbogdan/codesandbox-cache-plugin:1
8177
settings:
8278
rebuild: true
8379
volumes:
8480
- name: node_modules-cache
8581
path: /cache
82+
83+
volumes:
84+
- name: yarn-cache
85+
host:
86+
path: /var/lib/docker/volumes/yarn-cache/_data
87+
- name: node_modules-cache
88+
host:
89+
path: /var/lib/docker/volumes/node_modules-cache/_data
90+
- name: docker_sock
91+
host:
92+
path: /var/run/docker.sock
93+
- name: deployments
94+
host:
95+
path: /root/docker/deployments
96+
97+
trigger:
98+
event: pull_request
99+
---
100+
kind: pipeline
101+
name: branch
102+
103+
steps:
104+
- name: restore node_modules cache
105+
image: lbogdan/codesandbox-cache-plugin:1
106+
settings:
107+
restore: true
108+
volumes:
109+
- name: node_modules-cache
110+
path: /cache
111+
112+
- name: install packages
113+
image: node:10.16.3-jessie
114+
volumes:
115+
- name: yarn-cache
116+
path: /usr/local/share/.cache/yarn/v4
117+
commands:
118+
- yarn
119+
120+
- name: build
121+
image: node:10.16.3-jessie
122+
commands:
123+
- export STAGING_BRANCH=$DRONE_BRANCH
124+
- yarn build
125+
126+
- name: deploy
127+
image: lbogdan/codesandbox-deploy-plugin:2
128+
settings:
129+
domain: &domain build.csb.dev
130+
volumes:
131+
- name: docker_sock
132+
path: /var/run/docker.sock
133+
- name: deployments
134+
path: /root/docker/deployments
135+
136+
- name: slack notification
137+
image: plugins/slack
138+
settings:
139+
webhook:
140+
from_secret: slack_webhook
141+
channel: infra
142+
template: >
143+
{{#success build.status}}
144+
👍 {{repo.owner}}/{{repo.name}} branch {{build.branch}} successfully built. Access it at https://{{build.branch}}.build.csb.dev/ and see the build logs <{{build.link}}|here>.
145+
{{else}}
146+
👎 {{repo.owner}}/{{repo.name}} branch {{build.branch}} building failed. See what happened <{{build.link}}|here>.
147+
{{/success}}
86148
when:
87-
event:
88-
- pull_request
149+
status:
150+
- success
151+
- failure
152+
153+
- name: rebuild node_modules cache
154+
image: lbogdan/codesandbox-cache-plugin:1
155+
settings:
156+
rebuild: true
157+
volumes:
158+
- name: node_modules-cache
159+
path: /cache
89160

90161
volumes:
91162
- name: yarn-cache
@@ -100,8 +171,12 @@ volumes:
100171
- name: deployments
101172
host:
102173
path: /root/docker/deployments
174+
175+
trigger:
176+
event: push
177+
branch: master
103178
---
104179
kind: signature
105-
hmac: 4d9c06dbed6f93871c3a0bb5b80b35e353d8a5254d84ba07c0fb14e4f6ea9ecd
180+
hmac: 015a8ddaa2fa145808e3c30ad05da71d03e3b8653b6bddb41547f13611397070
106181

107182
...

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"js": "never"
6262
}
6363
],
64+
"import/default": "error",
6465
"no-param-reassign": ["error", { "props": false }],
6566
"camelcase": 0,
6667
"react-hooks/rules-of-hooks": "error",

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ merge of your pull request!
1818

1919
<!-- if this is a feature change -->
2020

21-
## What steps did you take to test this?
21+
## What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.
2222

23-
<!-- Most important part! -->
23+
1. Step A
24+
2. Step B
25+
3. Step C
2426

2527
## Checklist
2628

@@ -30,8 +32,10 @@ merge of your pull request!
3032

3133
- [ ] Documentation
3234
- [ ] Testing <!-- We can only merge the PR if this is checked -->
33-
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
34-
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->
35+
- [ ] Ready to be merged
36+
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
37+
- [ ] Added myself to contributors table
38+
<!-- this is optional, see the contributing guidelines for instructions -->
3539

3640
<!-- feel free to add additional comments -->
3741
<!-- Thank you for contributing! -->

.yarnclean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ docs
99
doc
1010
website
1111
images
12-
assets
1312

1413
# examples
1514
example

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ To install the project you need to have `yarn` and `node`
6464
- you can use [fnm](https://github.com/Schniz/fnm) (`fnm use`) to change
6565
your current node version to the one specified in `.nvmrc`
6666
3. from the root of the project: `yarn` to install all dependencies
67+
- make sure you have latest `yarn` version
6768
4. from the root of the project: `yarn start`
6869
- this builds the dependencies (`codesandbox-api` and
6970
`codesandbox-browserfs`) and runs the `app` development environment,
@@ -125,9 +126,9 @@ To add yourself to the table of contributors on the `README.md`, please use the
125126
automated script as part of your PR:
126127

127128
```sh
128-
yarn add-contributor
129+
yarn contributors:add
129130
```
130131

131132
Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR.
132133

133-
Thank you for taking the time to contribute! :+1:
134+
Thank you for taking the time to contribute! 👍

0 commit comments

Comments
 (0)