Skip to content

Commit

Permalink
chore: added yarn check (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia authored Jan 27, 2024
1 parent a9cf292 commit 36a960b
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug report
description: Create a report to help us improve
title: "Bug: "
labels: ["type: bug"]
title: 'Bug: '
labels: ['type: bug']

body:
- type: textarea
Expand All @@ -27,4 +27,3 @@ body:
label: What version of the libraries are you using?
placeholder: |
- OnchainKit: [e.g. 0.2.x]
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ contact_links:
- name: Base Discord
url: https://base.org/discord
about: The official Base Discord community.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Documentation request
description: Suggest a documentation for this project
title: "Documentation Request: "
labels: ["type: documentation"]
title: 'Documentation Request: '
labels: ['type: documentation']

body:
- type: markdown
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Feature request
description: Suggest an idea for this project
title: "Feature Request: "
labels: ["type: enhancement"]
title: 'Feature Request: '
labels: ['type: enhancement']

body:
- type: textarea
Expand All @@ -15,4 +15,3 @@ body:
id: alternatives
attributes:
label: Describe alternatives you've considered.

2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
**What changed? Why?**


**Notes to reviewers**


**How has it been tested?**
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### generateFrameNextMetadata

Next App `page.ts`

```ts
// Steps 1. import generateFrameNextMetadata from @coinbase/onchainkit
import { generateFrameNextMetadata } from '@coinbase/onchainkit';
Expand All @@ -31,4 +32,4 @@ export const metadata: Metadata = {
export default function Page() {
return <HomePage />;
}
```
```
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "@coinbase/onchainkit",
"version": "0.1.2",
"version": "0.1.1",
"repository": "https://github.com/coinbase/onchainkit.git",
"license": "MIT",
"dependencies": {
"react": "^18",
"viem": "2.5.0"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc && tsc --module commonjs --outDir dist/lib",
"check": "yarn format",
"format": "prettier --log-level warn --write .",
"format:check": "prettier --check .",
"prebuild": "rimraf dist",
"release:check": "changeset status --verbose --since=origin/main",
"release:publish": "yarn install && yarn build && changeset publish",
"release:version": "changeset version && yarn install --immutable"
Expand All @@ -18,6 +21,7 @@
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.9",
"typescript": "~5.3.3",
"yarn": "^1.22.21"
},
Expand Down
21 changes: 21 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
arrowParens: 'always',
bracketSameLine: false,
jsxSingleQuote: false,
plugins: ['prettier-plugin-tailwindcss'],
printWidth: 100,
semi: true,
singleQuote: true,
tabWidth: 2,
tailwindFunctions: ['clsx'],
trailingComma: 'all',
useTabs: false,
overrides: [
{
files: '*.json',
options: {
parser: 'json-stringify',
},
},
],
};
2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { generateFrameNextMetadata } from './generateFrameNextMetadata';
export { generateFrameNextMetadata } from './generateFrameNextMetadata';
9 changes: 6 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
"compilerOptions": {
"moduleResolution": "node",
"target": "es2020",
"module":"es2020",
"lib": ["es2020", "dom"],
"module": "es2020",
"lib": [
"es2020",
"dom"
],
"strict": true,
"sourceMap": true,
"declaration": true,
Expand All @@ -20,4 +23,4 @@
"include": [
"src"
]
}
}
52 changes: 52 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ __metadata:
"@changesets/changelog-github": "npm:^0.4.8"
"@changesets/cli": "npm:^2.26.2"
prettier: "npm:^3.1.1"
prettier-plugin-tailwindcss: "npm:^0.5.9"
react: "npm:^18"
typescript: "npm:~5.3.3"
viem: "npm:2.5.0"
Expand Down Expand Up @@ -1907,6 +1908,57 @@ __metadata:
languageName: node
linkType: hard

"prettier-plugin-tailwindcss@npm:^0.5.9":
version: 0.5.11
resolution: "prettier-plugin-tailwindcss@npm:0.5.11"
peerDependencies:
"@ianvs/prettier-plugin-sort-imports": "*"
"@prettier/plugin-pug": "*"
"@shopify/prettier-plugin-liquid": "*"
"@trivago/prettier-plugin-sort-imports": "*"
prettier: ^3.0
prettier-plugin-astro: "*"
prettier-plugin-css-order: "*"
prettier-plugin-import-sort: "*"
prettier-plugin-jsdoc: "*"
prettier-plugin-marko: "*"
prettier-plugin-organize-attributes: "*"
prettier-plugin-organize-imports: "*"
prettier-plugin-style-order: "*"
prettier-plugin-svelte: "*"
peerDependenciesMeta:
"@ianvs/prettier-plugin-sort-imports":
optional: true
"@prettier/plugin-pug":
optional: true
"@shopify/prettier-plugin-liquid":
optional: true
"@trivago/prettier-plugin-sort-imports":
optional: true
prettier-plugin-astro:
optional: true
prettier-plugin-css-order:
optional: true
prettier-plugin-import-sort:
optional: true
prettier-plugin-jsdoc:
optional: true
prettier-plugin-marko:
optional: true
prettier-plugin-organize-attributes:
optional: true
prettier-plugin-organize-imports:
optional: true
prettier-plugin-style-order:
optional: true
prettier-plugin-svelte:
optional: true
prettier-plugin-twig-melody:
optional: true
checksum: 46e095d2a4298820a75a7b36022e8f2bcd1658a289f2ab11e4b9d4b6075272fee003d9959d084dcb33d5d669daf275e978d9a9aed35efe5eb9e77e70070b47f6
languageName: node
linkType: hard

"prettier@npm:^2.7.1":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
Expand Down

0 comments on commit 36a960b

Please sign in to comment.