GithubHelp home page GithubHelp logo

Comments (7)

nchanged avatar nchanged commented on May 28, 2024 1

Hey, yes, there is a playground folder. For example:
https://github.com/fuse-box/fuse-box/blob/master/playground/server/fuse.ts

from fuse-box.

ahungry avatar ahungry commented on May 28, 2024

This also happens on node v12 (in addition to every other version I tested)

from fuse-box.

ahungry avatar ahungry commented on May 28, 2024

Updating the require to 'fuse-box/sparky/sparky' at least seems to resolve a module import, but src/task/context are all undefined at that point, so not resolving to the correct thing I suppose.

from fuse-box.

nchanged avatar nchanged commented on May 28, 2024
const { fusebox, sparky } = require("fuse-box");

from fuse-box.

ahungry avatar ahungry commented on May 28, 2024

Is this documentation wrong then?

https://fuse-box.org/docs/task-runner/getting-started-with-sparky

from fuse-box.

ahungry avatar ahungry commented on May 28, 2024

Also, that shows fusebox/sparky both defined as functions when imported like that - but sparky.task and the other calls are still undefined. If I call sparky() immediately after an import like you suggested, it complains Ctx is not defined.

Any current documentation/minimal samples of how to use sparky with the latest fuse-box?

from fuse-box.

ahungry avatar ahungry commented on May 28, 2024

Thanks! That looks like the missing piece of the puzzle 😄

from fuse-box.

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.