Skip to content

Commit

Permalink
removing template-react for template-react-leo, removing peer depende…
Browse files Browse the repository at this point in the history
…cies, bumping package, moving jsdoc to dev
  • Loading branch information
onetrickwolf committed Oct 5, 2023
1 parent 5302dfb commit 2b6c258
Show file tree
Hide file tree
Showing 31 changed files with 25 additions and 1,263 deletions.
2 changes: 1 addition & 1 deletion create-aleo-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ npm create aleo-app@latest my-aleo-app -- --template react
Currently supported template presets include:

- `vanilla`
- `react`
- `react-leo`
- `node`

You can use `.` for the project name to scaffold in the current directory.

Expand Down
21 changes: 14 additions & 7 deletions create-aleo-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
import minimist from "minimist";
import prompts from "prompts";
import {lightGreen, cyan, red, reset, yellow, blue} from "kolorist";
import {lightGreen, cyan, red, reset, yellow, blue, green} from "kolorist";

const argv = minimist<{
t?: string;
Expand Down Expand Up @@ -43,18 +43,25 @@ const FRAMEWORKS: Framework[] = [
display: "React",
color: cyan,
variants: [
{
name: "react",
display: "JavaScript",
color: blue,
},
{
name: "react-leo",
display: "JavaScript + Leo",
color: lightGreen,
},
],
}
},
{
name: 'node',
display: 'Node.js',
color: green,
variants: [
{
name: 'node',
display: 'Node.js',
color: green,
},
],
},
];

const TEMPLATES = FRAMEWORKS.map(
Expand Down
2 changes: 1 addition & 1 deletion create-aleo-app/template-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"start": "node index.js"
},
"dependencies": {
"@aleohq/sdk": "^0.6.0"
"@aleohq/sdk": "^0.6.1"
}
}
5 changes: 1 addition & 4 deletions create-aleo-app/template-react-leo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
"install-leo": "./install.sh"
},
"dependencies": {
"@aleohq/sdk": "^0.5.10",
"@aleohq/sdk": "^0.6.1",
"comlink": "^4.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"peerDependencies": {
"tslib": "^2.6.1"
},
"devDependencies": {
"@babel/core": "^7.17.2",
"@babel/preset-env": "^7.16.11",
Expand Down
79 changes: 4 additions & 75 deletions create-aleo-app/template-react-leo/src/assets/aleo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

32 changes: 0 additions & 32 deletions create-aleo-app/template-react-leo/src/workers/WorkerProvider.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion create-aleo-app/template-react-leo/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
optimizeDeps: {
exclude: ["@aleohq/wasm"],
exclude: ["@aleohq/wasm", "@aleohq/sdk"],
},
server: {
headers: {
Expand Down
5 changes: 1 addition & 4 deletions create-aleo-app/template-react-managed-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
"preview": "vite preview"
},
"dependencies": {
"@aleohq/sdk": "^0.5.10",
"@aleohq/sdk": "^0.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"peerDependencies": {
"tslib": "^2.6.1"
},
"devDependencies": {
"@babel/core": "^7.17.2",
"@babel/preset-env": "^7.16.11",
Expand Down
6 changes: 0 additions & 6 deletions create-aleo-app/template-react/.babelrc

This file was deleted.

20 changes: 0 additions & 20 deletions create-aleo-app/template-react/.eslintrc.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions create-aleo-app/template-react/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions create-aleo-app/template-react/_gitignore

This file was deleted.

88 changes: 0 additions & 88 deletions create-aleo-app/template-react/index.html

This file was deleted.

Loading

0 comments on commit 2b6c258

Please sign in to comment.