Skip to content

Commit

Permalink
Merge pull request #237 from MeshJS/revamp
Browse files Browse the repository at this point in the history
MeshJS Revamp
  • Loading branch information
jinglescode authored Jun 12, 2024
2 parents 5824a3d + 3efd8d1 commit b0af813
Show file tree
Hide file tree
Showing 678 changed files with 13,004 additions and 21,943 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/build-and-lint.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Lint, Test, and Build

on:
release:
types: [created]
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.2.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build --filter="./packages/*"
34 changes: 24 additions & 10 deletions .github/workflows/npm-publish.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Publish MeshSDK Packages

on:
pull_request:
Expand All @@ -13,12 +13,26 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: 20
- run: yarn ci
version: 9.2.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build

check-version:
runs-on: ubuntu-latest
Expand All @@ -36,7 +50,7 @@ jobs:
- name: Get package version from main branch before merge
id: pre-merge-version
run: |
CORE_PRE_MERGE_VERSION=$(node -p "require('./packages/module/package.json').version")
CORE_PRE_MERGE_VERSION=$(node -p "require('./packages/core/package.json').version")
REACT_PRE_MERGE_VERSION=$(node -p "require('./packages/react/package.json').version")
CONTRACTS_PRE_MERGE_VERSION=$(node -p "require('./packages/contracts/package.json').version")
echo "core_pre_merge_version=$CORE_PRE_MERGE_VERSION" >> "$GITHUB_OUTPUT"
Expand All @@ -51,7 +65,7 @@ jobs:
- name: Get package version from main branch after merge
id: post-merge-version
run: |
CORE_POST_MERGE_VERSION=$(node -p "require('./packages/module/package.json').version")
CORE_POST_MERGE_VERSION=$(node -p "require('./packages/core/package.json').version")
REACT_POST_MERGE_VERSION=$(node -p "require('./packages/react/package.json').version")
CONTRACTS_POST_MERGE_VERSION=$(node -p "require('./packages/contracts/package.json').version")
echo "core_post_merge_version=$CORE_POST_MERGE_VERSION" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -87,8 +101,8 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn ci
- run: cd packages/module && npm publish --access public
- run: pnpm build --filter="./packages/*"
- run: cd packages/core && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Expand All @@ -102,7 +116,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn ci
- run: pnpm build --filter="./packages/*"
- run: cd packages/react && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -117,7 +131,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn ci
- run: pnpm build --filter="./packages/*"
- run: cd packages/contracts && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
14 changes: 6 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@ typings/
# TernJS port file
.tern-port

# Turborepo cache files
.turbo

# Rollup cache files
.rollup.cache

# production
dist

# misc
.DS_Store

_local
.rollup.cache

# local testing on new features
localTest.tsx

tmp
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions packages/cli/package.json → apps/mesh-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
"dev": "preconstruct watch"
},
"dependencies": {
"chalk": "4.1.2",
"commander": "9.4.1",
"figlet": "1.5.2",
"got": "11.8.5",
"chalk": "5.3.0",
"commander": "12.1.0",
"figlet": "1.7.0",
"got": "14.4.1",
"prompts": "2.4.2",
"tar": "6.1.12"
"tar": "7.2.0"
},
"devDependencies": {
"@preconstruct/cli": "2.2.2",
"@types/figlet": "1.5.5",
"@types/prompts": "2.4.1",
"@types/tar": "6.1.3"
"@preconstruct/cli": "2.8.4",
"@types/figlet": "1.5.8",
"@types/prompts": "2.4.9",
"@types/tar": "6.1.13"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions apps/mesh-docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@meshsdk/docs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@algolia/autocomplete-core": "1.17.2",
"@headlessui/react": "2.0.4",
"@headlessui/tailwindcss": "0.2.1",
"@sindresorhus/slugify": "2.2.1",
"@tailwindcss/typography": "0.5.13",
"clsx": "^2.1.1",
"flexsearch": "0.7.43",
"framer-motion": "11.2.10",
"next": "14.2.3",
"next-themes": "0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-highlight-words": "0.20.0",
"react-markdown": "9.0.1",
"remark": "15.0.1",
"simple-functional-loader": "1.2.1",
"unist-util-filter": "5.0.1",
"unist-util-visit": "5.0.0",
"uuid": "10.0.0",
"zustand": "4.5.2"
},
"devDependencies": {
"@types/node": "20.14.2",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.19",
"postcss": "8.4.38",
"tailwindcss": "3.4.4",
"typescript": "5.4.5"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b0af813

Please sign in to comment.