Comments (16)
Sure. I don't see why not :-)
from framer.
Here you go:
https://www.npmjs.org/package/framerjs
from framer.
👍
from framer.
When I require('framerjs')
I get Error: Cannot find module 'framerjs'
.
from framer.
So, this is due to the build directory not being submitted as part of the package.
@koenbok - could you make that happen?
from framer.
Actually, Bower might be better for this. At least having a component.json
file would let me try that out.
from framer.
@koenbok - wondering if you'd mind following up here.
from framer.
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.
@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.
I think this issue should be reopen due to the lack of compiled version of framerjs,
from framer.
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.
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.
Ok let's do it.
from framer.
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.
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.
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)
- Support for modules folder containing subdirectories HOT 1
- Resetting color on a TextLayer nested in a ScrollComponent breaks scroll interactions
- Option to code a rectangle with only two rounded corners HOT 1
- Shouldn't `mouseWheelEnabled` trigger elastic boundary effects as dragging events do?
- Shadows will not animate and ignore code state changes
- copying a layer from design mode does not copy the constraintValues of its children
- make test fails on "Layer Shadow Properties should animate shadows through a shadow property"
- undocumented event
- More comprehensive documentation for the open-source library in vanilla JavaScript
- Add support for Sass
- Framer X version of framer.js release? HOT 3
- 🔍 Improving search on docs with Algolia's DocSearch
- Table Drag and Drop Example?
- How to fix Gatsby.js build error 'window is not defined' ? HOT 1
- Scroll component is inaccessible
- Ability to render Frame as anything other than <div>
- Download link in readme is invalid
- Feature request: Add "detach all nested instances" to right-click menu
- Is framer generator dead?
- Code change in useTransform() documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framer.