0.2.0 • Published 8 years ago
pubsweet-components v0.2.0
PubSweet Components
This repository is a monorepo of first-party PubSweet components.
Developing your own components
Conventions
Front end components
Package layout
src/contains ES6/JSX/SASS sources (pointed to bypkg.esnext)dist/contains ES5/CSS files in CommonJS module format (pointed to bypkg.main)dist/esm/contains ES5/CSS files in ES module format (pointed to bypkg.module)
All modules forming part of the public API of the component should be exported from the index.js. Deep imports are discouraged (e.g. package-name/some/file).
Backend components
Should specify a minimum required version of Node and have no transpiling.
Publishing
Be sure to switch to a separate branch for Lerna releases, as the master branch is protected from push, so your releases will fail.
0.2.0
8 years ago