@aptos-scp/scp-component-store-selling-features-domain-model
v2.27.0
Published
This component library provides the common components to handle the coordination of processing the business events from the UI.
Maintainers
Keywords
Readme
scp-component-store-selling-features-domain-model
Establish environment variables (workstation installation)
Copy the .env.example file with default/sample environment variables for development to .env. Examine the variables and edit as necessary/appropriate for your workstation environment.
cp .env.example .envInstallation
First, make sure you are logged-in to the private NPM registry:
npm adduser --registry=https://registry.npmjs.org/ --scope=@aptos-scpThen install the dependency packages:
npm installBuilding the component library
First, make sure you've followed the instructions in the Installation section so you're logged into the private NPM registry and have installed dependency packages.
Then, to build the component library:
$ npm run buildYou can then also run tests and coverage:
$ npm run test
$ npm run test:ciDebugging
To setup a mocha test configuration in WebStorm, do the following:
- Open the project in WebStorm.
- At the top right of the project window, choose Edit Configurations....
- Click the "+" symbol to add a new configuration, and choose Mocha.
- Select the appropriate node interpreter. If using NVM, this should be something like, ~/.nvm/versions/node/v10.15.3/bin/node.
- Make sure the project root is set as the working directory.
- Set Extra Mocha Options to
--no-opts --no-config(defensive - to ensure use of only package.json options). - Set Test file patterns to
test-js/**/*.spec.js. - Save the configuration, then run or debug.
Publishing changes
To publish a new version to the NPM registry:
Do these steps only on the master branch -- that is, not on a feature branch. Feature branches should be merged to master before these steps.
Commit and push the changes (on master).
Update the version of the package using one of the following:
npm version patchor
npm version minoror one of the other variations (see npm-version)
Push the version commit and all version tags to trigger the CircleCI build that will build and publish the updated component:
git push origin master --follow-tagsor
From WebStorm or IntelliJ make sure that the Push Tags check-box is checked, when you push changes.
When the build in Circle CI sees the version tag, it will publish the changes to the NPM repository.
License
Please see LICENSE.md.
