Giter Club home page Giter Club logo

boot-nodejs's People

Contributors

burn2delete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

arichiardi

boot-nodejs's Issues

Cannot launch figwheel-ed node scripts with serve

Hello @flyboarder,
this is actually a problem that I already see will be difficult to solve cleanly in boot.

I am basically getting:

Figwheel: Can't start Figwheel!! Please make sure ws is installed
 do -> 'npm install ws'

With the following task:

(deftask dev
  "Launches the interactive environment"
  [p port PORT int "Set the repl port"]
  (let [port (or port 5055)]
    (comp (watch)
          (notify)
          (reload :client-opts {:debug true}) ;; boot-figreload task
          (cljs-repl :nrepl-opts {:port port})
          (cljs :source-map true :optimizations :none)
          (serve :script "app")))) ;; boot-nodejs task

This happens because the app.js file is launched from the boot cache and of course does not have the correspondent node_modules anywhere, neither in the folder, nor in the parent (which is the case when you actually execute a script from target).

The solution of copying node_modules to the boot cache is a scary one, so I leave this here open for discussion.

Can the serve task be used for "normal" node scripts?

Hello @flyboarder!

I am looking into this for launching a nodejs script automatically when using boot-figreload with :target :nodejs. I was wondering if serve can actually launch a normal script and if so whether it is a good idea to rename it to something else like node or launch?

I am going to try anyway and sorry if this is more like a usage question!

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.