Skip to content
Snippets Groups Projects
Jure Triglav's avatar
Jure authored
 - pubsweet@2.1.5
 - pubsweet-client@2.2.6
 - @pubsweet/coko-theme@0.1.0
 - pubsweet-components@4.2.1
 - @pubsweet/db-manager@1.0.5
 - pubsweet-server@2.0.5
 - @pubsweet/styleguide@1.2.1
 - @pubsweet/ui@3.3.1
 - pubsweet-component-form-group@1.1.5
 - pubsweet-component-password-reset-frontend@1.0.8
 - pubsweet-component-posts-manager@1.0.9
 - pubsweet-component-signup@1.0.8
 - pubsweet-component-teams-manager@1.0.8
 - pubsweet-component-xpub-app@0.0.7
 - xpub-connect@0.0.7
 - pubsweet-component-xpub-dashboard@0.1.1
 - xpub-edit@0.0.7
 - pubsweet-component-xpub-find-reviewers@0.0.7
 - pubsweet-component-xpub-manuscript@0.0.7
 - pubsweet-component-xpub-review@0.1.1
 - xpub-styleguide@0.0.7
 - pubsweet-component-xpub-submit@0.0.7
cfde3eb0
Forked from pubsweet / pubsweet
2120 commits behind the upstream repository.

PubSweet Components

Developing your own components

Conventions

Front end components

Package layout

  • src/ contains ES6/JSX/SASS sources (pointed to by pkg.esnext)
  • dist/ contains ES5/CSS files in CommonJS module format (pointed to by pkg.main)
  • dist/esm/ contains ES5/CSS files in ES module format (pointed to by pkg.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.