@liolocs/powerup-hello-world
All powerups
A powerup useful for testing
v1.1.0MITsingle-use
Terminal window
pup install @liolocs/powerup-hello-worldVariables
No variables required.
Steps
- createindex.tsTemplate: src/index.ts
- createpackage.jsonTemplate: src/packageJson.ts
Template files
export default function (variables: Record<string, string>): string {
return `console.log('Hello World!');`;
}export default function(variables: Record<string, string>): string {
const { name, description } = variables;
const pkg = {
name,
version: "1.0.0",
description,
type: "module",
scripts: {
dev: "npx tsx index.ts",
},
};
return JSON.stringify(pkg, null, 2) + "\n";
}