boiler plate, add folder scheme and basic files master origin/HEAD origin/master
authorDrakoPOD <Emmanuel1093@hotmail.com>
Tue, 19 Jul 2022 05:25:49 +0000 (01:25 -0400)
committerDrakoPOD <Emmanuel1093@hotmail.com>
Tue, 19 Jul 2022 05:25:49 +0000 (01:25 -0400)
.gitignore [new file with mode: 0644]
package.json [new file with mode: 0644]
scheme.png [new file with mode: 0644]
src/public/index.html [new file with mode: 0644]
src/scripts/main.ts [new file with mode: 0644]
src/styles/style.css [new file with mode: 0644]
tsconfig.json [new file with mode: 0644]
types/types.d.ts [new file with mode: 0644]
vite.config.ts [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..dff1ce6
--- /dev/null
@@ -0,0 +1,3 @@
+node_modules
+dist
+pnpm-lock.yaml
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644 (file)
index 0000000..5e6499e
--- /dev/null
@@ -0,0 +1,15 @@
+{
+  "name": "crowdnodewebstake",
+  "version": "0.0.0",
+  "description": "This is a web for staking your dash in the crowdnode web.",
+  "type": "module",
+  "scripts": {
+    "dev": "vite",
+    "build": "vite build",
+    "preview": "vite preview"
+  },
+  "license": "GPL-3.0",
+  "devDependencies": {
+    "vite": "^3.0.2"
+  }
+}
\ No newline at end of file
diff --git a/scheme.png b/scheme.png
new file mode 100644 (file)
index 0000000..7d28a66
Binary files /dev/null and b/scheme.png differ
diff --git a/src/public/index.html b/src/public/index.html
new file mode 100644 (file)
index 0000000..cb2cd14
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>CrowdNode</title>
+</head>
+
+<body>
+    <script type="module" src="../scripts/main.ts"></script>
+</body>
+
+</html>
\ No newline at end of file
diff --git a/src/scripts/main.ts b/src/scripts/main.ts
new file mode 100644 (file)
index 0000000..69c0d0a
--- /dev/null
@@ -0,0 +1 @@
+import '../styles/style.css';
diff --git a/src/styles/style.css b/src/styles/style.css
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644 (file)
index 0000000..5e347c1
--- /dev/null
@@ -0,0 +1,20 @@
+{
+  "compilerOptions": {
+    "target": "es2016",
+    "module": "ESNext",
+    // "typeRoots": [],                                  /* Specify multiple folders that act like './node_modules/@types'. */
+    "types": [] /* Specify type package names to be included without being referenced in a source file. */,
+
+    /* JavaScript Support */
+    "allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
+    // "checkJs": true,                                  /* Enable error reporting in type-checked JavaScript files. */
+    "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
+    "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
+    /* Type Checking */
+    "strict": true /* Enable all strict type-checking options. */,
+    "skipLibCheck": true /* Skip type checking all .d.ts files. */,
+    "moduleResolution": "node",
+    "resolveJsonModule": true
+  },
+  "include": ["types"]
+}
diff --git a/types/types.d.ts b/types/types.d.ts
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644 (file)
index 0000000..bed3855
--- /dev/null
@@ -0,0 +1,11 @@
+import { defineConfig } from 'vite';
+
+export default defineConfig({
+  build: {
+    rollupOptions: {
+      input: {
+        app: './index.html',
+      },
+    },
+  },
+});