Skip to content

Commit

Permalink
Merge pull request #262 from solana-labs/parcel-starter
Browse files Browse the repository at this point in the history
Replace CRA with Parcel in starter projects
  • Loading branch information
jordaaash authored Jan 15, 2022
2 parents c80ee8b + a693b7b commit 16fb5cc
Show file tree
Hide file tree
Showing 56 changed files with 2,308 additions and 4,789 deletions.
9 changes: 9 additions & 0 deletions packages/starter/material-ui-starter/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions packages/starter/material-ui-starter/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.parcel-cache
dist
docs
node_modules
25 changes: 25 additions & 0 deletions packages/starter/material-ui-starter/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"react/no-unescaped-entities": ["error", { "forbid": [">"] }]
}
}
27 changes: 4 additions & 23 deletions packages/starter/material-ui-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.parcel-cache
dist
docs
node_modules
6 changes: 5 additions & 1 deletion packages/starter/material-ui-starter/.prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
build
.parcel-cache
dist
docs
node_modules

7 changes: 7 additions & 0 deletions packages/starter/material-ui-starter/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
52 changes: 0 additions & 52 deletions packages/starter/material-ui-starter/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/starter/material-ui-starter/craco.config.js

This file was deleted.

83 changes: 40 additions & 43 deletions packages/starter/material-ui-starter/package.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,65 @@
{
"name": "@solana/wallet-adapter-material-ui-starter",
"version": "0.12.1",
"version": "0.13.0",
"author": "Solana Maintainers <[email protected]>",
"repository": "https://github.com/solana-labs/wallet-adapter",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"files": [
"public",
"src",
"craco.config.js",
".editorconfig",
".eslintignore",
".eslintrc.json",
".gitignore",
".prettierignore",
".prettierrc",
"LICENSE",
"README.md",
"package.json",
"tsconfig.json"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "shx rm -rf build/*",
"start": "craco start",
"build": "yarn clean && craco build",
"test": "craco test",
"analyze": "source-map-explorer 'build/static/js/*.js'"
"clean": "shx rm -rf dist .parcel-cache",
"build": "yarn clean && parcel build src/index.html",
"start": "yarn clean && parcel src/index.html",
"fmt": "prettier --write '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint": "eslint . && prettier --check '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint:fix": "eslint --fix . && yarn fmt",
"nuke": "shx rm -rf node_modules yarn.lock"
},
"dependencies": {
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@solana/wallet-adapter-base": "^0.9.1",
"@solana/wallet-adapter-base": "^0.9.2",
"@solana/wallet-adapter-react": "^0.15.2",
"@solana/wallet-adapter-material-ui": "^0.16.0",
"@solana/wallet-adapter-react": "^0.15.1",
"@solana/wallet-adapter-wallets": "^0.14.1",
"@solana/web3.js": "^1.20.0",
"@solana/wallet-adapter-wallets": "^0.14.2",
"@solana/web3.js": "^1.31.0",
"notistack": "^2.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"devDependencies": {
"@craco/craco": "^6.0.0",
"@types/node": "^12.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"eslint-config-react-app": "^6.0.0",
"react-scripts": "^4.0.0",
"source-map-explorer": "^2.5.2",
"typescript": "~4.4.4",
"yarn": "^1.22.0"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"@types/eslint": "^8.2.2",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/node": "^16.11.14",
"@types/prettier": "^2.4.3",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"parcel": "^2.2.0",
"prettier": "^2.5.1",
"shx": "^0.3.4",
"tslib": "^2.3.1",
"typescript": "^4.5.4"
}
}
Binary file not shown.
43 changes: 0 additions & 43 deletions packages/starter/material-ui-starter/public/index.html

This file was deleted.

Binary file not shown.
Binary file not shown.
25 changes: 0 additions & 25 deletions packages/starter/material-ui-starter/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/starter/material-ui-starter/public/robots.txt

This file was deleted.

3 changes: 0 additions & 3 deletions packages/starter/material-ui-starter/src/App.css

This file was deleted.

Loading

0 comments on commit 16fb5cc

Please sign in to comment.