Skip to content

Commit 8eae41e

Browse files
committed
Merge branch 'prototype-common-sync' into new-profiles
2 parents 3d39bd4 + a2ec6d9 commit 8eae41e

File tree

477 files changed

+19886
-13014
lines changed

Some content is hidden

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

477 files changed

+19886
-13014
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/**

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
[![first-timers-only Friendly](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/)
1515
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
1616

17-
An instantly ready, full-featured online IDE for web development on any device with a browser. Enabling you to start new projects quickly and prototype rapidly. With CodeSandbox, you can create web apps, experiment with code, test ideas, and share creations easily.
17+
An instantly ready, full-featured online IDE for web development on any device
18+
with a browser. Enabling you to start new projects quickly and prototype
19+
rapidly. With CodeSandbox, you can create web apps, experiment with code, test
20+
ideas, and share creations easily.
1821

1922
## Other CodeSandbox repositories
2023

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"build:embed": "lerna run build:embed --scope app --stream && gulp",
3838
"build:prod": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" lerna run build --scope homepage --stream && lerna run build --scope app --stream && lerna run copy-assets --scope app --stream",
3939
"commit": "concurrently \"yarn typecheck\" \"yarn lint\" && git commit -m",
40-
"postinstall": "yarn lerna run install-dependencies --stream --concurrency 1 && opencollective postinstall",
40+
"postinstall": "yarn lerna run install-dependencies --stream --concurrency 1 --ignore smooshpack --ignore react-smooshpack && opencollective postinstall",
4141
"contributors:add": "all-contributors add",
4242
"contributors:generate": "all-contributors generate",
4343
"lint": "lerna run lint --stream",
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: {

0 commit comments

Comments
 (0)