Skip to content

Commit b8ab5e0

Browse files
committed
Merge branch 'master' into prototype-common-sync
2 parents fe5ec7c + 070c774 commit b8ab5e0

File tree

453 files changed

+18872
-12932
lines changed

Some content is hidden

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

453 files changed

+18872
-12932
lines changed

.circleci/config.yml

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

2626
- &restore_deps_cache
2727
keys:
28-
- v29-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
29-
- v29-dependency-cache-{{ .Branch }}
30-
- v29-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: v29-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-
- v29-standalone-dependency-cache-{{ .Branch }}-{{ checksum
52+
- v30-standalone-dependency-cache-{{ .Branch }}-{{ checksum
5353
"standalone-packages/codesandbox-browserfs/yarn.lock" }}
54-
- v29-standalone-dependency-cache-{{ .Branch }}
55-
- v29-standalone-dependency-cache
54+
- v30-standalone-dependency-cache-{{ .Branch }}
55+
- v30-standalone-dependency-cache
5656

5757
- &save_standalone_deps_cache
5858
key:
59-
v29-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: v29-prod-homepage-build-cache-master
65+
key: v30-prod-homepage-build-cache-master
6666

6767
- &restore_prod_result
6868
key:
69-
v29-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-
v29-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-
- v29-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
81+
- v30-prod-build-cache-{{ .Environment.CIRCLE_BRANCH
8282
}}-{{.Environment.CIRCLE_SHA1 }}
83-
- v29-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-
84-
- v29-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-
v29-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-
v29-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-
- v29-source-cache-{{ .Branch }}-{{ .Revision }}
138-
- v29-source-cache-{{ .Branch }}-
139-
- v29-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: v29-source-cache-{{ .Branch }}-{{ .Revision }}
144+
key: v30-source-cache-{{ .Branch }}-{{ .Revision }}
145145
paths:
146146
- '.git'
147147
build_deps:
@@ -245,6 +245,9 @@ commands:
245245
command:
246246
'[ -n "<< parameters.user >>" ] && echo << parameters.password >> |
247247
docker login -u << parameters.user >> --password-stdin || true'
248+
- run:
249+
name: Create DockerIgnore
250+
command: echo '**\n!www' > .dockerignore
248251
- run:
249252
name: Create Image
250253
command:

.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

.graphqlconfig.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
projects:
2+
app:
3+
schemaPath: packages/app/src/app/graphql/schema.graphql
4+
extensions:
5+
endpoints:
6+
default: 'https://codesandbox.io/api/graphql'
7+
staging: 'https://codesandbox.stream/api/graphql'
8+
dev: 'http://localhost:4000/api/graphql'

.yarnclean

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ wercker.yml
4545

4646
@types/react-native
4747
packages/app/node_modules/styled-components
48+
49+
# Prevent duplicate graphql. This doesn't seem to break anything
50+
@divyenduz/ts-graphql-plugin/node_modules/**
51+
graphql-config/node_modules/**
52+
53+
# Issue with jest conflicting with jest-styled-components
54+
jest-styled-components/typings/**

docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:10
22
LABEL maintainer "Ives van Hoorne"
33

4-
RUN mkdir /usr/src/app
4+
RUN mkdir /workspace
5+
COPY * /workspace/
56

6-
WORKDIR /usr/src/app
7+
WORKDIR /workspace

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"now-build": "yarn build:deps && lerna run build:storybook --scope @codesandbox/common",
4545
"start": "yarn build:deps && lerna run start --scope @codesandbox/common --scope app --parallel",
4646
"start:common": "lerna run start --scope @codesandbox/common --stream",
47-
"start:dev_api": "lerna run start:dev_api --scope app --stream",
47+
"start:dev_api": "concurrently --raw \"cd packages/app && yarn start:dev_api\" \"cd packages/common && yarn start\"",
4848
"start:dynamic": "lerna run dev --scope dynamic-pages --stream",
4949
"start:fast": "concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\"",
5050
"start:home": "yarn build:deps && yarn start:home:fast",

packages/app/config/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ const { SANDBOX_ONLY } = process.env;
33
const staticAssets = [
44
!SANDBOX_ONLY && {
55
from: 'standalone-packages/vscode-editor/release/min/vs',
6-
to: 'public/vscode25/vs',
6+
to: 'public/vscode26/vs',
77
},
88
!SANDBOX_ONLY && {
99
from: 'standalone-packages/vscode-extensions/out',
10-
to: 'public/vscode-extensions/v11',
10+
to: 'public/vscode-extensions/v12',
1111
},
1212
!SANDBOX_ONLY && {
1313
from: 'node_modules/onigasm/lib/onigasm.wasm',

packages/app/config/webpack.common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ module.exports = {
162162

163163
module: {
164164
rules: [
165+
{
166+
test: /\.(graphql|gql)$/,
167+
exclude: /node_modules/,
168+
loader: `graphql-tag/loader`,
169+
},
165170
{
166171
test: /\.wasm$/,
167172
loader: 'file-loader',

packages/app/config/webpack.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ module.exports = merge(commonConfig, {
180180
},
181181
},
182182
{
183-
urlPattern: /\/vscode25/,
183+
urlPattern: /\/vscode26/,
184184
handler: 'cacheFirst',
185185
options: {
186186
cache: {

packages/app/package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"build": "cross-env NODE_ENV=production NODE_OPTIONS=\"--max-old-space-size=4096\" node scripts/build.js",
1313
"build:stats": "cross-env NODE_ENV=production NODE_OPTIONS=\"--max-old-space-size=4096\" webpack --env production --config config/webpack.prod.js --json --profile --progress > stats.json && node scripts/stats",
1414
"build:clean": "rimraf www",
15+
"graphql:replace-schema": "sed -i'' 's/RootQueryType/RootQuery/g' ./src/app/graphql/schema.graphql && sed -i'' 's/RootMutationType/RootMutation/g' ./src/app/graphql/schema.graphql",
16+
"generate:graphql": "graphql get-schema --project app && yarn graphql:replace-schema && graphql-codegen --config ./scripts/codegen.js",
17+
"generate:graphql:staging": "graphql get-schema -e staging --project app && yarn graphql:replace-schema && graphql-codegen --config ./scripts/codegen.js --staging",
1518
"build:embed": "cross-env NODE_ENV=production webpack --config config/webpack.embed.js",
1619
"build:sandbox": "cross-env NODE_ENV=production SANDBOX_ONLY=true node scripts/build.js && yarn copy-assets",
1720
"build:sandpack-sandbox": "cross-env NODE_ENV=production SANDPACK=true SANDBOX_ONLY=true node scripts/build.js && cross-env SANDBOX_ONLY=true yarn copy-assets",
@@ -67,11 +70,11 @@
6770
]
6871
},
6972
"dependencies": {
70-
"@apollo/react-hooks": "^0.1.0-beta.2",
73+
"@apollo/react-hooks": "^3.0.1",
7174
"@babel/plugin-transform-destructuring": "^7.5.0",
7275
"@babel/preset-env": "^7.5.5",
7376
"@codesandbox/executors": "^0.1.0",
74-
"@codesandbox/template-icons": "^1.0.1",
77+
"@codesandbox/template-icons": "^1.0.2",
7578
"@emmetio/codemirror-plugin": "^0.3.5",
7679
"@sentry/webpack-plugin": "^1.8.0",
7780
"@styled-system/css": "^5.0.23",
@@ -117,7 +120,7 @@
117120
"fuse.js": "^3.2.1",
118121
"geniejs": "^0.5.1",
119122
"glamor": "^2.20.25",
120-
"graphql": "^14.1.1",
123+
"graphql": "^14.5.8",
121124
"graphql-tag": "^2.10.1",
122125
"gsap": "^1.20.3",
123126
"gulp": "^3.9.1",
@@ -143,7 +146,6 @@
143146
"lodash-es": "^4.17.2",
144147
"lru-cache": "^4.1.3",
145148
"match-sorter": "^1.8.1",
146-
"memoize-one": "^4.0.0",
147149
"minimatch": "^3.0.4",
148150
"mobx": "^5.11.0",
149151
"mobx-react": "^6.1.1",
@@ -173,6 +175,7 @@
173175
"react-addons-css-transition-group": "^15.6.0",
174176
"react-apollo": "^2.5.6",
175177
"react-color": "^2.17.3",
178+
"react-content-loader": "^4.2.2",
176179
"react-day-picker": "^7.2.4",
177180
"react-devtools-inline": "^4.0.0",
178181
"react-dnd": "^7.0.2",
@@ -183,7 +186,7 @@
183186
"react-icons": "^2.2.7",
184187
"react-input-autosize": "^2.2.1",
185188
"react-inspector": "^2.2.0",
186-
"react-instantsearch": "^5.3.2",
189+
"react-instantsearch": "^5.7.0",
187190
"react-loadable": "^3.3.1",
188191
"react-media": "^1.9.2",
189192
"react-modal": "^3.6.1",
@@ -236,13 +239,15 @@
236239
"@types/codemirror": "^0.0.72",
237240
"@types/debug": "^4.1.1",
238241
"@types/gsap": "^1.20.1",
242+
"@types/jest": "24.0.13",
239243
"@types/lodash-es": "^4.17.2",
240244
"@types/phoenix": "^1.4.0",
241245
"@types/prop-types": "^15.7.0",
242246
"@types/react": "^16.8.12",
243247
"@types/react-dom": "^16.8.3",
244248
"@types/react-helmet": "^5.0.11",
245249
"@types/react-icons": "2.2.7",
250+
"@types/react-instantsearch": "^5.2.3",
246251
"@types/react-router-dom": "^4.3.1",
247252
"@types/react-stripe-elements": "^1.3.2",
248253
"@types/resolve": "^0.0.8",
@@ -261,6 +266,7 @@
261266
"buffer-loader": "^0.0.1",
262267
"case-sensitive-paths-webpack-plugin": "^2.0.0",
263268
"chalk": "1.1.3",
269+
"codesandbox": "^2.1.10",
264270
"codesandbox-deps": "^0.1.1",
265271
"connect-history-api-fallback": "1.3.0",
266272
"copy-webpack-plugin": "^5.0.3",
@@ -273,16 +279,17 @@
273279
"file-loader": "^1.1.11",
274280
"filesize": "^3.5.6",
275281
"fs-extra": "^8.0.1",
282+
"graphql-cli": "^3.0.14",
276283
"gulp-replace": "^0.5.4",
277284
"gzip-size": "3.0.0",
278285
"html-loader": "^0.5.5",
279286
"html-webpack-plugin": "^4.0.0-beta.1",
280287
"http-proxy-middleware": "^0.17.3",
281288
"imagemin-webpack-plugin": "^2.4.2",
282-
"jest": "^24.8.0",
289+
"jest": "^24.9.0",
283290
"jest-image-snapshot": "^1.0.1",
284291
"jest-junit": "^3.4.1",
285-
"jest-styled-components": "6.3.3",
292+
"jest-styled-components": "6.3.4",
286293
"mini-css-extract-plugin": "^0.8.0",
287294
"object-assign": "^4.1.1",
288295
"opn": "4.0.2",

0 commit comments

Comments
 (0)