Commit 8cad5ec8 authored by Grant's avatar Grant
Browse files

convert project to vite

parent 45defd0a
Loading
Loading
Loading
Loading
+6500 −8811

File changed.

Preview size limit exceeded, changes collapsed.

packages/client-next/.babelrc

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
{
  "presets": ["@babel/preset-env", "@babel/preset-react"],
  "plugins": [
    "@babel/plugin-syntax-dynamic-import",
    "@babel/plugin-proposal-class-properties"
  ]
}
+1 −0
Original line number Diff line number Diff line
v20.11.0

packages/client-next/gulpfile.js

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
var gulp = require("gulp");
var ts = require("gulp-typescript");
const webpack = require("webpack-stream");
const sass = require("gulp-sass")(require("sass"));

gulp.task("css", function () {
  return gulp
    .src("src/style.scss")
    .pipe(sass().on("error", sass.logError))
    .pipe(gulp.dest("./public/css"));
});

gulp.task("js", function () {
  return gulp
    .src("src/**/*.tsx?")
    .pipe(webpack(require("./webpack.config.js")))
    .pipe(gulp.dest("public"));
});

gulp.task(
  "watch",
  gulp.series("js", "css", function () {
    gulp.watch(
      [
        "src/**/*.ts",
        "src/**/*.tsx",
        "../lib/src/**/*.ts",
        "../lib/src/**/*.tsx",
      ],
      gulp.series("js")
    );
    gulp.watch("src/**/*.scss", gulp.series("css"));
  })
);
+14 −17
Original line number Diff line number Diff line
@@ -4,8 +4,12 @@
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
    "build": "vite build",
    "dev": "vite serve",
    "preview": "vite preview",
    "lint": "eslint ."
  },
  "type": "module",
  "keywords": [],
  "author": "",
  "license": "ISC",
@@ -16,8 +20,10 @@
    "@fortawesome/fontawesome-svg-core": "^6.5.1",
    "@fortawesome/free-solid-svg-icons": "^6.5.1",
    "@fortawesome/react-fontawesome": "^0.2.0",
    "@nextui-org/react": "^2.2.9",
    "@sc07-canvas/lib": "^1.0.0",
    "eventemitter3": "^5.0.1",
    "framer-motion": "^11.0.5",
    "lodash.throttle": "^4.1.1",
    "prop-types": "^15.8.1",
    "react": "^18.2.0",
@@ -26,30 +32,21 @@
    "socket.io-client": "^4.7.4"
  },
  "devDependencies": {
    "@babel/core": "^7.23.9",
    "@babel/plugin-proposal-class-properties": "^7.18.6",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/preset-env": "^7.23.9",
    "@babel/preset-react": "^7.23.3",
    "@tsconfig/vite-react": "^3.0.0",
    "@types/lodash.throttle": "^4.1.9",
    "@types/react": "^18.2.48",
    "@types/react-dom": "^18.2.18",
    "@types/socket.io-client": "^3.0.0",
    "babel-loader": "^9.1.3",
    "css-loader": "^6.9.1",
    "@vitejs/plugin-react": "^4.2.1",
    "autoprefixer": "^10.4.17",
    "eslint": "^8.56.0",
    "eslint-config-react-app": "^7.0.1",
    "eslint-plugin-react": "^7.33.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "gulp": "^4.0.2",
    "gulp-cli": "^2.3.0",
    "gulp-typescript": "^6.0.0-alpha.1",
    "html-webpack-plugin": "^5.6.0",
    "postcss": "^8.4.35",
    "sass": "^1.70.0",
    "style-loader": "^3.3.4",
    "ts-loader": "^9.5.1",
    "webpack": "^5.90.0",
    "webpack-cli": "^5.1.4",
    "webpack-dev-server": "^4.15.1"
    "tailwindcss": "^3.4.1",
    "vite": "^5.1.1",
    "vite-plugin-simple-html": "^0.1.2"
  }
}
Loading