UNPKG

jetpack-compose-cli

Version:

A Boilerplate code generator for creating Android project. Using fully Kotlin and MVI pattern that refer to Android Jetpack. Because Im tired to setup Hilt and other stuffs everytime initializing a new project.

23 lines (16 loc) 545 B
#!/usr/bin/env node import path from "node:path"; import minimist from "minimist"; import { Plop, run } from "plop"; const args = process.argv.slice(2); const argv = minimist(args); import { dirname } from "node:path"; import { fileURLToPath } from "node:url"; const __dirname = dirname(fileURLToPath(import.meta.url)); const ppath = __dirname.replace("/source", "") Plop.prepare({ cwd: ppath, configPath: path.join(ppath, 'plopfile.js'), preload: argv.preload || [], completion: argv.completion }, env => Plop.execute(env, run));