@calibur/skr-template
Advanced tools
Comparing version 0.0.29-alpha.0 to 0.0.30-alpha.0
{ | ||
"name": "hardhat", | ||
"version": "1.0.0", | ||
"description": "", | ||
"name": "<%= name.paramCase %>", | ||
"version": "0.0.0", | ||
"description": "this repository generated by @calibur/skr-cli", | ||
"scripts": { | ||
@@ -9,3 +9,3 @@ "dev": "vite", | ||
"serve": "vite preview", | ||
"deploy": "npm run test && npm run compile && hardhat deploy:Token --name 'NFT' && npm run clean", | ||
"deploy": "npm run test && npm run compile && hardhat deploy:Token --name 'NFT'", | ||
"test": "npm run typechain && npm run test:unit && npm run test:coverage", | ||
@@ -25,47 +25,44 @@ "test:unit": "hardhat test", | ||
"devDependencies": { | ||
"@nomiclabs/hardhat-ethers": "^<%= @nomiclabs/hardhat-ethers %>", | ||
"@nomiclabs/hardhat-etherscan": "^<%= @nomiclabs/hardhat-etherscan %>", | ||
"@nomiclabs/hardhat-truffle5": "^<%= @nomiclabs/hardhat-truffle5 %>", | ||
"@nomiclabs/hardhat-waffle": "^<%= @nomiclabs/hardhat-waffle %>", | ||
"@nomiclabs/hardhat-web3": "^<%= @nomiclabs/hardhat-web3 %>", | ||
"@rollup/plugin-strip": "^<%= @rollup/plugin-strip %>", | ||
"@typechain/ethers-v5": "^<%= @typechain/ethers-v5 %>", | ||
"@typechain/hardhat": "^<%= @typechain/hardhat %>", | ||
"@types/chai": "^<%= @types/chai %>", | ||
"@types/mocha": "^<%= @types/mocha %>", | ||
"@types/node": "^<%= @types/node %>", | ||
"@typescript-eslint/eslint-plugin": "^<%= @typescript-eslint/eslint-plugin %>", | ||
"@typescript-eslint/parser": "^<%= @typescript-eslint/parser %>", | ||
"@vitejs/plugin-vue": "^<%= @vitejs/plugin-vue %>", | ||
"chai": "^<%= chai %>", | ||
"cross-env": "^<%= cross-env %>", | ||
"dotenv": "^<%= dotenv %>", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^<%= eslint-config-prettier %>", | ||
"ethereum-waffle": "^<%= ethereum-waffle %>", | ||
"ethers": "^<%= ethers %>", | ||
"hardhat": "^<%= hardhat %>", | ||
"hardhat-gas-reporter": "^<%= hardhat-gas-reporter %>", | ||
"prettier": "^<%= prettier %>", | ||
"prettier-plugin-solidity": "^<%= prettier-plugin-solidity %>", | ||
"sass": "^<%= sass %>", | ||
"shx": "^<%= shx %>", | ||
"solc": "^<%= solc %>", | ||
"solhint": "^<%= solhint %>", | ||
"solhint-plugin-prettier": "^<%= solhint-plugin-prettier %>", | ||
"solidity-coverage": "^<%= solidity-coverage %>", | ||
"ts-node": "^<%= ts-node %>", | ||
"typechain": "^<%= typechain %>", | ||
"typescript": "^<%= typescript %>", | ||
"vite": "^<%= vite %>", | ||
"vite-plugin-components": "^<%= vite-plugin-components %>", | ||
"vite-plugin-host": "^<%= vite-plugin-host %>", | ||
"vite-plugin-style-import": "^<%= vite-plugin-style-import %>", | ||
"vue-tsc": "^<%= vue-tsc %>", | ||
"web3": "^<%= web3 %>" | ||
"@nomiclabs/hardhat-ethers": "<%= @nomiclabs/hardhat-ethers %>", | ||
"@nomiclabs/hardhat-etherscan": "<%= @nomiclabs/hardhat-etherscan %>", | ||
"@nomiclabs/hardhat-waffle": "<%= @nomiclabs/hardhat-waffle %>", | ||
"@rollup/plugin-strip": "<%= @rollup/plugin-strip %>", | ||
"@typechain/ethers-v5": "<%= @typechain/ethers-v5 %>", | ||
"@typechain/hardhat": "<%= @typechain/hardhat %>", | ||
"@types/chai": "<%= @types/chai %>", | ||
"@types/mocha": "<%= @types/mocha %>", | ||
"@types/node": "<%= @types/node %>", | ||
"@typescript-eslint/eslint-plugin": "<%= @typescript-eslint/eslint-plugin %>", | ||
"@typescript-eslint/parser": "<%= @typescript-eslint/parser %>", | ||
"@vitejs/plugin-vue": "<%= @vitejs/plugin-vue %>", | ||
"chai": "<%= chai %>", | ||
"cross-env": "<%= cross-env %>", | ||
"dotenv": "<%= dotenv %>", | ||
"eslint": "7.32.0", | ||
"eslint-config-prettier": "<%= eslint-config-prettier %>", | ||
"ethereum-waffle": "<%= ethereum-waffle %>", | ||
"ethers": "<%= ethers %>", | ||
"hardhat": "<%= hardhat %>", | ||
"hardhat-gas-reporter": "<%= hardhat-gas-reporter %>", | ||
"prettier": "<%= prettier %>", | ||
"prettier-plugin-solidity": "<%= prettier-plugin-solidity %>", | ||
"sass": "<%= sass %>", | ||
"shx": "<%= shx %>", | ||
"solc": "<%= solc %>", | ||
"solhint": "<%= solhint %>", | ||
"solhint-plugin-prettier": "<%= solhint-plugin-prettier %>", | ||
"solidity-coverage": "<%= solidity-coverage %>", | ||
"ts-node": "<%= ts-node %>", | ||
"typechain": "<%= typechain %>", | ||
"typescript": "<%= typescript %>", | ||
"vite": "<%= vite %>", | ||
"vite-plugin-components": "<%= vite-plugin-components %>", | ||
"vite-plugin-host": "<%= vite-plugin-host %>", | ||
"vite-plugin-style-import": "<%= vite-plugin-style-import %>", | ||
"vue-tsc": "<%= vue-tsc %>" | ||
}, | ||
"dependencies": { | ||
"normalize.css": "^<%= normalize.css %>", | ||
"vue": "^<%= vue@next %>" | ||
"normalize.css": "<%= normalize.css %>", | ||
"vue": "<%= vue@next %>" | ||
} | ||
} |
import fs from 'fs' | ||
import { join } from 'path' | ||
import { task } from 'hardhat/config' | ||
import { Artifacts } from 'hardhat/types' | ||
import { Token, Token__factory } from '../../typechain' | ||
task('deploy:Token') | ||
.addParam('name') | ||
.setAction(async (TaskArguments, { config, ethers, network, run }) => { | ||
.addOptionalParam('name', 'the token name', 'echo') | ||
.setAction(async (TaskArguments, { artifacts, config, ethers, network, run }) => { | ||
const [deployer] = await ethers.getSigners() | ||
@@ -18,3 +19,3 @@ | ||
console.log('Token deployed to: ', token.address) | ||
await saveFrontendFiles(token) | ||
await saveFrontendFiles(token, artifacts) | ||
@@ -29,3 +30,3 @@ if (network.name !== 'hardhat' && config.etherscan.apiKey) { | ||
const saveFrontendFiles = async (token: Token) => { | ||
const saveFrontendFiles = async (token: Token, artifacts: Artifacts) => { | ||
const contractsDir = join(process.cwd(), '/frontend/contracts') | ||
@@ -42,3 +43,2 @@ | ||
const artifacts = (await import('hardhat')).artifacts | ||
const TokenArtifact = artifacts.readArtifactSync('Token') | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "@calibur/skr-template", | ||
"version": "0.0.29-alpha.0", | ||
"version": "0.0.30-alpha.0", | ||
"author": "falstack <icesilt@outlook.com>", | ||
"license": "MIT", | ||
"gitHead": "a2a725e70d6421b112182fa6eb61353e4498b308" | ||
"gitHead": "a0f7e111dc7d20555d92079b7bd8a2ae71036f77" | ||
} |
@@ -5,2 +5,3 @@ { | ||
"version": "0.0.0", | ||
"description": "this repository generated by @calibur/skr-cli", | ||
"main": "./dist/<%= name.paramCase %>.umd.js", | ||
@@ -15,15 +16,15 @@ "module": "./dist/<%= name.paramCase %>.es.js", | ||
"dependencies": { | ||
"vue": "^<%= vue@next %>" | ||
"vue": "<%= vue@next %>" | ||
}, | ||
"devDependencies": { | ||
"@vitejs/plugin-vue": "^<%= @vitejs/plugin-vue %>", | ||
"@vue/compiler-sfc": "^<%= vue@next %>", | ||
"@vue/server-renderer": "^<%= vue@next %>", | ||
"normalize.css": "^<%= normalize.css %>", | ||
"sass": "^<%= sass %>", | ||
"typescript": "^<%= typescript %>", | ||
"vite": "^<%= vite %>", | ||
"vite-plugin-host": "^<%= vite-plugin-host %>", | ||
"vue-tsc": "^<%= vue-tsc %>" | ||
"@vitejs/plugin-vue": "<%= @vitejs/plugin-vue %>", | ||
"@vue/compiler-sfc": "<%= vue@next %>", | ||
"@vue/server-renderer": "<%= vue@next %>", | ||
"normalize.css": "<%= normalize.css %>", | ||
"sass": "<%= sass %>", | ||
"typescript": "<%= typescript %>", | ||
"vite": "<%= vite %>", | ||
"vite-plugin-host": "<%= vite-plugin-host %>", | ||
"vue-tsc": "<%= vue-tsc %>" | ||
} | ||
} |
@@ -13,14 +13,14 @@ { | ||
"devDependencies": { | ||
"@types/node": "^<%= @types/node %>", | ||
"@typescript-eslint/eslint-plugin": "^<%= typescript %>", | ||
"@typescript-eslint/parser": "^<%= typescript %>", | ||
"@vue/eslint-config-prettier": "^<%= @vue/eslint-config-prettier %>", | ||
"@vue/eslint-config-typescript": "^<%= @vue/eslint-config-typescript %>", | ||
"eslint": "^<%= eslint %>", | ||
"eslint-plugin-prettier": "^<%= eslint-plugin-prettier %>", | ||
"eslint-plugin-vue": "^<%= eslint-plugin-vue %>", | ||
"lerna": "^<%= lerna %>", | ||
"prettier": "^<%= prettier %>", | ||
"typescript": "^<%= typescript %>" | ||
"@types/node": "<%= @types/node %>", | ||
"@typescript-eslint/eslint-plugin": "<%= typescript %>", | ||
"@typescript-eslint/parser": "<%= typescript %>", | ||
"@vue/eslint-config-prettier": "<%= @vue/eslint-config-prettier %>", | ||
"@vue/eslint-config-typescript": "<%= @vue/eslint-config-typescript %>", | ||
"eslint": "<%= eslint %>", | ||
"eslint-plugin-prettier": "<%= eslint-plugin-prettier %>", | ||
"eslint-plugin-vue": "<%= eslint-plugin-vue %>", | ||
"lerna": "<%= lerna %>", | ||
"prettier": "<%= prettier %>", | ||
"typescript": "<%= typescript %>" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47487