Skip to content

Commit

Permalink
v0.0.1 nearly complete
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellfortney committed Nov 17, 2021
0 parents commit a7915b6
Show file tree
Hide file tree
Showing 48 changed files with 26,964 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .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
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules

docs
lib
out
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"env": {
"browser": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea
.vscode

.DS_Store

node_modules

docs

.parcel-cache
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docs
lib
build
out
.next
*.svg
7 changes: 7 additions & 0 deletions .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
}
6 changes: 6 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"packages": ["packages/*/*"],
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true
}
56 changes: 56 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"private": true,
"name": "@crossmint/mint-adapter",
"author": "Paella Labs",
"repository": "https://github.com/Paella-Labs/mint-adapter",
"type": "module",
"workspaces": {
"packages": [
"packages/*/*"
],
"nohoist": [
"**/babel-loader",
"**/babel-loader/**",
"**/webpack",
"**/webpack/**"
]
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "restricted"
},
"scripts": {
"clean": "lerna run clean",
"build": "lerna run build",
"test": "lerna run test",
"publish": "lerna publish from-package",
"deploy": "yarn deploy:docs && yarn deploy:example",
"deploy:docs": "yarn docs && gh-pages --dist docs --dotfiles",
"deploy:example": "gh-pages --dist packages/starter/example/out --dest example --dotfiles",
"docs": "shx rm -rf docs && typedoc",
"fmt": "prettier --write '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint": "eslint --ext .ts . && prettier --check '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint:fix": "eslint --fix --ext .ts . && yarn fmt",
"nuke": "shx rm -rf {.,packages/*/*}/{node_modules,yarn.lock}"
},
"devDependencies": {
"@types/eslint": "^7.2.13",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/node": "^16.9.1",
"@types/prettier": "^2.3.1",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"gh-pages": "^3.2.3",
"lerna": "^4.0.0",
"prettier": "^2.4.0",
"shx": "^0.3.3",
"tslib": "^2.3.0",
"typedoc": "^0.22.2",
"typescript": "^4.4.3"
}
}
34 changes: 34 additions & 0 deletions packages/starter/nextjs-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
6 changes: 6 additions & 0 deletions packages/starter/nextjs-starter/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
41 changes: 41 additions & 0 deletions packages/starter/nextjs-starter/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@crossmint/mint-adapter-nextjs-starter",
"version": "0.0.1",
"author": "Paella Labs",
"repository": "https://github.com/Paella-Labs/mint-adapter",
"files": [
"components",
"pages",
"public",
"styles",
".eslintrc.json",
"next.config.js",
"next-env.d.ts",
"package.json",
"README.md",
"tsconfig.json"
],
"publishConfig": {
"access": "restricted"
},
"scripts": {
"clean": "shx rm -rf .next",
"dev": "next dev",
"build": "yarn clean && next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@crossmint/mint-adapter-react-ui": "^0.0.1",
"next": "^11.1.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@types/react": "^17.0.24",
"eslint": "^7.32.0",
"eslint-config-next": "^11.1.2",
"shx": "^0.3.3",
"typescript": "^4.4.3"
}
}
19 changes: 19 additions & 0 deletions packages/starter/nextjs-starter/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { AppProps } from 'next/app';
import { FC, ReactNode } from 'react';
import { CrossMintModalProvider, CrossMintPopupProvider } from '../../../ui/react-ui/lib';

// Use require instead of import, and order matters
require('../styles/globals.css');
require('@crossmint/mint-adapter-react-ui/styles.css');

const App: FC<AppProps> = ({ Component, pageProps }) => {
return (
<CrossMintModalProvider>
<CrossMintPopupProvider>
<Component {...pageProps} />
</CrossMintPopupProvider>
</CrossMintModalProvider>
);
};

export default App;
11 changes: 11 additions & 0 deletions packages/starter/nextjs-starter/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { CrossMintButton } from '@crossmint/mint-adapter-react-ui';

export default function Index(): JSX.IntrinsicAttributes {
return (
<div
style={{ width: '100%', height: '100vh', display: 'flex', justifyContent: 'center', alignItems: 'center' }}
>
<CrossMintButton candyMachineId="sjsjsj" theme="light" />
</div>
);
}
Binary file not shown.
4 changes: 4 additions & 0 deletions packages/starter/nextjs-starter/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions packages/starter/nextjs-starter/styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

a {
color: inherit;
text-decoration: none;
}

* {
box-sizing: border-box;
}
19 changes: 19 additions & 0 deletions packages/starter/nextjs-starter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
23 changes: 23 additions & 0 deletions packages/starter/react-ui-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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*
70 changes: 70 additions & 0 deletions packages/starter/react-ui-starter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

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)

### Analyzing the Bundle Size

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)

### Making a Progressive Web App

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)

### Advanced Configuration

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)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `yarn build` fails to minify

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)
Loading

0 comments on commit a7915b6

Please sign in to comment.