A shareable Babel preset for JS development.
npm install --save-dev @babel/cli babel-preset-iamnewton
In your project package.json
add the following:
{
"babel": {
"presets": [ "iamnewton" ]
}
}
Our current preset includes the following presets:
babel-preset-env
: used in conjunction with our browserslist-config
to transpile any JS required by our supported browsers
And the current plugins include the following:
babel-plugin-transform-class-properties
: transforms any class properties
babel-plugin-transform-object-rest-spread
: transforms any rest or spread operators on objects
All modules, libraries, or frameworks use SemVer for its versioning providing us an opt-in approach to releases. This means we add a version number according to the spec, as you see below. So rather than force developers to consume the latest and greatest, they can choose which version to consume and test any newer ones before upgrading. Please the read the spec as it goes into further detail.
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes.
- MINOR version when you add functionality in a backward-compatible manner.
- PATCH version when you make backward-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.