Giter Club home page Giter Club logo

Comments (16)

koenbok avatar koenbok commented on July 21, 2024

Sure. I don't see why not :-)

from framer.

koenbok avatar koenbok commented on July 21, 2024

Here you go:

https://www.npmjs.org/package/framerjs

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

👍

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

When I require('framerjs') I get Error: Cannot find module 'framerjs'.

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

So, this is due to the build directory not being submitted as part of the package.

@koenbok - could you make that happen?

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

Actually, Bower might be better for this. At least having a component.json file would let me try that out.

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

@koenbok - wondering if you'd mind following up here.

from framer.

zanona avatar zanona commented on July 21, 2024

As of v3.0.0 the build/frame.js file is not included making it impossible to depend on the framejs via npm? Perhaps this issue should be re-opened?

from framer.

jchavarri avatar jchavarri commented on July 21, 2024

@zanona @paulyoung You can build automatically after installing, using the scripts key on your package.json:

"scripts": { "postinstall": "cd ./node_modules/framerjs && make" }

from framer.

jacobbubu avatar jacobbubu commented on July 21, 2024

I think this issue should be reopen due to the lack of compiled version of framerjs,

from framer.

koenbok avatar koenbok commented on July 21, 2024

I keep them here: http://builds.framerjs.com/

But I don't like keeping them in git because you get huge nonsensical diffs.

from framer.

jacobbubu avatar jacobbubu commented on July 21, 2024

You don't need to put the compiled version into git like you did already (add build file in .gitignore).
Just add { “republish”: ‘make’ } to scripts field in ‘package.json’ and change the main filed to ./build/framer.js. And then I also recommend that moving most of the dependencies that used for build and test into ‘devDependencies’. That makes more npm friendly and save a lot of for npm install.

from framer.

koenbok avatar koenbok commented on July 21, 2024

Ok let's do it.

from framer.

paulyoung avatar paulyoung commented on July 21, 2024

For my own projects, I've followed similar steps to those outlined here: http://mammal.io/articles/using-es6-today/#publishing-to-npm

from framer.

jperals avatar jperals commented on July 21, 2024

Hi there, any update about this? @jacobbubu's proposal seems quite straightforward to implement (with the required change that the republish task should be "make release" instead of just "make", I think). I could provide a PR myself —unless now there is any reason against doing this @koenbok? (I guess not as this issue is still open)

PS: actually, the main field in package.json points to lib/Framer.js which doesn't exist, even after building? That doesn't make sense anyway, right?, or am I missing something?

from framer.

eelco avatar eelco commented on July 21, 2024

Hey @jperals, Framer doesn’t have semantic versioning, which makes it not so nice to work with in combination with npm. It’s (therefore?) not a popular use case either, making this issue very low priority. The main field is indeed outdated.

from framer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.