@workindia/create-next-starterkit
v2.0.0
Published
An npm based quickstart app for WI-Next-StarterKit
Readme
Create WI-Next-StarterKit
Quick start for WI-Next-StarterKit. Get up and running in one command.
Getting Started
Using npx
# Create with latest version
npx @workindia/create-next-starterkit new-site
# Create with specific version
npx @workindia/create-next-starterkit new-site --version 0.1.0
cd new-site
npm install
npm startUsing npm init
# Create with latest version
npm init @workindia/create-next-starterkit new-site
# Create with specific version
npm init @workindia/create-next-starterkit new-site --version 0.1.0
cd new-site
npm install
npm startUsing yarn
# Create with latest version
yarn create @workindia/create-next-starterkit new-site
# Create with specific version
yarn create @workindia/create-next-starterkit new-site --version 0.1.0
cd new-site
yarn install
yarn startRequirements
npm: v5.2+ [Tested with node (23.6.1 & npm 10.9.2)]
If nvm is installed, simply run following to install & run appropriate node version.
nvm install
nvm useCONTRIBUTING
Setting Up a Local Copy
- Clone the repo with
git clone https://github.com/workindia/create-wi-next-starterkit.git - Run
npm installin the rootcreate-wi-next-starterkitfolder. - Run
npm linkto make npm run local copy instead of downloading from registry - Now you can use
npm init @workindia/create-next-starterkitandnpx @workindia/create-next-starterkit
note: you can use npx @workindia/create-next-starterkit ./out/example from create-wi-next-starterkit without running npm link
also its possible to run directly NodeJS entry point node index.js ./out/example or npm start
./out is git ignored folder, so you should use this folder for tests.
If you want to try out the end-to-end flow with the global CLI, you can do this too:
npx @workindia/create-next-starterkit ./out/new-site
cd new-site
npm install
npm startTests
Tests are written using jest and located in tests/test.js
Run npm test
Run coverage reports npm run coverage
Develope & Publish
The package is published on public npm repository
Create Pull Request
- Submit PR to the
developbranch - Checklist before submission:
- ✅ No sensitive data or credentials committed
- ✅
CHANGELOG.mdupdated with changes - ✅ All tests passing (
npm test)
- Submit PR to the
Code Review
- PR reviewed by maintainers
- Address any feedback
- Merge approved changes
Version Update
- Maintainer updates:
CHANGELOG.mdpackage.jsonversion
- Merge changes to main
- Maintainer updates:
Tag Release
chmod +x scripts/tag.sh .scripts/tag.shCreate Release
- Create new release on GitHub
- Include release notes from CHANGELOG
Automated Publishing
- GitHub Actions pipeline triggers automatically
- Package published to npm registry
