1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00
Foris JS library is a set of components and utils for reForis and plugins.
Go to file
Bogdan Bodnar 71beeb46f1
Bump v4.5.1.
* Add initial data to ForisForm children.
 * Update .pot file.
2020-05-07 16:34:33 +02:00
docs Core review docs fixes. 2019-09-30 11:26:06 +02:00
scripts Wi-Fi settings form 2020-01-09 11:25:29 +01:00
src Add initial form data to children of the ForisForm. 2020-05-07 16:00:02 +02:00
translations Update translations (.pot). 2020-05-07 16:13:03 +02:00
.eslintignore Extract the library from reforis. 2019-08-21 17:04:26 +02:00
.eslintrc.js Shared lint configs 2019-11-13 10:11:11 +00:00
.gitignore Added virtual environment and packages required for translations. 2019-11-14 11:28:28 +01:00
.gitlab-ci.yml Flat structure of published package 2019-11-01 09:28:28 +00:00
.weblate Add weblate config file. 2020-02-20 17:19:07 +01:00
babel.cfg Updated translation messages after moving WiFi form. 2020-01-13 16:10:19 +01:00
babel.config.js Fix for exposed libraries. 2020-01-09 16:33:25 +01:00
jest.config.js Moved moment-timezone to devDependencies. 2020-01-09 17:46:15 +01:00
Makefile Wi-Fi settings form 2020-01-09 11:25:29 +01:00
package-lock.json Bump v4.5.1. 2020-05-07 16:34:33 +02:00
package.json Bump v4.5.1. 2020-05-07 16:34:33 +02:00
README.md Add warning about using <ForisForm /> component in plugins. 2020-01-17 13:15:46 +01:00
requirements.txt Added virtual environment and packages required for translations. 2019-11-14 11:28:28 +01:00
styleguide.config.js Download docs css via NPM. 2019-09-30 11:27:13 +02:00

foris-js

Set of utils and common React elements for reForis.

Publishing package

Beta versions

Each commit to dev branch will result in publishing a new version of library tagged beta. Versions names are based on commit SHA, e.g. foris@0.1.0-beta.d9073aa4.

Preparing a release

  1. Crete a merge request to dev branch with version bumped
  2. When merging add [skip ci] to commit message to prevent publishing unnecessary version
  3. Create a merge request from dev to master branch
  4. New version should be published automatically

Manually managed dependencies

Because of <ForisForm /> component it's required to use exposed ReactRouterDOM object from react-router-dom library. ReactRouterDOM is exposed by reForis. It can be done by following steps:

  1. Setting react-router-dom as peerDependencies and devDependencies in package.json.
  2. Adding the following rules to externals in webpack.conf.js of the plugin:
externals: {
    ...
    "react-router-dom": "ReactRouterDOM",
}