UNPKG

create-bookmarkleet

Version:

Create a new bookmarkleet project.

31 lines (26 loc) 611 B
#!/usr/bin/env node const create = require("base-create"); create({ devDependencies: ["@bookmarkleet/cli"], package: { main: undefined, description: "Bookmarklets created with bookmarkleet (https://bookmarkleet.com).", scripts: { start: "bookmarkleet", }, keywords: ["bookmarkleet", "bookmarklets"], }, files: [ { path: "README.md", contents: ({ nameWithScope }) => `# ${nameWithScope} Created with [bookmarkleet](https://bookmarkleet.com). `, }, { path: "src/hi.js", contents: "alert('hi from bookmarkleet!');\n", }, ], });