zambezi / grid

D3 component for drawing grids
MIT License
4 stars 2 forks source link

Not able to build .. #7

Closed jdarpan closed 8 years ago

jdarpan commented 8 years ago

Not able to build .Invalid name @zambezi/grid

Please give detailed build steps.

Also is it possible to use this grid as a react component in reactjs project (being complied using webpack rather than grunt)?

FabienDeshayes commented 8 years ago

Hi @DarpanJain ,

We're actually working on a React wrapper for this that should be available to you soon. Hopefully this should help you building it.

We will also provide build steps - the documentation will improve as we add more features and continue working on it.

Thanks!

gabrielmontagne commented 8 years ago

Hi @DarpanJain , which version of npm are you using? We are using [https://docs.npmjs.com/getting-started/scoped-packages](scoped npm packages) on this project, which require npm version 2.7.0 or greater.

To build the package -- and you're totally right, the docs are just stubbed for the time being -- you should be able to just do:

npm i
npm run build

To use this component in your own project, provided you have an up to date version of npm, you should be able to just add it as a dependency ( npm i -S @zambezi/grid ), import it in your code ( import { createGrid } from '@zambezi/grid ) and use it ( var grid = createGrid() ). Your packaging solution -- webpack in your case -- should be able to pick that up and bundle the component as well as all that the component itself needs.

mstade commented 8 years ago

@gabrielmontagne is that entirely true? I tried to get it running yesterday, but found @zambezi/d3-utils and @zambezi/fun weren't really buildable as such (the grunt build seems wrong) and the deployed versions did not have the files that your example looks for (i.e. the bundles.) I'm looking at fixing that today though, and in the process making them ES2015 modules.

gabrielmontagne commented 8 years ago

the grid uses "@next" versions of those two libraries -- not 'master' -- which don't use grunt at all. They build fine, and they install fine as dependencies when you pull the grid in. these are much reduced versions of the libraries, but perhaps we could merge and grow them back little by little

On Fri, 19 Aug 2016, 11:09 Marcus Stade, notifications@github.com wrote:

@gabrielmontagne https://github.com/gabrielmontagne is that entirely true? I tried to get it running yesterday, but found @zambezi/d3-utils and @zambezi/fun weren't really buildable as such (the grunt build seems wrong) and the deployed versions did not have the files that your example looks for (i.e. the bundles.) I'm looking at fixing that today though, and in the process making them ES2015 modules.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/zambezi/grid/issues/7#issuecomment-240967808, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF2qTwkyi6cHvx-G4MrI07IjIPH07I_ks5qhXKygaJpZM4JnV6r .

mstade commented 8 years ago

Oh, you mean the fun@version-2-ground-work and d3-utils@version-3-ground-work branches? In that case yeah, we defo should merge. Do you want to start the PRs or should I?

gabrielmontagne commented 8 years ago

go for it! I'm away and typing from a roaming phone : )

On Fri, 19 Aug 2016, 11:21 Marcus Stade, notifications@github.com wrote:

Oh, you mean the fun@version-2-ground-work https://github.com/zambezi/fun/tree/version-2-groundwork and d3-utils@version-3-ground-work https://github.com/zambezi/d3-utils/tree/version-3-ground-work branches? In that case yeah, we defo should merge. Do you want to start the PRs or should I?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/zambezi/grid/issues/7#issuecomment-240970301, or mute the thread https://github.com/notifications/unsubscribe-auth/AAF2qSh_2YbmcMJiw0nPRViyG_p9xPslks5qhXVwgaJpZM4JnV6r .

mstade commented 8 years ago

Haha excellent, I'll get the PRs sorted.

gabrielmontagne commented 8 years ago

Seems to be building fine now. @DarpanJain , please don't hesitate to bring back if you still have problems.