Skylsmoi 98c0f4d95c [https://github.com/tracim/tracim/issues/813] added handling of roles in frontend and apps | 6 лет назад | |
---|---|---|
.. | ||
dist | 6 лет назад | |
i18next.scanner | 6 лет назад | |
src | 6 лет назад | |
.editorconfig | 6 лет назад | |
.gitignore | 6 лет назад | |
README.md | 6 лет назад | |
i18next.scanner.js | 6 лет назад | |
package.json | 6 лет назад | |
webpack.config.js | 6 лет назад |
This project is used to centralize generic components that are used either in Tracim and in Tracim's apps.
While working on Tracim and on tracim_lib, if you change tracim_lib, for the changes to be effective in Tracim you must:
$ npm run build
on tracim_lib$ npm update tracim_lib
in Tracim to get the new version$ npm link
$ npm link tracim_lib
$ npm run build
now, you only have to rebuild tracim_lib and tracim will update it's tracim_lib dependency automatically
Problem: eslint will parse tracim_lib.js since it will come from another repository.
Solution: you must add /* eslint-disable */
at the beginning and /* eslint-enable */
at the end of tracim_lib.js
To automatize this: build tracim_lib with that command:
npm run build && echo '/* eslint-disable */' | cat - dist/tracim_lib.js > temp && mv temp dist/tracim_lib.js && printf '\n/* eslint-enable */\n' >> dist/tracim_lib.js
You can also create an alias for this in your .bashrc