Skip to content

Commit

Permalink
chore: add in codesandbox support (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnewton authored Nov 7, 2024
1 parent 85cf2a5 commit 81d2677
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 6 deletions.
62 changes: 62 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"command": "npm install",
"name": "Install Dependencies"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"dev": {
"name": "dev",
"command": "npm run dev",
"runAtStart": true
},
"dev:vite": {
"name": "dev:vite",
"command": "npm run dev:vite"
},
"build": {
"name": "build",
"command": "npm run build"
},
"build:vite": {
"name": "build:vite",
"command": "npm run build:vite"
},
"build:storybook": {
"name": "build:storybook",
"command": "npm run build:storybook"
},
"lint": {
"name": "lint",
"command": "npm run lint"
},
"preview": {
"name": "preview",
"command": "npm run preview"
},
"start": {
"name": "start",
"command": "npm run start"
},
"start:storybook": {
"name": "start:storybook",
"command": "npm run start:storybook"
},
"test": {
"name": "test",
"command": "npm run test"
},
"test:cypress": {
"name": "test:cypress",
"command": "npm run test:cypress"
},
"test:storybook": {
"name": "test:storybook",
"command": "npm run test:storybook"
}
}
}
28 changes: 22 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -11,18 +15,30 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react",
"jsx": "preserve",
"incremental": true,
"types": ["cypress", "node"],
"types": [
"cypress",
"node"
],
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 81d2677

Please sign in to comment.