Scaffold Avail Nexus demo apps with framework + auth + widgets choices.
# 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-familyconnect# Install dependencies
bun install
# Run locally
bun run dev
# Build
bun run build
# Test locally
pnpm dlx ./create-liquid-apps-1.0.0.tgz- 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
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:release
-
The 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.
- 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
- 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