@smbcloud / cli / commits / df7933a

Update template

Seto Elkahfi committed Apr 7, 2023 at 20:37 UTC df7933a887144893b5f85deb7b5a451ec8b2c6da
4 files changed +36 -1
.github/workflows/release-npm.yml
+3 -1
@@ -105,6 +105,8 @@ jobs:
105 mkdir -p "${node_pkg}/bin"
106 # generate package.json from the template
107 envsubst < package.json.tmpl > "${node_pkg}/package.json"
108 + # generate readme.md from the template
109 + envsubst < README.md.tmpl > "${node_pkg}/README.md"
110 # copy the binary into the package
111 # note: windows binaries has '.exe' extension
112 if [ "${{ matrix.build.OS }}" = "windows-2022" ]; then
@@ -144,7 +146,7 @@ jobs:
146 export release_version="${{ env.RELEASE_VERSION }}"
147
148 # use the tag version
147 - envsubst < package.json.tmpl > "./package.json"
149 + envsubst < ../package-main.json.tmpl > "./package.json"
150
151 yarn install # requires optional dependencies to be present in the registry
152 yarn build
npm/README.md.tmpl new
+3
@@ -0,0 +1,3 @@
1 +# ${node_pkg}
2 +
3 +Not meant to be used directly. Please see [@smbpndk/cli](https://www.npmjs.com/package/@smbpndk/cli).
\ No newline at end of file
npm/package-main.json.tmpl renamed
+29
@@ -1,6 +1,35 @@
1 {
2 "name": "@smbpndk/cli",
3 "version": "${release_version}",
4 + "keywords": [
5 + "smbpndk",
6 + "cli",
7 + "smb",
8 + "pndk",
9 + "smbpndk-cli",
10 + "cloud",
11 + "smbpndk-cloud",
12 + "developer",
13 + "tools",
14 + "web3",
15 + "web3js",
16 + "web3.js",
17 + "web3js",
18 + "bitcoin",
19 + "btc",
20 + "ethereum",
21 + "solana",
22 + "eth",
23 + "sol",
24 + "blockchain",
25 + "smart-contracts",
26 + "dapps",
27 + "dapp",
28 + "dapp-tools",
29 + "dapp-tool",
30 + "dapp-toolkit",
31 + "dapp-toolkit-cli"
32 + ],
33 "bin": {
34 "smb": "lib/index.js"
35 },
npm/package.json.tmpl
+1
@@ -1,6 +1,7 @@
1 {
2 "name": "@smbpndk/${node_pkg}",
3 "version": "${node_version}",
4 + "keywords": ["${node_pkg}","cli","binary","node","nodejs","npm","package","smbpndk"],
5 "os": ["${node_os}"],
6 "cpu": ["${node_arch}"]
7 }
\ No newline at end of file