bootstrap-timepicker icon indicating copy to clipboard operation
bootstrap-timepicker copied to clipboard

Is there a CSS file for this, seems to be missing

Open BrewDawg opened this issue 11 years ago • 16 comments

The demo includes it, but it's not there

BrewDawg avatar Oct 24 '15 23:10 BrewDawg

Its included in the download zip.

https://github.com/jdewit/bootstrap-timepicker/releases

MrGeneric avatar Oct 26 '15 14:10 MrGeneric

Yes, you can clone the repo and build the project which will produce minified js and css files, or you can download one of the official zipped releases. Does that help? Shall I close this?

Thank you, @MrGeneric.

mrhota avatar Nov 07 '15 14:11 mrhota

For use with npm it would be greatly appreciated if you provide a dist/ directory containing minified versions of both the javascript and the compiled css. That makes including this in applications way less complicated

jaapz avatar Nov 10 '15 14:11 jaapz

see #301. Build artifacts do not belong in version control. I know next to nothing about npm. Can it not download release archives attached to a version tag? If not, I'd say that's worthy of an NPM feature request.

If you know of some alterations I can make to the package.json file to make this easier on people, I'm happy to accept a PR.

mrhota avatar Nov 11 '15 01:11 mrhota

For a package to exist on npm, you don't need to have build artifacts in your source control. You can simply build the artifacts locally, and then run npm publish. The npm tool will then also push the build artifacts to the npm registry. This is basically the same as creating a release tar file, with the extra benefit of it being on a package registry used by lots and lots of people.

Npm can also install tar files directly, but only if they have a package.json file in it, which describes the package and it's important files. Also I am not sure it could actually install the release tarfiles provided with this project because they are released as tarbombs.

jaapz avatar Nov 16 '15 09:11 jaapz

Yikes! Thanks for the tarbomb info. I messed that up.

mrhota avatar Nov 19 '15 04:11 mrhota

@jaapz is there anything special I need to do before I run npm publish? Do I need an npm account or something?

mrhota avatar Nov 19 '15 04:11 mrhota

I updated the v0.5.0 and v0.5.1 releases with tarballs instead of tarbombs. The .tar.gz and .zip files contain package.json.

mrhota avatar Nov 19 '15 05:11 mrhota

@mrhota great! I think the only thing you need to do to publish is to create a user on npmjs.org. Afaik the npm publish command should guide you through the process.

You should make sure that the correct files are pushed to the registery, this is the documentation about that: https://docs.npmjs.com/files/package.json#files

If you need any help with this don't hesitate to ask then we can look at it together.

jaapz avatar Nov 19 '15 11:11 jaapz

OK, I screwed up the npm stuff since someone else had published this project first. He has since unpublished it, but it necessitated a version bump from v0.2.6 -> v0.2.7 before I could publish what is essentially that same version. I also published v0.3.0, v0.5.0, and v0.5.1. Release tags back to v0.2.6 also have release tarballs and zips attached to them.

I'm closing this for now.

mrhota avatar Nov 20 '15 06:11 mrhota

See #310 for my NPM screw-up.

mrhota avatar Nov 20 '15 06:11 mrhota

@mrhota thanks for the npm publish, I am using version 0.5.1 now and it's working fine!

jaapz avatar Nov 20 '15 08:11 jaapz

@mrhota scratch my previous comment, it looks like the built files are not yet up on npm. Could you make sure the built css is correctly pushed to npm and the "main" field is correctly set in the package.json? The 0.5.1 version on npm currently does not have both.

jaapz avatar Nov 21 '15 11:11 jaapz

Looks like npm publish does not push files that are in .gitignore. So that's probably why all build artifacts are not on npm yet?

jaapz avatar Nov 21 '15 12:11 jaapz

if you know how package.json should be changed, a PR would be appreciated. I don't have much patience for npm of late. On Nov 21, 2015 6:10 AM, "Jaap Broekhuizen" [email protected] wrote:

Looks like npm publish does not push files that are in .gitignore. So that's probably why all build artifacts are not on npm yet?

— Reply to this email directly or view it on GitHub https://github.com/jdewit/bootstrap-timepicker/issues/302#issuecomment-158634425 .

mrhota avatar Nov 21 '15 13:11 mrhota

@mrhota no problem, I will check it out and submit a PR :)

jaapz avatar Nov 22 '15 15:11 jaapz