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-brokerinside 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./libfoldernpm run build: Clean and buildmodulestolibnpm run test: Run tests viaJestnpm run test -- --coverage: Generates test coverage report viaJestnpm 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