Skip to content

Commit a7915b6

Browse files
v0.0.1 nearly complete
0 parents  commit a7915b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+26964
-0
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
3+
docs
4+
lib
5+
out

.eslintrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true
5+
},
6+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
7+
"parser": "@typescript-eslint/parser",
8+
"plugins": ["@typescript-eslint", "prettier"],
9+
"rules": {
10+
"@typescript-eslint/ban-ts-comment": "off",
11+
"@typescript-eslint/no-explicit-any": "off",
12+
"@typescript-eslint/no-unused-vars": "off"
13+
}
14+
}

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.idea
2+
.vscode
3+
4+
.DS_Store
5+
6+
node_modules
7+
8+
docs
9+
10+
.parcel-cache

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
docs
2+
lib
3+
build
4+
out
5+
.next
6+
*.svg

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "es5",
4+
"tabWidth": 4,
5+
"semi": true,
6+
"singleQuote": true
7+
}

lerna.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": ["packages/*/*"],
3+
"version": "independent",
4+
"npmClient": "yarn",
5+
"useWorkspaces": true
6+
}

package.json

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"private": true,
3+
"name": "@crossmint/mint-adapter",
4+
"author": "Paella Labs",
5+
"repository": "https://github.com/Paella-Labs/mint-adapter",
6+
"type": "module",
7+
"workspaces": {
8+
"packages": [
9+
"packages/*/*"
10+
],
11+
"nohoist": [
12+
"**/babel-loader",
13+
"**/babel-loader/**",
14+
"**/webpack",
15+
"**/webpack/**"
16+
]
17+
},
18+
"engines": {
19+
"node": ">= 10"
20+
},
21+
"publishConfig": {
22+
"access": "restricted"
23+
},
24+
"scripts": {
25+
"clean": "lerna run clean",
26+
"build": "lerna run build",
27+
"test": "lerna run test",
28+
"publish": "lerna publish from-package",
29+
"deploy": "yarn deploy:docs && yarn deploy:example",
30+
"deploy:docs": "yarn docs && gh-pages --dist docs --dotfiles",
31+
"deploy:example": "gh-pages --dist packages/starter/example/out --dest example --dotfiles",
32+
"docs": "shx rm -rf docs && typedoc",
33+
"fmt": "prettier --write '{*,**/*}.{js,ts,jsx,tsx,json}'",
34+
"lint": "eslint --ext .ts . && prettier --check '{*,**/*}.{js,ts,jsx,tsx,json}'",
35+
"lint:fix": "eslint --fix --ext .ts . && yarn fmt",
36+
"nuke": "shx rm -rf {.,packages/*/*}/{node_modules,yarn.lock}"
37+
},
38+
"devDependencies": {
39+
"@types/eslint": "^7.2.13",
40+
"@types/eslint-plugin-prettier": "^3.1.0",
41+
"@types/node": "^16.9.1",
42+
"@types/prettier": "^2.3.1",
43+
"@typescript-eslint/eslint-plugin": "^4.31.0",
44+
"@typescript-eslint/parser": "^4.31.0",
45+
"eslint": "^7.29.0",
46+
"eslint-config-prettier": "^8.3.0",
47+
"eslint-plugin-prettier": "^4.0.0",
48+
"gh-pages": "^3.2.3",
49+
"lerna": "^4.0.0",
50+
"prettier": "^2.4.0",
51+
"shx": "^0.3.3",
52+
"tslib": "^2.3.0",
53+
"typedoc": "^0.22.2",
54+
"typescript": "^4.4.3"
55+
}
56+
}
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/types/global" />
3+
/// <reference types="next/image-types/global" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/basic-features/typescript for more information.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "@crossmint/mint-adapter-nextjs-starter",
3+
"version": "0.0.1",
4+
"author": "Paella Labs",
5+
"repository": "https://github.com/Paella-Labs/mint-adapter",
6+
"files": [
7+
"components",
8+
"pages",
9+
"public",
10+
"styles",
11+
".eslintrc.json",
12+
"next.config.js",
13+
"next-env.d.ts",
14+
"package.json",
15+
"README.md",
16+
"tsconfig.json"
17+
],
18+
"publishConfig": {
19+
"access": "restricted"
20+
},
21+
"scripts": {
22+
"clean": "shx rm -rf .next",
23+
"dev": "next dev",
24+
"build": "yarn clean && next build",
25+
"start": "next start",
26+
"lint": "next lint"
27+
},
28+
"dependencies": {
29+
"@crossmint/mint-adapter-react-ui": "^0.0.1",
30+
"next": "^11.1.2",
31+
"react": "^17.0.2",
32+
"react-dom": "^17.0.2"
33+
},
34+
"devDependencies": {
35+
"@types/react": "^17.0.24",
36+
"eslint": "^7.32.0",
37+
"eslint-config-next": "^11.1.2",
38+
"shx": "^0.3.3",
39+
"typescript": "^4.4.3"
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { AppProps } from 'next/app';
2+
import { FC, ReactNode } from 'react';
3+
import { CrossMintModalProvider, CrossMintPopupProvider } from '../../../ui/react-ui/lib';
4+
5+
// Use require instead of import, and order matters
6+
require('../styles/globals.css');
7+
require('@crossmint/mint-adapter-react-ui/styles.css');
8+
9+
const App: FC<AppProps> = ({ Component, pageProps }) => {
10+
return (
11+
<CrossMintModalProvider>
12+
<CrossMintPopupProvider>
13+
<Component {...pageProps} />
14+
</CrossMintPopupProvider>
15+
</CrossMintModalProvider>
16+
);
17+
};
18+
19+
export default App;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { CrossMintButton } from '@crossmint/mint-adapter-react-ui';
2+
3+
export default function Index(): JSX.IntrinsicAttributes {
4+
return (
5+
<div
6+
style={{ width: '100%', height: '100vh', display: 'flex', justifyContent: 'center', alignItems: 'center' }}
7+
>
8+
<CrossMintButton candyMachineId="sjsjsj" theme="light" />
9+
</div>
10+
);
11+
}
Binary file not shown.
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
html,
2+
body {
3+
padding: 0;
4+
margin: 0;
5+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
6+
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
7+
}
8+
9+
a {
10+
color: inherit;
11+
text-decoration: none;
12+
}
13+
14+
* {
15+
box-sizing: border-box;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es6",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"noEmit": true,
10+
"esModuleInterop": true,
11+
"module": "esnext",
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"jsx": "preserve"
16+
},
17+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
18+
"exclude": ["node_modules"]
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `yarn start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `yarn test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `yarn build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `yarn eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).
47+
48+
### Code Splitting
49+
50+
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51+
52+
### Analyzing the Bundle Size
53+
54+
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55+
56+
### Making a Progressive Web App
57+
58+
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59+
60+
### Advanced Configuration
61+
62+
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63+
64+
### Deployment
65+
66+
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67+
68+
### `yarn build` fails to minify
69+
70+
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

0 commit comments

Comments
 (0)