0.1.16 • Published 4 years ago
sydney-broker-demo v0.1.16
ES6 NPM Package
A repo where Platform Team write NPM packages via ES6 syntax.
It uses:
- Babel
- Jest
- ESLint (with Airbnb and prettier)
Preset added:
- "babel-plugin-transform-object-rest-spread",
How to use
- Install this library in your project
npm install sydney-broker
- Import a package from
sydney-broker
inside your component - Check for examples inside the components README.md file
Commands
npm run check
: Checking the updates of all your dependenciesnpm run lint
: linting via ESLintnpm run clean
: Clean the./lib
foldernpm run build
: Clean and buildmodules
tolib
npm run test
: Run tests viaJest
npm run test -- --coverage
: Generates test coverage report viaJest
npm run example
: Run example to see if the transpiled code works or not.npm run prepublish
: Clean, lint, test then build,npm run pub
: Interactive way to checking, clean, test, bumping version, tag commits, push repo and publish
About travis
Instead of running the default test
command, we will run the npm run prepare
since it including all the phases for the final release.
0.1.16
4 years ago