mobilestacks 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cli/init.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# mobilestacks
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/mobilestacks)
|
|
4
|
+
[](https://www.npmjs.com/package/mobilestacks)
|
|
5
|
+
[](https://nodejs.org/)
|
|
4
6
|
[](https://opensource.org/licenses/MIT)
|
|
5
7
|
|
|
6
8
|
A Hardhat-style development framework for Stacks. Write, test, and deploy Clarity smart contracts with a task-based CLI, local Simnet testing, and a pluggable runtime.
|
package/dist/cli/init.js
CHANGED
|
@@ -82,7 +82,7 @@ STACKS_TESTNET_URL=${answers.testnetUrl}
|
|
|
82
82
|
writeFileIfMissing(sampleContractPath, '(define-public (hello-world)\n (ok "Hello, Stacks!"))\n');
|
|
83
83
|
if (!fs_1.default.existsSync(tasksDir))
|
|
84
84
|
fs_1.default.mkdirSync(tasksDir, { recursive: true });
|
|
85
|
-
writeFileIfMissing(exampleTaskPath, "import { task } from 'mobilestacks';\n\ntask('example', 'An example user task for onboarding')\n .addParam('name', 'Your name', { type: 'string', required: false, defaultValue: 'World' })\n .setAction((args) => {\n return `Hello, ${args.name}! Welcome to mobilestacks.`;\n });\n");
|
|
85
|
+
writeFileIfMissing(exampleTaskPath, "import { task } from 'mobilestacks';\n\ntask('example', 'An example user task for onboarding')\n .addParam('name', 'Your name', { type: 'string', required: false, defaultValue: 'World' })\n .setAction((args: any) => {\n return `Hello, ${args.name}! Welcome to mobilestacks.`;\n });\n");
|
|
86
86
|
console.log('\nCreated:');
|
|
87
87
|
console.log(' - mobilestacks.config.ts (reads secrets from env vars)');
|
|
88
88
|
console.log(' - .env (store your secrets here)');
|