Try setting up a project

This commit is contained in:
Savanni D'Gerinel 2021-11-18 23:28:01 -05:00
parent f2b9e6ccb3
commit e8d77699a9
6 changed files with 4155 additions and 0 deletions

9
client/index.html Normal file
View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div id="root">Placeholder data</div>
<script src="/src/main.js"></script>
</body>
</html>

4075
client/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

27
client/package.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "datasphere-client",
"version": "1.0.0",
"description": "",
"main": "src/main.tsx",
"scripts": {
"start": "snowpack dev",
"build": "snowpack build",
"test": "jest"
},
"author": "Savanni D'Gerinel <savanni@luminescent-dreams.com>",
"license": "AGPL-3.0-or-later",
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.5.2"
},
"devDependencies": {
"@snowpack/plugin-typescript": "^1.2.1",
"@types/react": "^17.0.35",
"@types/react-dom": "^17.0.11",
"eslint": "^8.2.0",
"plugin-typescript": "^8.0.0",
"snowpack": "^3.8.8",
"ts-jest": "^27.0.7"
}
}

21
client/snowpack.config.js Normal file
View File

@ -0,0 +1,21 @@
// Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/reference/configuration
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
/* ... */
},
plugins: [
/* ... */
],
packageOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
};

11
client/src/main.tsx Normal file
View File

@ -0,0 +1,11 @@
import React from "react"
import ReactDOM from "react-dom"
const Hello = () => <div>Hello</div>;
const main = () => {
ReactDOM.render(<Hello />, document.getElementById('root'))
}
console.log(document.getElementById('root'))
main()

12
client/tsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"jsx": "react",
"module": "commonjs",
"rootDir": "src",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}