When installed copies global lint rules to your project, next to node_modules folder
npm install portbase-global-assetsWhen master branch is updated, the package will be published to npm.
For that to work it's needed to make sure that package version is unique.
Hence every pull request to master should increase the version in package.json otherwise build will fail.
To upgrade version and commit it, you can run one of the following commands:
npm version patch
npm version minor
npm version major
This repo has several applications:
- to store consolidated shared static files (like css, images) of all the Portbase in a single place (/assets folder),
- to store tools which help to apply shared code style to project aseets (/tools folder),
- to share common code style configs (.stylelintrc, browserslist, in future .jshintrc) with other projects.
When current repo is installed as an npm dependency:
"devDependencies": {
"portbase-global-assets": "latest"
}
A "postinstall" script is executed from the package.json file. It executes postinstall.sh script which copies configs
to be next to node_modules folder.
The goal is to have all the projects needing these configs to exclude configs from their codebase, ignore them
and install portbase-global-assets, which will install current version of configs.
Please note that changes to config files here will be propagates to all the other projects.
See 'postinstall.sh' for the list of config files to be shared.