scottishgovernment / mygov-assets

Web components for Scottish public sector websites
MIT License
10 stars 3 forks source link

No npm package for mygov-assets #2

Closed dagda1 closed 6 years ago

dagda1 commented 7 years ago

I am working on a site that will be using mygov-assets.

I was hoping to be able to use npm to install the assets as a local npm pacakage.

Are there any plans to publish the repo as an npm package?

martiell commented 6 years ago

Hi, mygov-assets is now available on npmjs. See https://www.npmjs.com/package/@scottish-government/mygov-assets

To install, run npm install @scottish-government/mygov-assets

Note that this project does not use semantic versioning. Instead, the versions are based on a CI system build number. Therefore, take care to use npm's npm-shrinkwrap.json or package-lock.json feature, or otherwise ensure that the version you're using is locked down appropriately (for example, specify 1.0.78 in your package.json, rather than ^1.0.78). This will ensure that you don't pick up incompatible updates when building your project.

You should find a tag for each build in this repository.

Feedback on the packaging is welcome.