Skip to content

Commit 435bc57

Browse files
committed
Merge branch 'master' of github.com:codesandbox/codesandbox-client into notifications-a11y
2 parents 429436f + 7a4c271 commit 435bc57

File tree

1,395 files changed

+75117
-46174
lines changed

Some content is hidden

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

1,395 files changed

+75117
-46174
lines changed

.all-contributorsrc

Lines changed: 119 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,15 @@
13591359
"code"
13601360
]
13611361
},
1362+
{
1363+
"login": "HTMLGhozt",
1364+
"name": "Thomas Dillard",
1365+
"avatar_url": "https://avatars1.githubusercontent.com/u/12449668?v=4",
1366+
"profile": "http://ThomasDillard.com",
1367+
"contributions": [
1368+
"code"
1369+
]
1370+
},
13621371
{
13631372
"login": "chinmay17",
13641373
"name": "Chinmay Chaudhary",
@@ -1376,8 +1385,117 @@
13761385
"contributions": [
13771386
"code"
13781387
]
1388+
},
1389+
{ "login": "NabeelahY",
1390+
"name": "Nabeelah",
1391+
"avatar_url": "https://avatars1.githubusercontent.com/u/35764602?v=4",
1392+
"profile": "https://github.com/NabeelahY",
1393+
"contributions": [
1394+
"code"
1395+
]
1396+
},
1397+
{
1398+
"login": "vanya829",
1399+
"name": "vanya829",
1400+
"avatar_url": "https://avatars0.githubusercontent.com/u/1397979?v=4",
1401+
"profile": "https://github.com/vanya829",
1402+
"contributions": [
1403+
"code"
1404+
]
1405+
},
1406+
{
1407+
"login": "tanem",
1408+
"name": "Tane Morgan",
1409+
"avatar_url": "https://avatars3.githubusercontent.com/u/464864?v=4",
1410+
"profile": "https://github.com/tanem",
1411+
"contributions": [
1412+
"code"
1413+
]
1414+
},
1415+
{
1416+
"login": "hetpatel33",
1417+
"name": "Het Patel",
1418+
"avatar_url": "https://avatars0.githubusercontent.com/u/13877514?v=4",
1419+
"profile": "http://hetpatel33.github.io",
1420+
"contributions": [
1421+
"code"
1422+
]
1423+
},
1424+
{
1425+
"login": "ivandevp",
1426+
"name": "Ivan Medina",
1427+
"avatar_url": "https://avatars3.githubusercontent.com/u/9284690?v=4",
1428+
"profile": "https://twitter.com/ivandevp",
1429+
"contributions": [
1430+
"code"
1431+
]
1432+
},
1433+
{
1434+
"login": "Gobinath-Manokaran",
1435+
"name": "Gobinath-Manokaran",
1436+
"avatar_url": "https://avatars2.githubusercontent.com/u/6711914?v=4",
1437+
"profile": "https://github.com/Gobinath-Manokaran",
1438+
"contributions": [
1439+
"code"
1440+
]
1441+
},
1442+
{
1443+
"login": "armujahid",
1444+
"name": "Abdul Rauf",
1445+
"avatar_url": "https://avatars1.githubusercontent.com/u/3725386?v=4",
1446+
"profile": "https://armujahid.me",
1447+
"contributions": [
1448+
"code",
1449+
"doc"
1450+
]
1451+
},
1452+
{
1453+
"login": "milap1296",
1454+
"name": "milap1296",
1455+
"avatar_url": "https://avatars2.githubusercontent.com/u/19545730?v=4",
1456+
"profile": "https://github.com/milap1296",
1457+
"contributions": [
1458+
"code"
1459+
]
1460+
},
1461+
{
1462+
"login": "yevhenorlov",
1463+
"name": "yevhen orlov",
1464+
"avatar_url": "https://avatars2.githubusercontent.com/u/17388747?v=4",
1465+
"profile": "http://yevhenorlov.com",
1466+
"contributions": [
1467+
"code"
1468+
]
1469+
},
1470+
{
1471+
"login": "NileshPatel17",
1472+
"name": "Nilesh Patel",
1473+
"avatar_url": "https://avatars2.githubusercontent.com/u/27020381?v=4",
1474+
"profile": "https://github.com/NileshPatel17",
1475+
"contributions": [
1476+
"code"
1477+
]
1478+
},
1479+
{
1480+
"login": "22PoojaGaur",
1481+
"name": "Pooja Gaur",
1482+
"avatar_url": "https://avatars2.githubusercontent.com/u/43316760?v=4",
1483+
"profile": "https://github.com/22PoojaGaur",
1484+
"contributions": [
1485+
"code"
1486+
]
1487+
},
1488+
{
1489+
"login": "sajadhsm",
1490+
"name": "Sajad Hashemian",
1491+
"avatar_url": "https://avatars3.githubusercontent.com/u/20022818?v=4",
1492+
"profile": "https://github.com/sajadhsm",
1493+
"contributions": [
1494+
"code"
1495+
]
13791496
}
13801497
],
13811498
"contributorsPerLine": 7,
1382-
"commitConvention": "none"
1499+
"commitConvention": "none",
1500+
"skipCi": true
13831501
}

.circleci/config.yml

Lines changed: 72 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ aliases:
2525

2626
- &restore_deps_cache
2727
keys:
28-
- v28-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
29-
- v28-dependency-cache-{{ .Branch }}
30-
- v28-dependency-cache
28+
- v30-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
29+
- v30-dependency-cache-{{ .Branch }}
30+
- v30-dependency-cache
3131

3232
- &save_deps_cache
33-
key: v28-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
33+
key: v30-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
3434
paths:
3535
- node_modules
3636
- packages/app/node_modules
@@ -49,51 +49,51 @@ aliases:
4949

5050
- &restore_standalone_deps_cache
5151
keys:
52-
- v28-standalone-dependency-cache-{{ .Branch }}-{{ checksum
52+
- v30-standalone-dependency-cache-{{ .Branch }}-{{ checksum
5353
"standalone-packages/codesandbox-browserfs/yarn.lock" }}
54-
- v28-standalone-dependency-cache-{{ .Branch }}
55-
- v28-standalone-dependency-cache
54+
- v30-standalone-dependency-cache-{{ .Branch }}
55+
- v30-standalone-dependency-cache
5656

5757
- &save_standalone_deps_cache
5858
key:
59-
v28-standalone-dependency-cache-{{ .Branch }}-{{ checksum
59+
v30-standalone-dependency-cache-{{ .Branch }}-{{ checksum
6060
"standalone-packages/codesandbox-browserfs/yarn.lock" }}
6161
paths:
6262
- standalone-packages/codesandbox-browserfs/node_modules
6363

6464
- &restore_prod_homepage_cache
65-
key: v28-prod-homepage-build-cache-master
65+
key: v30-prod-homepage-build-cache-master
6666

6767
- &restore_prod_result
6868
key:
69-
v28-prod-build-result-{{ .Environment.CIRCLE_BRANCH
69+
v30-prod-build-result-{{ .Environment.CIRCLE_BRANCH
7070
}}-{{.Environment.CIRCLE_SHA1 }}
7171

7272
- &save_prod_build_cache
7373
key:
74-
v28-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
74+
v30-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
7575
}}-{{.Environment.CIRCLE_SHA1 }}
7676
paths:
7777
- packages/app/node_modules/.cache
7878

7979
- &restore_prod_build_cache
8080
keys:
81-
- v28-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
81+
- v30-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
8282
}}-{{.Environment.CIRCLE_SHA1 }}
83-
- v28-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-
84-
- v28-prod-build-cache-master-
83+
- v30-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-
84+
- v30-prod-build-cache-master-
8585

8686
# To persist the images built by sharp
8787
- &save_prod_homepage_cache
8888
key:
89-
v28-prod-homepage-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{
89+
v30-prod-homepage-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{
9090
.Environment.CIRCLE_SHA1 }}
9191
paths:
9292
- ./packages/homepage/public
9393

9494
- &save_prod_result
9595
key:
96-
v28-prod-build-result-{{ .Environment.CIRCLE_BRANCH }}-{{
96+
v30-prod-build-result-{{ .Environment.CIRCLE_BRANCH }}-{{
9797
.Environment.CIRCLE_SHA1 }}
9898
paths:
9999
- ./www
@@ -134,14 +134,14 @@ commands:
134134
steps:
135135
- restore_cache:
136136
keys:
137-
- v28-source-cache-{{ .Branch }}-{{ .Revision }}
138-
- v28-source-cache-{{ .Branch }}-
139-
- v28-source-cache-
137+
- v30-source-cache-{{ .Branch }}-{{ .Revision }}
138+
- v30-source-cache-{{ .Branch }}-
139+
- v30-source-cache-
140140

141141
- checkout
142142

143143
- save_cache:
144-
key: v28-source-cache-{{ .Branch }}-{{ .Revision }}
144+
key: v30-source-cache-{{ .Branch }}-{{ .Revision }}
145145
paths:
146146
- '.git'
147147
build_deps:
@@ -168,12 +168,6 @@ commands:
168168
- run:
169169
name: Build Application
170170
command: yarn build:prod
171-
- run:
172-
name: Mark Sentry release
173-
command: |
174-
if [ "${CIRCLE_BRANCH}" == "master" ]; then
175-
node packages/app/scripts/sentry-create-release.js
176-
fi
177171
- save_cache: *save_prod_build_cache
178172
- save_cache: *save_prod_result
179173
- run:
@@ -251,6 +245,9 @@ commands:
251245
command:
252246
'[ -n "<< parameters.user >>" ] && echo << parameters.password >> |
253247
docker login -u << parameters.user >> --password-stdin || true'
248+
- run:
249+
name: Create DockerIgnore
250+
command: echo '**\n!www' > .dockerignore
254251
- run:
255252
name: Create Image
256253
command:
@@ -279,6 +276,7 @@ jobs:
279276
- build_prod
280277
test-integrations:
281278
executor: node-with-puppeteer
279+
parallelism: 2
282280
steps:
283281
- checkout_with_cache
284282
- test_integrations
@@ -301,6 +299,34 @@ jobs:
301299
executor: docker_machine
302300
steps:
303301
- docker_cache
302+
deploy-to-production:
303+
executor: node
304+
environment:
305+
ENVIRONMENT: production
306+
steps:
307+
- checkout_with_cache
308+
- restore_cache: *restore_deps_cache
309+
- attach_workspace: *attach_deps_workspace
310+
- run:
311+
name: Mark Sentry release
312+
command: node packages/app/scripts/sentry-create-release.js
313+
- run:
314+
name: Deploy Image
315+
command: node packages/app/scripts/deploy.js
316+
- run:
317+
name: Deploy Sentry release
318+
command: node packages/app/scripts/sentry-deploy-release.js
319+
deploy-to-staging:
320+
executor: node
321+
environment:
322+
ENVIRONMENT: staging
323+
steps:
324+
- checkout_with_cache
325+
- restore_cache: *restore_deps_cache
326+
- attach_workspace: *attach_deps_workspace
327+
- run:
328+
name: Deploy Image
329+
command: node packages/app/scripts/deploy.js
304330

305331
################################
306332
# Workflows
@@ -333,3 +359,23 @@ workflows:
333359
- typecheck
334360
# - test-integrations
335361
- test-jest
362+
- deploy-production-approval:
363+
type: approval
364+
filters:
365+
branches:
366+
only:
367+
- master
368+
- deploy-to-production:
369+
requires:
370+
- deploy-production-approval
371+
- create-docker-image
372+
filters:
373+
branches:
374+
only:
375+
- master
376+
- deploy-staging-approval:
377+
type: approval
378+
- deploy-to-staging:
379+
requires:
380+
- deploy-staging-approval
381+
- create-docker-image

.dockerignore

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
*
2-
!www
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
# we use yarn
6+
package-lock.json
7+
8+
/integration-tests/**/__diff_output__
9+
10+
# testing
11+
coverage
12+
13+
# production
14+
build
15+
www
16+
.deliver
17+
18+
# misc
19+
.DS_Store
20+
npm-debug.log
21+
yarn-error.log
22+
.idea
23+
jest
24+
25+
lerna-debug.log
26+
27+
standalone-packages/monaco-editor-core
28+
29+
.next
30+
.cache-loader

0 commit comments

Comments
 (0)