-
-
Notifications
You must be signed in to change notification settings - Fork 180
Running on Windows
With Boot version 2.6.0-SNAPSHOT, windows 10 is now fully. Even headless JS unit testing with phantomjs is now supported with crisptrutski/boot-cljs-test version 0.2.2-SNAPSHOT.
First, I've been told that windows 10 fixes a lot of issues over previous releases. Of course, you still can't delete open files nor can you delete read-only files. And the file separator difference still crops up from time to time. But these are now handled. A number of changes have been made to support windows 10, the latest being Boot version 2.6.0-SNAPSHOT.
Another concern is Java. Java 1.8 apparently works best.
The easy way to switch to this latest version of boot is simply to update your boot.properties file to this:
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.6.0-SNAPSHOT
You will also need to add a parameter to serve in your dev task defined in build.boot, like so:
(serve :port 8000 :init-params {"org.eclipse.jetty.servlet.Default.useFileMappedBuffer" "false"})
Now there is one additional requirement when writing cljs or cljc code for web workers. Do not use compiler optimization none (the default). But I believe everything else works. So again in the dev task of your build.boot file, you will want to add an optimization parameter like this:
(cljs :optimizations :simple)
Of course, you may need to update your dependencies as well. Use this command to find out what needs to be updated:
boot show -u
And that should take care of it.
Many thanks to the boot dev team for seeing this through. Not easy, as they are all nx geeks. :-)
You can find other developers and users in the #hoplon
channel on freenode IRC or the boot slack channel.
If you have questions or need help, please visit the Discourse site.
- Environments
- Boot environment
- Java environment
- Tasks
- Built-ins
- Third-party
- Tasks Options
- Filesets
- Target Directory
- Pods
- Boot Exceptions
- Configuring Boot
- Updating Boot
- Setting Clojure version
- JVM Options
- S3 Repositories
- Scripts
- Task Writer's Guide
- Require inside Tasks
- Boot for Leiningen Users
- Boot in Leiningen Projects
- Repl reloading
- Repository Credentials and Deploying
- Snippets
- Troubleshooting
- FAQ
- API docs
- Core
- Pod
- Util