Skip to content

Commit ef56c8f

Browse files
authored
Merge pull request #1 from Agoric/init
chore: scaffold app
2 parents fd982a8 + adc93f4 commit ef56c8f

18 files changed

Lines changed: 2793 additions & 0 deletions

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:react/recommended",
5+
"plugin:jsx-a11y/recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:import/typescript",
8+
"plugin:react/jsx-runtime",
9+
"plugin:prettier/recommended",
10+
"prettier"
11+
],
12+
"env": {
13+
"node": true
14+
},
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"ecmaFeatures": {
18+
"jsx": true
19+
},
20+
"ecmaVersion": "latest",
21+
"sourceType": "module"
22+
},
23+
"plugins": [
24+
"react",
25+
"@typescript-eslint",
26+
"import",
27+
"jsx-a11y",
28+
"react-hooks",
29+
"prettier"
30+
],
31+
"rules": {
32+
"@typescript-eslint/no-explicit-any": "off",
33+
"@typescript-eslint/no-non-null-assertion": "off",
34+
"@typescript-eslint/no-unused-vars": [
35+
"warn",
36+
{
37+
"argsIgnorePattern": "^_",
38+
"varsIgnorePattern": "^_",
39+
"caughtErrorsIgnorePattern": "^_"
40+
}
41+
],
42+
"react-hooks/rules-of-hooks": "error",
43+
"react-hooks/exhaustive-deps": "warn",
44+
"prettier/prettier": [
45+
"warn",
46+
{
47+
"endOfLine": "auto",
48+
"singleQuote": true
49+
}
50+
]
51+
},
52+
"settings": {
53+
"react": {
54+
"version": "detect"
55+
}
56+
}
57+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
yarn.lock

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/ist-icon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Inter Protocol PSM</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "agoric-psm",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview",
10+
"lint": "npx eslint src",
11+
"lint:fix": "npm run lint -- --fix",
12+
"prettier": "npx prettier src --check",
13+
"prettier:fix": "npm run prettier -- --write",
14+
"format": "npm run prettier:fix && npm run lint:fix"
15+
},
16+
"dependencies": {
17+
"react": "^18.2.0",
18+
"react-dom": "^18.2.0"
19+
},
20+
"devDependencies": {
21+
"@endo/init": "0.5.43",
22+
"@types/react": "^18.0.17",
23+
"@types/react-dom": "^18.0.6",
24+
"@typescript-eslint/eslint-plugin": "^5.34.0",
25+
"@typescript-eslint/parser": "^5.34.0",
26+
"@vitejs/plugin-react": "^2.0.1",
27+
"autoprefixer": "^10.4.8",
28+
"eslint": "^8.22.0",
29+
"eslint-config-prettier": "^8.5.0",
30+
"eslint-plugin-import": "^2.26.0",
31+
"eslint-plugin-jsx-a11y": "^6.6.1",
32+
"eslint-plugin-prettier": "^4.2.1",
33+
"eslint-plugin-react": "^7.30.1",
34+
"eslint-plugin-react-hooks": "^4.6.0",
35+
"postcss": "^8.4.16",
36+
"prettier": "^2.7.1",
37+
"tailwindcss": "^3.1.8",
38+
"typescript": "^4.6.4",
39+
"vite": "^3.0.7",
40+
"vite-tsconfig-paths": "^3.5.0"
41+
}
42+
}

postcss.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

public/ist-icon.svg

Lines changed: 1 addition & 0 deletions
Loading

src/App.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import './installSesLockdown';
2+
import 'ses';
3+
4+
const App = () => {
5+
return (
6+
<div className="min-h-screen flex justify-center items-center">
7+
<h1 className="text-3xl font-bold text-blue-600">Inter Protocol PSM</h1>
8+
</div>
9+
);
10+
};
11+
12+
export default App;

src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)