git clone https://github.com/NathanWalker/nativescript-theme-seed.git nativescript-theme-
[your-custom-name-here]cd nativescript-theme-[your-custom-name-here]
npm run postclone
- Get to work.
The seed is prepared to allow you to test and try out your theme via the integrated app setup which is all set with several component pages you can test your custom theme against.
Additionally it provides a proper .gitignore
to keep GitHub tidy as well as .npmignore
to ensure everyone is happy when you publish your theme via npm.
- Make changes to theme
SASS
files - Make changes in
app
that would test those changes out tns emulate ios
ortns run android
- Or use livesync:
tns livesync --emulator --watch
IMPORTANT: Always make sure you have run the app in iOS or Android to verify any changes as well as ensure the latest css
has been built before doing the following:
- Bump version in
nativescript-theme-[your-custom-name-here].json
- Adjust
nativescript-theme-[your-custom-name-here].md
if any changes to the publishedREADME
are needed.
npm run builder
cd nativescript-theme-[your-custom-name-here]
npm publish
IMPORTANT: Never modify the contents of nativescript-theme-[your-custom-name-here]
folder directly. The builder creates that everytime and any change you make there will be overwritten.
Setup changelog generation:
npm install -g conventional-changelog-cli
Generate changelog workflow:
- Make changes
- Commit those changes - using these conventions.
- Make sure Travis turns green
- Bump version in
package.json
andnativescript-theme-[your-custom-name-here].json
conventional-changelog -p angular -i CHANGELOG.md -s
- Commit package.json and CHANGELOG.md files
- Tag
- Push
git clone https://github.com/NathanWalker/nativescript-theme-seed
cd nativescript-theme-seed
// Improve!