create-liquid-apps
v1.0.5
Published
Scaffold Avail Nexus demo apps with framework + auth + widgets choices
Maintainers
Readme
create-liquid-apps
Scaffold Avail Nexus demo apps with framework + auth + widgets choices.
Usage
# Using pnpm
pnpx create-liquid-apps
# Using npm
npx create-liquid-apps
# Using bun
bunx create-liquid-apps
# With options
pnpx create-liquid-apps my-app --framework next --widgets nexus-core --auth wagmi-familyconnectDevelopment
# Install dependencies
bun install
# Run locally
bun run dev
# Build
bun run build
# Test locally
pnpm dlx ./create-liquid-apps-1.0.0.tgzPublishing
Manual Publishing
- Update version in
package.json - Build the package:
bun run build - Test locally:
npm pack pnpx ./create-liquid-apps-1.0.0.tgz --help - Login to npm (if not already):
npm login - Publish:
npm publish
Automated Publishing with GitHub Actions
This project includes a GitHub Action workflow that automatically publishes to npm when pushing to the release branch:
Create a new release commit with the version in the commit message:
# Update your code, then commit with version in the message git commit -m "Release version 1.2.3"Push to the release branch:
git push origin main:releaseThe GitHub Action will:
- Extract the version from your commit message (format: 1.2.3 or v1.2.3)
- Update the package.json version
- Build the package
- Publish to npm
Note: You need to add an NPM_TOKEN secret to your GitHub repository settings. This token must have publish permissions for your npm account.
First-time publish notes
- Make sure the package name
create-liquid-appsis available on npm - Update the
repositoryURL inpackage.jsonwith your actual GitHub repo - Consider adding
--access publicif publishing to a scoped package
How it works
- The CLI uses
#!/usr/bin/env nodeshebang to be executable - Built with Bun but targets Node.js for compatibility
- The
binfield inpackage.jsonmaps the command name to the executable - The
filesfield ensures only necessary files are published prepublishOnlyscript automatically builds before publishing
