Skip to content

Commit

Permalink
🚀 Init Turbo Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 16, 2021
1 parent da9459e commit 772b16c
Show file tree
Hide file tree
Showing 17 changed files with 6,150 additions and 11,730 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ workspace.code-workspace

.DS_Store



.turbo
768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.0.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml

This file was deleted.

1 change: 0 additions & 1 deletion apps/builder/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
6 changes: 6 additions & 0 deletions apps/builder/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withTM = require('next-transpile-modules')(['bot-engine'])

module.exports = withTM({
reactStrictMode: true,
})
14 changes: 8 additions & 6 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "builder",
"packageManager": "yarn@3.1.0",
"version": "0.1.0",
"scripts": {
"dev": "dotenv -e ../../.env next dev",
"dev": "next dev",
"build": "next build",
"build:prod": "yarn workspace db deploy && next build",
"start": "next start",
"lint": "next lint",
"cypress": "cypress open"
"test": "cypress run"
},
"dependencies": {
"@chakra-ui/css-reset": "^1.1.1",
Expand All @@ -17,6 +16,8 @@
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@next-auth/prisma-adapter": "next",
"bot-engine": "*",
"db": "*",
"focus-visible": "^5.2.0",
"framer-motion": "^4",
"next": "^12.0.4",
Expand All @@ -26,7 +27,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"short-uuid": "^4.2.0",
"svg-round-corners": "^0.2.0",
"svg-round-corners": "^0.3.0",
"swr": "^1.0.1",
"use-debounce": "^7.0.1"
},
Expand All @@ -45,7 +46,8 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-prettier": "^4.0.0",
"next-transpile-modules": "^9.0.0",
"prettier": "^2.4.1",
"typescript": "^4.5.2"
"typescript": "^4.5.4"
}
}
1 change: 0 additions & 1 deletion apps/viewer/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
6 changes: 6 additions & 0 deletions apps/viewer/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withTM = require('next-transpile-modules')(['bot-engine'])

module.exports = withTM({
reactStrictMode: true,
})
6 changes: 4 additions & 2 deletions apps/viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "viewer",
"packageManager": "yarn@3.1.0",
"version": "0.1.0",
"scripts": {
"dev": "next dev -p 3001",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"bot-engine": "*",
"db": "*",
"next": "^12.0.4",
"react": "^17.0.2",
"react-dom": "^17.0.2"
Expand All @@ -22,6 +24,6 @@
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.4.1",
"typescript": "^4.5.2"
"typescript": "^4.5.4"
}
}
34 changes: 29 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "typebot-os",
"packageManager": "yarn@3.1.0",
"private": true,
"workspaces": [
"packages/*",
Expand All @@ -13,12 +12,37 @@
"bot-engine": "yarn workspace bot-engine",
"db:up": "docker-compose up -d && yarn db prisma db push",
"db:nuke": "docker-compose down --volumes --remove-orphans",
"dev": "concurrently -n builder,viewer \"yarn builder dev\" \"yarn viewer dev\"",
"dx": "run-s db:up dev"
"build": "dotenv -e .env turbo run build",
"dev": "dotenv -e .env yarn db:up && turbo run dev --parallel",
"lint": "turbo run lint"
},
"devDependencies": {
"concurrently": "^6.4.0",
"dotenv-cli": "^4.1.0",
"npm-run-all": "^4.1.5"
"turbo": "^1.0.13"
},
"turbo": {
"baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
".next/**"
]
},
"test": {
"dependsOn": [
"^build"
],
"outputs": []
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
}
}
}
}
29 changes: 11 additions & 18 deletions packages/bot-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
{
"name": "bot-engine",
"packageManager": "yarn@3.1.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"version": "0.1.0",
"main": "src/index.ts",
"types": "src/index.ts",
"files": [
"dist"
"src/style.css"
],
"types": "dist/index.d.ts",
"dependencies": {
"db": "*"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-typescript": "^8.3.0",
"@types/react": "^17.0.37",
"npm-run-all": "^4.1.5",
"rollup": "^2.60.2",
"rollup-plugin-dts": "^4.0.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"tailwindcss": "^2.2.19",
"typescript": "^4.5.2"
"tailwindcss": "^3.0.5",
"typescript": "^4.5.4"
},
"peerDependencies": {
"react": "^17.0.2"
},
"scripts": {
"build": "run-s tailwind:generate rollup",
"tailwind:generate": "tailwindcss -o src/style.css",
"rollup": "rollup -c"
"build": "yarn tailwind:generate",
"tailwind:generate": "tailwindcss -o src/style.css --minify"
}
}
41 changes: 0 additions & 41 deletions packages/bot-engine/rollup.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/bot-engine/src/components/TypebotViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import { PublicTypebot } from 'db'
import '../style.css'

export const TypebotViewer = (props: PublicTypebot) => {
return <div>{props.name}</div>
Expand Down
Loading

1 comment on commit 772b16c

@vercel
Copy link

@vercel vercel bot commented on 772b16c Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.