This project has been developed with intent to create a tool that bundles your screeps code into a single file without using advanced optimizations provided by Сlosure Compiler, and solve the problem with unrecognizable and obfuscated runtime errors to make them understandable.
The project uses shadow-cljs to compile code and webpack with babel-loader for bundling
First you need to have leiningen, node-js and java SDK installed, then go to folder with your projects and run:
lein new org.clojars.timonkot13/clojurescript-screeps-webpack project-name
cd project-name
npm install
You can run some of these commands which are mostly npx shadow-cljs build/watch
and npx webpack
aliases
npm run build
npm run bundle
npm run build-watch
npm run bundle-watch
There are no deploying tools in the project right now, but you can modify the bundle output path in webpack.config.js
...
entry: ... ,
output: {
path: "<your path>", // as example, you can change it to your screeps local folder,
// you can get the path by selecting "Scripts tab" and then clicking on "Open local folder"
filename: "main.js",
}
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close