Skip to content

Commit

Permalink
Clean up undesired MetaMask GitHub files
Browse files Browse the repository at this point in the history
  • Loading branch information
Montoya committed Jun 15, 2024
1 parent 93e190b commit 4d0520d
Show file tree
Hide file tree
Showing 11 changed files with 239 additions and 200 deletions.
4 changes: 0 additions & 4 deletions .github/CODEOWNERS

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/security-code-scanner.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"lavamoat": {
"allowScripts": {
"@lavamoat/preinstall-always-fail": false,
"sharp": true
"sharp": true,
"eslint-plugin-jest>jest>jest-cli>jest-config>ts-node>@swc/core": false
}
}
}
13 changes: 7 additions & 6 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "snap",
"name": "minesweeper-snap",
"version": "0.1.0",
"description": "The 'Hello, world!' of MetaMask Snaps, now written in TypeScript.",
"description": "Are you brave enough to click?.",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
"url": "https://github.com/Montoya/minesweeper-snap.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"main": "./dist/bundle.js",
"files": [
"dist/",
"images/",
"snap.manifest.json"
],
"scripts": {
Expand All @@ -27,7 +28,7 @@
"test": "jest"
},
"dependencies": {
"@metamask/snaps-sdk": "^4.0.0",
"@metamask/snaps-sdk": "^4.4.2",
"buffer": "^6.0.3"
},
"devDependencies": {
Expand All @@ -37,7 +38,7 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@metamask/snaps-cli": "^6.1.0",
"@metamask/snaps-cli": "^6.2.0",
"@metamask/snaps-jest": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand All @@ -58,7 +59,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.6.0"
"node": ">=20.1.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { resolve } from 'path';

const config: SnapConfig = {
bundler: 'webpack',
input: resolve(__dirname, 'src/index.ts'),
input: resolve(__dirname, 'src/index.tsx'),
server: {
port: 8080,
},
Expand Down
16 changes: 8 additions & 8 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"version": "0.1.0",
"description": "An example Snap written in TypeScript.",
"proposedName": "TypeScript Example",
"description": "Are you brave enough to click?",
"proposedName": "Minesweeper",
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
"url": "https://github.com/Montoya/minesweeper-snap.git"
},
"source": {
"shasum": "TwVBeJ/PL4uARBEFZmgJukYd3XWyTbilkOPhtdg+GvU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
"iconPath": "images/icon.svg",
"packageName": "snap",
"registry": "https://registry.npmjs.org/"
}
}
},
"initialPermissions": {
"snap_dialog": {},
"endowment:rpc": {
"dapps": true,
"snaps": false
}
"endowment:page-home": {},
"snap_manageState": {},
"endowment:lifecycle-hooks": {},
"snap_dialog": {}
},
"manifestVersion": "0.1"
}
47 changes: 0 additions & 47 deletions packages/snap/src/index.test.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/snap/src/index.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/snap/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "./"
"baseUrl": "./",
"jsx": "react-jsxdev"
},
"include": ["**/*.ts"]
"include": ["**/*.tsx"]
}
9 changes: 0 additions & 9 deletions scripts/cleanup.sh

This file was deleted.

Loading

0 comments on commit 4d0520d

Please sign in to comment.