- /cartridges - Cartridges used in your project (Use https://plugins.jenkins.io/osf-builder-suite-for-sfcc-deploy to deploy them)
- /metadata - Metadata used in your project (Use https://plugins.jenkins.io/osf-builder-suite-xml-linter to lint it in your PRs and https://plugins.jenkins.io/osf-builder-suite-for-sfcc-data-import to deploy it)
- /xsds - XSD files used to lint the metadata files
- NodeJS version >=8.14.0 (to install and manage NodeJS see https://github.com/coreybutler/nvm-windows for Windows or https://github.com/creationix/nvm for MacOS/Linux)
- Yarn (install it globally with
npm install --global yarn)
- Clone this repository
- Run
yarn installto install all of the local dependancies - Run
yarn run webpack:devto start watching for file changes and compile JS and SCSS files when that happens - Run
yarn run lintto run all the code linters or run:yarn run lint:js-serverto run only the server side JS linteryarn run lint:js-clientto run only the client side JS linteryarn run lint:scssto run only the SCSS linter
Visual Studio Code is recommended to be used along with the following plugins:
- SonarLint - To help you detect and fix quality issues as you write code. Like a spell checker, SonarLint squiggles flaws so they can be fixed before committing code.
- Prettier - To help you easily format and prettify your code (make sure you set
"prettier.tabWidth": 4before you start using it) - Document This - To help you with writing JSDoc for your code
- CMD + Shift + P -> Format Document
- Select the text you want to Prettify and CMD + Shift + P -> Format Selection
- Path Intellisense - To help you autocomplete paths and filenames
- vscode-icons - To make your VSC explorer a bit nicer
- Create a feature branch from the develop branch (
feature/TASK-NR) - Make sure all your comits have proper commit message (
[TASK-NR] Commit description) - When creating your pull reqeust make sure it has:
- A proper title (use the following naming convention
[TASK-NR] Pull request title) - A brief description of what the pull request does
- (optional) Screen shots
- A proper title (use the following naming convention
- Your code should pass the automation process:
- Lint your code:
yarn run lintshould run withouth errors - Build your code:
yarn run webpack:devshould run withouth errors
- Lint your code: