diff --git a/.github/contributing.md b/.github/contributing.md index c28953c..21dde68 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -2,6 +2,7 @@ We are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :) +All our CodeSandBox-Samples are [synced-templates](https://codesandbox.io/docs/learn/sandboxes/synced-templates) with our GitHub-repo: they will update automatically, once our repositories master branch got updated. ## How to contribute diff --git a/examples/find-components/.codesandbox/tasks.json b/examples/find-components/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/find-components/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/find-components/webpack.config.js b/examples/find-components/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/find-components/webpack.config.js +++ b/examples/find-components/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/five-star/.codesandbox/tasks.json b/examples/five-star/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/five-star/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/five-star/webpack.config.js b/examples/five-star/webpack.config.js index 54ecf35..e3be267 100644 --- a/examples/five-star/webpack.config.js +++ b/examples/five-star/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', module: { diff --git a/examples/get-component-by-dom-node/.codesandbox/tasks.json b/examples/get-component-by-dom-node/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/get-component-by-dom-node/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/get-component-by-dom-node/webpack.config.js b/examples/get-component-by-dom-node/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/get-component-by-dom-node/webpack.config.js +++ b/examples/get-component-by-dom-node/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/gondel-react/.codesandbox/tasks.json b/examples/gondel-react/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/gondel-react/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/gondel-react/webpack.config.js b/examples/gondel-react/webpack.config.js index 3e364ea..f11ba78 100644 --- a/examples/gondel-react/webpack.config.js +++ b/examples/gondel-react/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', module: { diff --git a/examples/hello-world/.codesandbox/tasks.json b/examples/hello-world/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/hello-world/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/hello-world/webpack.config.js b/examples/hello-world/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/hello-world/webpack.config.js +++ b/examples/hello-world/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/lazy-load/.codesandbox/tasks.json b/examples/lazy-load/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/lazy-load/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/lazy-load/webpack.config.js b/examples/lazy-load/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/lazy-load/webpack.config.js +++ b/examples/lazy-load/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/plugin-data/.codesandbox/tasks.json b/examples/plugin-data/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/plugin-data/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/plugin-data/webpack.config.js b/examples/plugin-data/webpack.config.js index fd31a68..6b025d4 100644 --- a/examples/plugin-data/webpack.config.js +++ b/examples/plugin-data/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', plugins: [ diff --git a/examples/plugin-media-query/.codesandbox/tasks.json b/examples/plugin-media-query/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/plugin-media-query/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/plugin-media-query/webpack.config.js b/examples/plugin-media-query/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/plugin-media-query/webpack.config.js +++ b/examples/plugin-media-query/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/plugin-resize/.codesandbox/tasks.json b/examples/plugin-resize/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/plugin-resize/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/plugin-resize/webpack.config.js b/examples/plugin-resize/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/plugin-resize/webpack.config.js +++ b/examples/plugin-resize/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/react-gondel/.codesandbox/tasks.json b/examples/react-gondel/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/react-gondel/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/react-gondel/webpack.config.js b/examples/react-gondel/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/react-gondel/webpack.config.js +++ b/examples/react-gondel/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/trigger-public-event/.codesandbox/tasks.json b/examples/trigger-public-event/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/trigger-public-event/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/trigger-public-event/webpack.config.js b/examples/trigger-public-event/webpack.config.js index 00420ec..22f6fba 100644 --- a/examples/trigger-public-event/webpack.config.js +++ b/examples/trigger-public-event/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.js', plugins: [ diff --git a/examples/typescript/.codesandbox/tasks.json b/examples/typescript/.codesandbox/tasks.json new file mode 100644 index 0000000..1cac0fb --- /dev/null +++ b/examples/typescript/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + "tasks": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true, + "preview": { + "port": 8080 + } + } + } +} diff --git a/examples/typescript/webpack.config.js b/examples/typescript/webpack.config.js index fd31a68..6b025d4 100644 --- a/examples/typescript/webpack.config.js +++ b/examples/typescript/webpack.config.js @@ -9,6 +9,9 @@ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 's module.exports = { mode: 'development', devtool: 'inline-source-map', + devServer: { + allowedHosts: ['.codesandbox.io', '.csb.app'], + }, context: __dirname, entry: './src/index.ts', plugins: [