Git Product home page Git Product logo

Comments (15)

joelvh avatar joelvh commented on May 9, 2024 4

@jerivas https://www.npmjs.com/package/flowy-engine has been published. v2 is in the works as a new NPM release in the future.

from flowy.

joelvh avatar joelvh commented on May 9, 2024 3

@vicmosin it's outdated and I decided not to pursue the work I started back then because there wasn't a desire by the maintainer to bring my updates into the project. I'm effectively waiting to see how much more the project gets updated, and if there's a desire in the future to use more tooling and accept contributions such as ES6 and so on.

However, it is a usable version from that point in time. The README has directions to build and run the demo. And there's the demo build in the repository as well.

For what it's worth, there's a React implementation as well that works in its own branch. And I was ambitious to refactor the whole thing.

from flowy.

joelvh avatar joelvh commented on May 9, 2024 1

#37 is ready to merge to get this in place

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024 1

Yes, it is linked at https://www.npmjs.com/package/flowy-engine

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

Would be also good to have src and dist folders and some CI setup.

Could you need some asistance with this?

from flowy.

AsimNet avatar AsimNet commented on May 9, 2024

@joelvh
Hello, I did this:
npm i flowy-engine
but no luck
image
ERROR in libs/author/src/lib/prototype/editor.component.ts:8:24 - error TS2307: Cannot find module 'flowy-engine'.

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

@AsimNet please check the error, your Node version and that you import the module, not the main entry. See also https://unpkg.com/browse/[email protected]/package.json.

from flowy.

AsimNet avatar AsimNet commented on May 9, 2024

could you please give me an example?
@DanielRuf

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

@AsimNet try import * as flowy from 'flowy-engine/flowy-engine.mjs.

from flowy.

AsimNet avatar AsimNet commented on May 9, 2024

same thing
ERROR in libs/author/src/lib/prototype/editor.component.ts:8:24 - error TS2307: Cannot find module 'flowy-engine/flowy-engine.mjs'.

@DanielRuf

from flowy.

AsimNet avatar AsimNet commented on May 9, 2024

https://github.com/joelvh/flowy-engine/blob/master/src/index.js

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

Did you install it? Please check the content of your node_modules/flowy-engine. The source repo has nothing to do with the code on npmjs / unpkg (where you can see what you should have in your node_modules).

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

same thing

You didn't specify the exact error before, you provided only a screenshot of a text with a red line under it which is not that helpful.
Please check your node_modules folder to see which files can be imported / required.

from flowy.

DanielRuf avatar DanielRuf commented on May 9, 2024

It works for me:

➜  flowy-test npm i flowy-engine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 1 package from 3 contributors and audited 1 package in 2.019s
found 0 vulnerabilities

➜  flowy-test code .
➜  flowy-test cat index.mjs 
import * as flowy from 'flowy-engine/flowy-engine.mjs';

console.log(flowy);%   
➜  flowy-test node --version
v10.16.3
➜  flowy-test nodenv versions
  system
  6.17.1
  8.16.0
  8.17.0
  9.11.2
  10.16.0
* 10.16.3 (set by /Users/danielruf/.nodenv/version)
  12.13.0
  13.5.0
➜  flowy-test nodenv local 13.5.0
➜  flowy-test node index.mjs 
(node:7408) ExperimentalWarning: The ESM module loader is experimental.
[Module] { default: [Function: e] }

from flowy.

vicmosin avatar vicmosin commented on May 9, 2024

Is the https://github.com/joelvh/flowy-engine "official" fork of npm feature?

@joelvh do you have any examples of the usage?

from flowy.

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.