0.0.4 • Published 7 years ago

portbase-global-assets v0.0.4

Weekly downloads
8
License
-
Repository
-
Last release
7 years ago

Portbase global assets

Development

When 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

Purpose

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.

Sharing of the style lint configs

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.

Making changes to config files

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.

0.0.4

7 years ago

0.0.3

7 years ago