tenuki
tenuki copied to clipboard
How to use via npm?
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 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?
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.
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.
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.