0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update CodeSandbox config for Node 18 and new editor (#8292)

* config: update config for codesandbox

* feat: update create-astro to remove .codesandbox folder

* chore: changeset

* fix: use node18
This commit is contained in:
Erika 2023-08-30 18:52:21 +02:00 committed by GitHub
parent 2a94614433
commit 4e88ffd813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 30 additions and 254 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Correctly remove new `.codesandbox` folder when copying template

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 4321,
"startScript": "start",
"node": "14"
}
}

View file

@ -48,7 +48,7 @@ export async function template(ctx: Pick<Context, 'template' | 'prompt' | 'dryRu
}
// some files are only needed for online editors when using astro.new. Remove for create-astro installs.
const FILES_TO_REMOVE = ['sandbox.config.json', 'CHANGELOG.md'];
const FILES_TO_REMOVE = ['CHANGELOG.md', '.codesandbox'];
const FILES_TO_UPDATE = {
'package.json': (file: string, overrides: { name: string }) =>
fs.promises.readFile(file, 'utf-8').then((value) => {