also looking at this
chore(deps): update all non-major dependencies
#418
11 files
+442
-40
| @@ -130,7 +130,7 @@ jobs: | ||
| 130 | 130 | |
| 131 | 131 | - name: Setup PHP and Composer (if needed) |
| 132 | 132 | if: ${{ hashFiles('composer.json') != '' }} |
| 133 | uses: shivammathur/setup-php@v2 | |
| 133 | uses: shivammathur/setup-php@2.36.0 | |
| 134 | 134 | with: |
| 135 | 135 | php-version: '8.4' |
| 136 | 136 | tools: composer |
| @@ -248,7 +248,7 @@ jobs: | ||
| 248 | 248 | |
| 249 | 249 | - name: Setup PHP and Composer (if needed) |
| 250 | 250 | if: ${{ hashFiles('composer.json') != '' }} |
| 251 | uses: shivammathur/setup-php@v2 | |
| 251 | uses: shivammathur/setup-php@2.36.0 | |
| 252 | 252 | with: |
| 253 | 253 | php-version: '8.4' |
| 254 | 254 | tools: composer |
| @@ -0,0 +1,40 @@ | ||
| 1 | name: Bundle Size Check | |
| 2 | ||
| 3 | on: | |
| 4 | pull_request: | |
| 5 | paths: | |
| 6 | - 'packages/ts-tokens/src/**' | |
| 7 | - 'packages/react/src/**' | |
| 8 | - 'packages/vue/src/**' | |
| 9 | ||
| 10 | jobs: | |
| 11 | bundle-size: | |
| 12 | runs-on: ubuntu-latest | |
| 13 | steps: | |
| 14 | - uses: actions/checkout@v4 | |
| 15 | - uses: oven-sh/setup-bun@v2.1.2 | |
| 16 | - uses: actions/cache@v4 | |
| 17 | with: | |
| 18 | path: node_modules | |
| 19 | key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| 20 | - run: bun install | |
| 21 | - run: bun run build | |
| 22 | working-directory: packages/ts-tokens | |
| 23 | - name: Check bundle size | |
| 24 | run: | | |
| 25 | node -e " | |
| 26 | const { analyzeBundleSize, checkBundleBudget } = require('./packages/ts-tokens/dist/utils/bundle-optimizer.js'); | |
| 27 | analyzeBundleSize('./packages/ts-tokens/dist').then(report => { | |
| 28 | console.log('Bundle Size Report:'); | |
| 29 | console.log('Total:', (report.totalSizeBytes / 1024).toFixed(1), 'KB'); | |
| 30 | console.log('Gzip:', (report.totalGzipBytes / 1024).toFixed(1), 'KB'); | |
| 31 | report.entries.sort((a,b) => b.sizeBytes - a.sizeBytes).slice(0,10).forEach(e => { | |
| 32 | console.log(' ' + e.name + ': ' + (e.sizeBytes / 1024).toFixed(1) + ' KB'); | |
| 33 | }); | |
| 34 | const result = checkBundleBudget(report, { maxTotalBytes: 5 * 1024 * 1024 }); | |
| 35 | if (!result.passed) { | |
| 36 | console.error('Budget violations:', result.violations); | |
| 37 | process.exit(1); | |
| 38 | } | |
| 39 | }); | |
| 40 | " | |
| @@ -21,7 +21,7 @@ jobs: | ||
| 21 | 21 | - uses: actions/checkout@v4 |
| 22 | 22 | |
| 23 | 23 | - name: Install Bun |
| 24 | uses: oven-sh/setup-bun@v2 | |
| 24 | uses: oven-sh/setup-bun@v2.1.2 | |
| 25 | 25 | |
| 26 | 26 | - name: Use cached node_modules |
| 27 | 27 | uses: actions/cache@v4 |
| @@ -44,7 +44,7 @@ jobs: | ||
| 44 | 44 | - uses: actions/checkout@v4 |
| 45 | 45 | |
| 46 | 46 | - name: Install Bun |
| 47 | uses: oven-sh/setup-bun@v2 | |
| 47 | uses: oven-sh/setup-bun@v2.1.2 | |
| 48 | 48 | |
| 49 | 49 | - name: Use cached node_modules |
| 50 | 50 | uses: actions/cache@v4 |
| @@ -67,7 +67,7 @@ jobs: | ||
| 67 | 67 | - uses: actions/checkout@v4 |
| 68 | 68 | |
| 69 | 69 | - name: Install Bun |
| 70 | uses: oven-sh/setup-bun@v2 | |
| 70 | uses: oven-sh/setup-bun@v2.1.2 | |
| 71 | 71 | |
| 72 | 72 | - name: Use cached node_modules |
| 73 | 73 | uses: actions/cache@v4 |
| @@ -81,7 +81,22 @@ jobs: | ||
| 81 | 81 | run: bun install |
| 82 | 82 | |
| 83 | 83 | - name: Unit Test |
| 84 | run: bun test | |
| 84 | run: bun test --coverage 2>&1 | tee coverage-output.txt | |
| 85 | ||
| 86 | - name: Check Coverage Threshold | |
| 87 | run: | | |
| 88 | if grep -q "All files" coverage-output.txt; then | |
| 89 | LINE_COV=$(grep "All files" coverage-output.txt | awk '{print $4}' | tr -d '%') | |
| 90 | echo "Line coverage: ${LINE_COV}%" | |
| 91 | THRESHOLD=50 | |
| 92 | if [ "$(echo "${LINE_COV} < ${THRESHOLD}" | bc -l)" -eq 1 ]; then | |
| 93 | echo "::error::Line coverage ${LINE_COV}% is below threshold ${THRESHOLD}%" | |
| 94 | exit 1 | |
| 95 | fi | |
| 96 | echo "Coverage ${LINE_COV}% meets threshold ${THRESHOLD}%" | |
| 97 | else | |
| 98 | echo "Coverage report not found — skipping threshold check" | |
| 99 | fi | |
| 85 | 100 | |
| 86 | 101 | publish-commit: |
| 87 | 102 | runs-on: ubuntu-latest |
| @@ -90,7 +105,7 @@ jobs: | ||
| 90 | 105 | - uses: actions/checkout@v4 |
| 91 | 106 | |
| 92 | 107 | - name: Install Bun |
| 93 | uses: oven-sh/setup-bun@v2 | |
| 108 | uses: oven-sh/setup-bun@v2.1.2 | |
| 94 | 109 | |
| 95 | 110 | - name: Use cached node_modules |
| 96 | 111 | uses: actions/cache@v4 |
| @@ -0,0 +1,60 @@ | ||
| 1 | name: Deploy Docs | |
| 2 | ||
| 3 | on: | |
| 4 | push: | |
| 5 | branches: [main] | |
| 6 | paths: | |
| 7 | - 'docs/**' | |
| 8 | - '.github/workflows/docs.yml' | |
| 9 | workflow_dispatch: | |
| 10 | ||
| 11 | permissions: | |
| 12 | contents: read | |
| 13 | pages: write | |
| 14 | id-token: write | |
| 15 | ||
| 16 | concurrency: | |
| 17 | group: pages | |
| 18 | cancel-in-progress: false | |
| 19 | ||
| 20 | jobs: | |
| 21 | build: | |
| 22 | runs-on: ubuntu-latest | |
| 23 | steps: | |
| 24 | - name: Checkout | |
| 25 | uses: actions/checkout@v4 | |
| 26 | with: | |
| 27 | fetch-depth: 0 | |
| 28 | ||
| 29 | - name: Setup Bun | |
| 30 | uses: oven-sh/setup-bun@v2 | |
| 31 | ||
| 32 | - name: Use Cached node_modules | |
| 33 | uses: actions/cache@v4 | |
| 34 | with: | |
| 35 | path: node_modules | |
| 36 | key: node-modules-${{ hashFiles('**/bun.lock') }} | |
| 37 | restore-keys: | | |
| 38 | node-modules- | |
| 39 | ||
| 40 | - name: Install Dependencies | |
| 41 | run: bun install | |
| 42 | ||
| 43 | - name: Build Documentation | |
| 44 | run: bun run build:docs | |
| 45 | ||
| 46 | - name: Upload Pages Artifact | |
| 47 | uses: actions/upload-pages-artifact@v3 | |
| 48 | with: | |
| 49 | path: docs/.vitepress/dist | |
| 50 | ||
| 51 | deploy: | |
| 52 | environment: | |
| 53 | name: github-pages | |
| 54 | url: ${{ steps.deployment.outputs.page_url }} | |
| 55 | needs: build | |
| 56 | runs-on: ubuntu-latest | |
| 57 | steps: | |
| 58 | - name: Deploy to GitHub Pages | |
| 59 | id: deployment | |
| 60 | uses: actions/deploy-pages@v4.0.5 | |
| @@ -35,29 +35,37 @@ jobs: | ||
| 35 | 35 | - name: Install Dependencies |
| 36 | 36 | run: bun install |
| 37 | 37 | |
| 38 | - name: Build All Packages | |
| 39 | run: bun run build | |
| 40 | ||
| 41 | - name: Compile CLI Binaries | |
| 42 | run: cd packages/ts-tokens && bun run compile:all | |
| 43 | ||
| 44 | - name: Zip Binaries | |
| 45 | run: | | |
| 46 | cd packages/ts-tokens/bin | |
| 47 | for f in tokens-linux-x64 tokens-linux-arm64 tokens-darwin-x64 tokens-darwin-arm64; do | |
| 48 | [ -f "$f" ] && zip "${f}.zip" "$f" | |
| 49 | done | |
| 50 | [ -f "tokens-windows-x64.exe" ] && zip "tokens-windows-x64.zip" "tokens-windows-x64.exe" | |
| 51 | ||
| 38 | 52 | - name: Publish to npm |
| 39 | run: ./scripts/publish.sh | |
| 53 | run: | | |
| 54 | cd packages/ts-tokens && bun publish --access public --provenance | |
| 55 | cd ../react && bun publish --access public --provenance | |
| 56 | cd ../vue && bun publish --access public --provenance | |
| 40 | 57 | env: |
| 41 | 58 | BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
| 42 | 59 | |
| 43 | 60 | - name: Create GitHub Release |
| 44 | 61 | id: create_release |
| 45 | uses: stacksjs/action-releaser@v1.1.0 | |
| 62 | uses: stacksjs/action-releaser@v1.2.9 | |
| 46 | 63 | with: |
| 47 | 64 | files: | |
| 48 | ./packages/tlsx/bin/tlsx-linux-x64.zip | |
| 49 | ./packages/tlsx/bin/tlsx-linux-arm64.zip | |
| 50 | ./packages/tlsx/bin/tlsx-windows-x64.zip | |
| 51 | ./packages/tlsx/bin/tlsx-darwin-x64.zip | |
| 52 | ./packages/tlsx/bin/tlsx-darwin-arm64.zip | |
| 53 | # --- Homebrew tap update support --- | |
| 54 | # Path to your Homebrew formula template (update this path as needed) | |
| 55 | # homebrewFormula: .github/homebrew-formula.rb | |
| 56 | # The owner/repo of your Homebrew tap (update this value as needed) | |
| 57 | # homebrewRepo: stacksjs/homebrew-tap | |
| 58 | # Optionally uncomment and set these if you need custom values: | |
| 59 | # homebrewBranch: main | |
| 60 | # homebrewPath: Formula | |
| 61 | # homebrewCommitFormat: "update: {{ formula }} to {{ version }}" | |
| 65 | ./packages/ts-tokens/bin/tokens-linux-x64.zip | |
| 66 | ./packages/ts-tokens/bin/tokens-linux-arm64.zip | |
| 67 | ./packages/ts-tokens/bin/tokens-windows-x64.zip | |
| 68 | ./packages/ts-tokens/bin/tokens-darwin-x64.zip | |
| 69 | ./packages/ts-tokens/bin/tokens-darwin-arm64.zip | |
| 62 | 70 | env: |
| 63 | 71 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| @@ -0,0 +1,26 @@ | ||
| 1 | { | |
| 2 | "name": "candy-machine-ui", | |
| 3 | "private": true, | |
| 4 | "version": "0.0.0", | |
| 5 | "type": "module", | |
| 6 | "scripts": { | |
| 7 | "dev": "vite", | |
| 8 | "build": "tsc && vite build", | |
| 9 | "preview": "vite preview" | |
| 10 | }, | |
| 11 | "dependencies": { | |
| 12 | "bun": "^1.3.9", | |
| 13 | "dev": "^0.1.3", | |
| 14 | "react": "^18.3.0", | |
| 15 | "react-dom": "^18.3.0", | |
| 16 | "ts-tokens": "workspace:*" | |
| 17 | }, | |
| 18 | "devDependencies": { | |
| 19 | "@types/react": "^18.3.0", | |
| 20 | "@types/react-dom": "^18.3.0", | |
| 21 | "@vitejs/plugin-react": "^4.3.0", | |
| 22 | "typescript": "^5.9.3", | |
| 23 | "vite": "^5.4.0", | |
| 24 | "vite-plugin-node-polyfills": "^0.25.0" | |
| 25 | } | |
| 26 | } | |
| @@ -0,0 +1,22 @@ | ||
| 1 | { | |
| 2 | "name": "vue-nft-gallery", | |
| 3 | "private": true, | |
| 4 | "version": "0.0.0", | |
| 5 | "type": "module", | |
| 6 | "scripts": { | |
| 7 | "dev": "vite", | |
| 8 | "build": "vue-tsc && vite build", | |
| 9 | "preview": "vite preview" | |
| 10 | }, | |
| 11 | "dependencies": { | |
| 12 | "vue": "^3.5.28", | |
| 13 | "ts-tokens": "workspace:*" | |
| 14 | }, | |
| 15 | "devDependencies": { | |
| 16 | "@vitejs/plugin-vue": "^5.1.0", | |
| 17 | "typescript": "^5.9.3", | |
| 18 | "vite": "^5.4.0", | |
| 19 | "vite-plugin-node-polyfills": "^0.25.0", | |
| 20 | "vue-tsc": "^2.0.0" | |
| 21 | } | |
| 22 | } | |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "react-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "React components for Solana tokens and NFTs", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -43,13 +43,16 @@ | ||
| 43 | 43 | "dist" |
| 44 | 44 | ], |
| 45 | 45 | "scripts": { |
| 46 | "build": "bun build ./src/index.ts --outdir ./dist --target browser", | |
| 46 | "dev": "vite --config vite.config.ts", | |
| 47 | "build": "bun build ./src/index.ts --outdir ./dist --target browser --sourcemap=external", | |
| 47 | 48 | "lint": "bunx --bun eslint .", |
| 48 | 49 | "lint:fix": "bunx --bun eslint . --fix", |
| 49 | "release": "bun publish --access public", | |
| 50 | "release": "bun publish --access public --provenance", | |
| 50 | 51 | "prepublishOnly": "bun --bun run build", |
| 51 | 52 | "test": "bun test", |
| 52 | "typecheck": "bun --bun tsc --noEmit" | |
| 53 | "typecheck": "bun --bun tsc --noEmit", | |
| 54 | "storybook": "storybook dev -p 6006", | |
| 55 | "build-storybook": "storybook build" | |
| 53 | 56 | }, |
| 54 | 57 | "dependencies": { |
| 55 | 58 | "ts-tokens": "workspace:*" |
| @@ -57,16 +60,22 @@ | ||
| 57 | 60 | "peerDependencies": { |
| 58 | 61 | "react": ">=18.0.0", |
| 59 | 62 | "react-dom": ">=18.0.0", |
| 60 | "@solana/wallet-adapter-react": ">=0.15.0", | |
| 61 | "@solana/wallet-adapter-react-ui": ">=0.9.0", | |
| 63 | "@solana/wallet-adapter-react": ">=0.15.39", | |
| 64 | "@solana/wallet-adapter-react-ui": ">=0.9.39", | |
| 62 | 65 | "@solana/web3.js": ">=1.87.0" |
| 63 | 66 | }, |
| 64 | 67 | "devDependencies": { |
| 68 | "@storybook/react": "^10.2.8", | |
| 69 | "@storybook/react-vite": "^10.2.8", | |
| 70 | "@testing-library/jest-dom": "^6.9.1", | |
| 71 | "@testing-library/react": "^16.3.2", | |
| 65 | 72 | "@types/react": "^18.2.0", |
| 66 | 73 | "@types/react-dom": "^18.2.0", |
| 74 | "better-dx": "^0.2.5", | |
| 75 | "happy-dom": "^20.6.1", | |
| 67 | 76 | "react": "^18.2.0", |
| 68 | 77 | "react-dom": "^18.2.0", |
| 69 | "better-dx": "^0.2.5" | |
| 78 | "storybook": "^10.2.8" | |
| 70 | 79 | }, |
| 71 | 80 | "lint-staged": { |
| 72 | 81 | "*.{js,ts,tsx}": "bunx --bun eslint . --fix" |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "ts-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "A TypeScript library for managing fungible and non-fungible tokens on Solana.", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -30,6 +30,110 @@ | ||
| 30 | 30 | "types": "./dist/index.d.ts", |
| 31 | 31 | "import": "./dist/index.js" |
| 32 | 32 | }, |
| 33 | "./token": { | |
| 34 | "types": "./dist/token/index.d.ts", | |
| 35 | "import": "./dist/token/index.js" | |
| 36 | }, | |
| 37 | "./nft": { | |
| 38 | "types": "./dist/nft/index.d.ts", | |
| 39 | "import": "./dist/nft/index.js" | |
| 40 | }, | |
| 41 | "./config": { | |
| 42 | "types": "./dist/config/config.d.ts", | |
| 43 | "import": "./dist/config/config.js" | |
| 44 | }, | |
| 45 | "./types": { | |
| 46 | "types": "./dist/types/index.d.ts", | |
| 47 | "import": "./dist/types/index.js" | |
| 48 | }, | |
| 49 | "./utils": { | |
| 50 | "types": "./dist/utils/index.d.ts", | |
| 51 | "import": "./dist/utils/index.js" | |
| 52 | }, | |
| 53 | "./drivers": { | |
| 54 | "types": "./dist/drivers/index.d.ts", | |
| 55 | "import": "./dist/drivers/index.js" | |
| 56 | }, | |
| 57 | "./storage": { | |
| 58 | "types": "./dist/storage/index.d.ts", | |
| 59 | "import": "./dist/storage/index.js" | |
| 60 | }, | |
| 61 | "./programs": { | |
| 62 | "types": "./dist/programs/index.d.ts", | |
| 63 | "import": "./dist/programs/index.js" | |
| 64 | }, | |
| 65 | "./security": { | |
| 66 | "types": "./dist/security/index.d.ts", | |
| 67 | "import": "./dist/security/index.js" | |
| 68 | }, | |
| 69 | "./staking": { | |
| 70 | "types": "./dist/staking/index.d.ts", | |
| 71 | "import": "./dist/staking/index.js" | |
| 72 | }, | |
| 73 | "./batch": { | |
| 74 | "types": "./dist/batch/index.d.ts", | |
| 75 | "import": "./dist/batch/index.js" | |
| 76 | }, | |
| 77 | "./multisig": { | |
| 78 | "types": "./dist/multisig/index.d.ts", | |
| 79 | "import": "./dist/multisig/index.js" | |
| 80 | }, | |
| 81 | "./governance": { | |
| 82 | "types": "./dist/governance/index.d.ts", | |
| 83 | "import": "./dist/governance/index.js" | |
| 84 | }, | |
| 85 | "./defi": { | |
| 86 | "types": "./dist/defi/index.d.ts", | |
| 87 | "import": "./dist/defi/index.js" | |
| 88 | }, | |
| 89 | "./marketplace": { | |
| 90 | "types": "./dist/marketplace/index.d.ts", | |
| 91 | "import": "./dist/marketplace/index.js" | |
| 92 | }, | |
| 93 | "./indexer": { | |
| 94 | "types": "./dist/indexer/index.d.ts", | |
| 95 | "import": "./dist/indexer/index.js" | |
| 96 | }, | |
| 97 | "./wallets": { | |
| 98 | "types": "./dist/wallets/index.d.ts", | |
| 99 | "import": "./dist/wallets/index.js" | |
| 100 | }, | |
| 101 | "./analytics": { | |
| 102 | "types": "./dist/analytics/index.d.ts", | |
| 103 | "import": "./dist/analytics/index.js" | |
| 104 | }, | |
| 105 | "./fluent": { | |
| 106 | "types": "./dist/fluent/index.d.ts", | |
| 107 | "import": "./dist/fluent/index.js" | |
| 108 | }, | |
| 109 | "./simple-nft": { | |
| 110 | "types": "./dist/simple-nft/index.d.ts", | |
| 111 | "import": "./dist/simple-nft/index.js" | |
| 112 | }, | |
| 113 | "./pnft": { | |
| 114 | "types": "./dist/pnft/index.d.ts", | |
| 115 | "import": "./dist/pnft/index.js" | |
| 116 | }, | |
| 117 | "./events": { | |
| 118 | "types": "./dist/events/index.d.ts", | |
| 119 | "import": "./dist/events/index.js" | |
| 120 | }, | |
| 121 | "./treasury": { | |
| 122 | "types": "./dist/treasury/index.d.ts", | |
| 123 | "import": "./dist/treasury/index.js" | |
| 124 | }, | |
| 125 | "./voting": { | |
| 126 | "types": "./dist/voting/index.d.ts", | |
| 127 | "import": "./dist/voting/index.js" | |
| 128 | }, | |
| 129 | "./i18n": { | |
| 130 | "types": "./dist/i18n/index.d.ts", | |
| 131 | "import": "./dist/i18n/index.js" | |
| 132 | }, | |
| 133 | "./debug": { | |
| 134 | "types": "./dist/debug/index.d.ts", | |
| 135 | "import": "./dist/debug/index.js" | |
| 136 | }, | |
| 33 | 137 | "./*": { |
| 34 | 138 | "import": "./dist/*" |
| 35 | 139 | } |
| @@ -55,13 +159,18 @@ | ||
| 55 | 159 | "lint": "bunx --bun eslint --flag unstable_ts_config .", |
| 56 | 160 | "lint:fix": "bunx --bun eslint --flag unstable_ts_config . --fix", |
| 57 | 161 | "prepublishOnly": "bun --bun run build && bun run compile:all", |
| 58 | "release": "bun publish --access public", | |
| 162 | "release": "bun publish --access public --provenance", | |
| 59 | 163 | "test": "bun test", |
| 164 | "test:binary": "bash scripts/test-binary.sh", | |
| 60 | 165 | "typecheck": "bun --bun tsc --noEmit" |
| 61 | 166 | }, |
| 62 | 167 | "dependencies": { |
| 63 | 168 | "@solana/web3.js": "^1.95.0", |
| 64 | "@solana/spl-token": "^0.4.0" | |
| 169 | "@solana/spl-token": "^0.4.14", | |
| 170 | "chalk": "^5.6.2", | |
| 171 | "ora": "^8.0.0", | |
| 172 | "@inquirer/prompts": "^7.0.0", | |
| 173 | "ts-governance": "workspace:*" | |
| 65 | 174 | }, |
| 66 | 175 | "devDependencies": { |
| 67 | 176 | "@types/node": "^22.0.0", |
| @@ -71,6 +180,6 @@ | ||
| 71 | 180 | "bunfig": "^0.5.0" |
| 72 | 181 | }, |
| 73 | 182 | "lint-staged": { |
| 74 | "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config . --fix" | |
| 183 | "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config --fix" | |
| 75 | 184 | } |
| 76 | 185 | } |
| @@ -0,0 +1,110 @@ | ||
| 1 | { | |
| 2 | "name": "ts-tokens-vscode", | |
| 3 | "displayName": "ts-tokens", | |
| 4 | "description": "VS Code extension for ts-tokens — Solana token and NFT development", | |
| 5 | "version": "0.1.0", | |
| 6 | "publisher": "stacksjs", | |
| 7 | "license": "MIT", | |
| 8 | "engines": { | |
| 9 | "vscode": "^1.85.0" | |
| 10 | }, | |
| 11 | "categories": [ | |
| 12 | "Snippets", | |
| 13 | "Other" | |
| 14 | ], | |
| 15 | "keywords": [ | |
| 16 | "solana", | |
| 17 | "tokens", | |
| 18 | "nft", | |
| 19 | "typescript", | |
| 20 | "web3" | |
| 21 | ], | |
| 22 | "repository": { | |
| 23 | "type": "git", | |
| 24 | "url": "https://github.com/stacksjs/ts-tokens.git", | |
| 25 | "directory": "packages/vscode-extension" | |
| 26 | }, | |
| 27 | "main": "./dist/extension.js", | |
| 28 | "activationEvents": [ | |
| 29 | "workspaceContains:tokens.config.ts", | |
| 30 | "workspaceContains:tokens.config.js" | |
| 31 | ], | |
| 32 | "contributes": { | |
| 33 | "snippets": [ | |
| 34 | { | |
| 35 | "language": "typescript", | |
| 36 | "path": "./snippets/ts-tokens.json" | |
| 37 | }, | |
| 38 | { | |
| 39 | "language": "typescriptreact", | |
| 40 | "path": "./snippets/ts-tokens.json" | |
| 41 | } | |
| 42 | ], | |
| 43 | "problemMatchers": [ | |
| 44 | { | |
| 45 | "name": "ts-tokens", | |
| 46 | "owner": "ts-tokens", | |
| 47 | "fileLocation": "absolute", | |
| 48 | "pattern": [ | |
| 49 | { | |
| 50 | "regexp": "^\\[ERROR\\]\\s+(.+)$", | |
| 51 | "message": 1 | |
| 52 | } | |
| 53 | ], | |
| 54 | "background": { | |
| 55 | "activeOnStart": true, | |
| 56 | "beginsPattern": "^\\[ts-tokens\\]", | |
| 57 | "endsPattern": "^\\[ts-tokens\\] (Done|Error)" | |
| 58 | } | |
| 59 | }, | |
| 60 | { | |
| 61 | "name": "ts-tokens-transaction", | |
| 62 | "owner": "ts-tokens", | |
| 63 | "fileLocation": "absolute", | |
| 64 | "severity": "error", | |
| 65 | "pattern": [ | |
| 66 | { | |
| 67 | "regexp": "^Transaction failed:\\s+(.+)\\s+\\(signature:\\s+(\\S+)\\)", | |
| 68 | "message": 1, | |
| 69 | "code": 2 | |
| 70 | } | |
| 71 | ] | |
| 72 | }, | |
| 73 | { | |
| 74 | "name": "ts-tokens-validation", | |
| 75 | "owner": "ts-tokens", | |
| 76 | "fileLocation": "relative", | |
| 77 | "severity": "warning", | |
| 78 | "pattern": [ | |
| 79 | { | |
| 80 | "regexp": "^Validation error in (.+):(\\d+):\\s+(.+)$", | |
| 81 | "file": 1, | |
| 82 | "line": 2, | |
| 83 | "message": 3 | |
| 84 | } | |
| 85 | ] | |
| 86 | } | |
| 87 | ], | |
| 88 | "taskDefinitions": [ | |
| 89 | { | |
| 90 | "type": "ts-tokens", | |
| 91 | "required": [ | |
| 92 | "command" | |
| 93 | ], | |
| 94 | "properties": { | |
| 95 | "command": { | |
| 96 | "type": "string", | |
| 97 | "description": "The ts-tokens CLI command to run" | |
| 98 | } | |
| 99 | } | |
| 100 | } | |
| 101 | ] | |
| 102 | }, | |
| 103 | "scripts": { | |
| 104 | "build": "bun build ./src/extension.ts --outdir ./dist --target node --format esm", | |
| 105 | "typecheck": "bun --bun tsc --noEmit" | |
| 106 | }, | |
| 107 | "devDependencies": { | |
| 108 | "@types/vscode": "^1.109.0" | |
| 109 | } | |
| 110 | } | |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "vue-tokens", |
| 3 | 3 | "type": "module", |
| 4 | "version": "0.0.0", | |
| 4 | "version": "0.1.0", | |
| 5 | 5 | "description": "Vue 3 components for Solana tokens and NFTs", |
| 6 | 6 | "author": "Chris Breuer <chris@stacksjs.org>", |
| 7 | 7 | "license": "MIT", |
| @@ -44,10 +44,11 @@ | ||
| 44 | 44 | "dist" |
| 45 | 45 | ], |
| 46 | 46 | "scripts": { |
| 47 | "build": "bun build ./src/index.ts --outdir ./dist --target browser", | |
| 47 | "dev": "vite --config vite.config.ts", | |
| 48 | "build": "bun build ./src/index.ts --outdir ./dist --target browser --sourcemap=external", | |
| 48 | 49 | "lint": "bunx --bun eslint .", |
| 49 | 50 | "lint:fix": "bunx --bun eslint . --fix", |
| 50 | "release": "bun publish --access public", | |
| 51 | "release": "bun publish --access public --provenance", | |
| 51 | 52 | "prepublishOnly": "bun --bun run build", |
| 52 | 53 | "test": "bun test", |
| 53 | 54 | "typecheck": "bun --bun tsc --noEmit" |
| @@ -56,12 +57,14 @@ | ||
| 56 | 57 | "ts-tokens": "workspace:*" |
| 57 | 58 | }, |
| 58 | 59 | "peerDependencies": { |
| 59 | "vue": ">=3.3.0", | |
| 60 | "vue": "^3.5.28", | |
| 60 | 61 | "@solana/web3.js": ">=1.87.0" |
| 61 | 62 | }, |
| 62 | 63 | "devDependencies": { |
| 63 | "vue": "^3.4.0", | |
| 64 | "better-dx": "^0.2.5" | |
| 64 | "@vue/test-utils": "^2.4.6", | |
| 65 | "better-dx": "^0.2.5", | |
| 66 | "happy-dom": "^20.6.1", | |
| 67 | "vue": "^3.5.28" | |
| 65 | 68 | }, |
| 66 | 69 | "lint-staged": { |
| 67 | 70 | "*.{js,ts,vue}": "bunx --bun eslint . --fix" |