Skip to content

Commit cb0f335

Browse files
use comments experiment to save through live
2 parents 0ee4b6d + f85c752 commit cb0f335

File tree

248 files changed

+503372
-60698
lines changed

Some content is hidden

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

248 files changed

+503372
-60698
lines changed

.circleci/config.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,28 +381,29 @@ workflows:
381381
- create-docker-image:
382382
requires:
383383
- build-prod
384-
- deploy-production-approval:
385-
type: approval
386-
filters:
387-
branches:
388-
only:
389-
- master
390384
- deploy-to-production:
391385
requires:
392-
- deploy-production-approval
393386
- create-docker-image
394387
- build-prod
395388
- lint
396389
- typecheck
397-
# - test-integrations
390+
- test-integrations
398391
- test-jest
399392
filters:
400393
branches:
401394
only:
402395
- master
403396
- deploy-staging-approval:
404397
type: approval
398+
filters:
399+
branches:
400+
ignore:
401+
- master
405402
- deploy-to-staging:
406403
requires:
407404
- deploy-staging-approval
408405
- create-docker-image
406+
filters:
407+
branches:
408+
ignore:
409+
- master

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
"contributors:generate": "all-contributors generate",
4646
"lint": "lerna run lint --stream",
4747
"now-build": "yarn build:deps && lerna run build:storybook --scope @codesandbox/common",
48-
"start": "yarn build:deps && lerna run start --scope @codesandbox/common --scope @codesandbox/components --scope app --parallel",
48+
"start": "yarn build:deps && cross-env NODE_ENV=development lerna run start --scope @codesandbox/common --scope @codesandbox/components --scope app --parallel",
4949
"start:common": "lerna run start --scope @codesandbox/common --stream",
5050
"start:components": "lerna run start --scope @codesandbox/components --stream",
5151
"start:dev_api": "concurrently --raw \"cd packages/app && yarn start:dev_api\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
5252
"start:dynamic": "lerna run dev --scope dynamic-pages --stream",
53-
"start:fast": "concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
54-
"start:fast:stream": "cross-env STAGING_API=1 concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
53+
"start:fast": "cross-env NODE_ENV=development concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
54+
"start:fast:stream": "cross-env STAGING_API=1 NODE_ENV=development concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
5555
"start:home": "yarn build:deps && yarn start:home:fast",
5656
"start:home:fast": "cd packages/homepage && yarn start",
5757
"start:overmind": "yarn build:deps && concurrently \"lerna run start --scope app --stream\" \"overmind-devtools\"",

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/vscode27/vs',
6+
to: 'public/vscode28/vs',
77
},
88
!SANDBOX_ONLY && {
99
from: 'standalone-packages/vscode-extensions/out',
10-
to: 'public/vscode-extensions/v12',
10+
to: 'public/vscode-extensions/v13',
1111
},
1212
!SANDBOX_ONLY && {
1313
from: 'node_modules/onigasm/lib/onigasm.wasm',

packages/app/config/webpack.prod.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ module.exports = merge(commonConfig, {
107107
},
108108

109109
plugins: [
110-
process.env.ANALYZE && new BundleAnalyzerPlugin(),
110+
process.env.ANALYZE &&
111+
new BundleAnalyzerPlugin({
112+
analyzerMode: 'static',
113+
}),
111114
new webpack.DefinePlugin({ VERSION: JSON.stringify(VERSION) }),
112115
// Generate a service worker script that will precache, and keep up to date,
113116
// the HTML & assets that are part of the Webpack build.
@@ -180,7 +183,7 @@ module.exports = merge(commonConfig, {
180183
},
181184
},
182185
{
183-
urlPattern: /\/vscode27/,
186+
urlPattern: /\/vscode28/,
184187
handler: 'cacheFirst',
185188
options: {
186189
cache: {
@@ -283,7 +286,7 @@ module.exports = merge(commonConfig, {
283286
},
284287
},
285288
{
286-
urlPattern: /prod-packager-packages\.csb\.dev/,
289+
urlPattern: /prod-packager-packages\.codesandbox\.io/,
287290
handler: 'fastest',
288291
options: {
289292
cache: {

packages/app/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"circular-json": "^0.4.0",
108108
"codemirror": "^5.27.4",
109109
"codesandbox-api": "0.0.24",
110-
"codesandbox-import-utils": "^2.1.11",
110+
"codesandbox-import-utils": "^2.1.14",
111111
"color": "^0.11.4",
112112
"compare-versions": "^3.1.0",
113113
"console": "^0.7.2",
@@ -125,7 +125,6 @@
125125
"fontfaceobserver": "^2.0.13",
126126
"framer-motion": "^1.8.4",
127127
"fuse.js": "^3.2.1",
128-
"geniejs": "^0.5.1",
129128
"glamor": "^2.20.25",
130129
"graphql": "^14.6.0",
131130
"graphql-subscriptions-client": "^0.12.0",
@@ -197,7 +196,6 @@
197196
"react-error-overlay": "^1.0.10",
198197
"react-icons": "^2.2.7",
199198
"react-input-autosize": "^2.2.1",
200-
"react-inspector": "^2.2.0",
201199
"react-instantsearch": "^5.7.0",
202200
"react-loadable": "^3.3.1",
203201
"react-markdown": "^4.3.1",
@@ -207,7 +205,6 @@
207205
"react-outside-click-handler": "^1.2.3",
208206
"react-refresh": "^0.7.2",
209207
"react-router-dom": "^5.0.1",
210-
"react-scrollbars-custom": "^4.0.20",
211208
"react-show": "^3.0.4",
212209
"react-split-pane": "^0.1.87",
213210
"react-spring": "^8.0.25",
@@ -216,11 +213,9 @@
216213
"react-use": "^9.7.2",
217214
"react-virtualized": "^9.19.1",
218215
"reakit": "^1.0.0-beta.4",
219-
"rebound": "^0.1.0",
220216
"resize-observer-polyfill": "^1.5.1",
221217
"sha1": "^1.1.1",
222218
"shelljs": "^0.7.8",
223-
"shortid": "^2.2.8",
224219
"store": "^2.0.12",
225220
"string-replace-loader": "^2.1.1",
226221
"styled-components": "^4.3.2",
@@ -334,7 +329,6 @@
334329
"recursive-readdir": "^2.2.1",
335330
"resolve-url-loader": "^3.1.0",
336331
"rimraf": "^2.6.1",
337-
"run-sequence": "^1.2.2",
338332
"sass-loader": "^7.1.0",
339333
"script-ext-html-webpack-plugin": "^2.1.4",
340334
"selenium-webdriver": "^4.0.0-alpha.1",

packages/app/scripts/copy-assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const assets = [
2525
},
2626
!SANDBOX_ONLY && {
2727
from: 'standalone-packages/vscode-editor/release/min/vs',
28-
to: 'public/vscode25/vs',
28+
to: 'public/vscode27/vs',
2929
},
3030
{
3131
from: 'packages/app/public',

packages/app/src/app/components/CreateNewSandbox/CreateSandbox/SearchBox/SearchBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { useKey } from 'react-use';
2+
import useKey from 'react-use/lib/useKey';
33
import { ESC } from '@codesandbox/common/lib/utils/keycodes';
44
import { SearchElement, InputWrapper } from './elements';
55

packages/app/src/app/components/CreateNewSandbox/CreateSandbox/TemplateList/TemplateList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import getTemplateDefinition, {
55
TemplateType,
66
} from '@codesandbox/common/lib/templates';
77
import { useOvermind } from 'app/overmind';
8-
import { useKey } from 'react-use';
8+
import useKey from 'react-use/lib/useKey';
99
import { isMac } from '@codesandbox/common/lib/utils/platform';
1010
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
1111
import history from 'app/utils/history';

0 commit comments

Comments
 (0)