Feel free to contribute to this project. Any sort of contributions are always welcome and are greatly appreciated.
Visit the issue tracker to find a list of open issues that need attention.
Fork, then clone the repo:
git clone https://github.com/your-username/soya-next.git
cd soya-next
To get you started real quick, run the following:
npm install
It will install external dependencies, build all packages, and link local dependencies.
To build the module, run the following:
npm run build
To watch for code changes, run the following:
npm run watch
To test your code, run the following:
npm test
This codebase follows Traveloka JavaScript Style Guide and is enforced using marlint.
To lint your code, run the following:
npm run lint
Open lerna.json
and update it with the following:
{
"lerna": "2.0.0",
"npmClient": "yarn",
"commands": {
"bootstrap": {
- "scope": [
+ "ignore": [
"soya-next*"
]
}
},
"packages": [
"packages/*",
"examples/*"
],
"version": "0.2.11"
}
Then, run the following:
lerna bootstrap
It will install external dependencies and link local dependencies.
To manually link the local repositories to any example app, run the following on each example directory:
npm link soya-next
npm link soya-next-scripts
npm link soya-next-server
To build and watch for code changes, run the following on each example directory:
npm start