tenuki icon indicating copy to clipboard operation
tenuki copied to clipboard

How to use via npm?

Open GreenAsJade opened this issue 6 years ago • 4 comments

Thanks for this awesome package.

I installed using npm, but I don't get a "tenuki.css" anywhere.

In fact, there is no build directory at all.

My impression is that npm install is just another way of cloning the repo, you still need to build.

(Which doesn't work inside the nom installed copy)

GreenAsJade avatar Dec 31 '18 22:12 GreenAsJade

@GreenAsJade the npm package doesn't come with any CSS, since the assumption was that you'd only be running the game engine, and manipulating moves without a front-end, not attempting to render to the DOM.

Do you have a use case where you want to use the npm package, but also fully render the board to the DOM?

aprescott avatar Jan 16 '19 19:01 aprescott

I also have this use case.

Building my web app with parcelify and want to include css and js.

Also building the application is broken since browserify > 8 came out.

I will submit a pr.

vlinder avatar Apr 12 '19 09:04 vlinder

It would be nice to have all the build artefacts in the published npm version. That way I wouldn't have to build and include the files in my own repo.

vlinder avatar Apr 20 '19 10:04 vlinder

It's been a long while and I never came back to this, but I can include the built CSS in future NPM releases (should they exist). To at least avoid building any files manually, built files are now available through the GitHub release.

aprescott avatar Nov 23 '21 23:11 aprescott