在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:CircleCI-Archived/frontend开源软件地址:https://github.com/CircleCI-Archived/frontend开源编程语言:Clojure 85.8%开源软件介绍:CircleCI's frontendThis is an open-source mirror of the code that is running CircleCI's frontend. CircleCI provides powerful Continuous Integration and Deployment with easy setup and maintenance. Feel free to fork and make contributions. We'll try to get them into the main application. Watch @brandonbloom's Clojure/West talk, Building CircleCI's Frontend with Om, for a quick overview. Want to work with Clojure(Script) full-time? We're hiring. Dependencies and SetupNode.jsInstall Node.js and node dependencies:
Download all of the 3rd-party javascript dependencies:
ClojureInstall Leiningen. Note: You can also install leiningen via homebrew with nginxYou'll need to install nginx to serve the site over
HostsIn your
If you have access to the backend code, you can also add this line:
Note: Whichever of these you use must be in your UsageDevelopment ProcessesYou can use foreman (or goreman) to run the frontend and nginx.
If you're using Docker for Mac, you can also use
Then visit https://prod.circlehost:4443 or https://dev.circlehost:4443 (if you have access and have set it up) in your browser. To log into using the production backend, visit https://prod.circlehost:4443/dashboard.
( Viewing documentation changesTo see documentation locally you have to compile the docs manifest, like:
If you add a new document, you will have to re-run that; but if you just change one of the existing documents it should show up with just a page refresh. Running the TestsThere are two main ways for running tests using the plugin
To have a process watch for changes and run the tests every time you make changes, you can run
The default option is Adding TestsTo add a test you can either create a new test in an existing ns using Asset Compilation ErrorsIf you are experiencing errors when building assets the following commands may help reset all cached state:
Sanity CheckTo test that everything worked, visit https://prod.circlehost:4443/assets/css/app.css and https://prod.circlehost:4443/assets/js/om-dev.js.stefon in your browser. Production & Development BackendsNow you should have everything you need to start hacking on Circle's frontend! Visit https://prod.circlehost:4443 for the a production backend
with locally build development assets. Again, if you've got access to the
backend code (NOTE: it's not open source), you can run it locally on
Browser REPLFigwheel runs its own bREPL, which you'll see on the terminal at your (figwheel-sidecar.repl/cljs-repl "dev") Unfortunately for vim-fireplace, Figwheel doesn't expose the repl-env to pass to Better Cider SupportI couldn't get the browser repl to work at all using Here's an alternative method for First, start the
Then either start a new repl with
or use the frontend.core> (use 'figwheel-sidecar.repl-api)
=> nil
frontend.core> (start-figwheel!)
Figwheel: Starting server at http://localhost:3449
Figwheel: Watching build - dev
Compiling "resources/public/cljs/out/frontend-dev.js" from ["src-cljs" "test-cljs"]...
Successfully compiled "resources/public/cljs/out/frontend-dev.js" in 5.547 seconds.
Figwheel: Starting CSS Watcher for paths ["resources/assets/css"]
Figwheel: Starting nREPL server on port: 7888
=> #<SystemMap>
frontend.core> (cljs-repl)
Launching ClojureScript REPL for build: dev
Figwheel Controls:
(stop-autobuild) ;; stops Figwheel autobuilder
(start-autobuild [id ...]) ;; starts autobuilder focused on optional ids
(switch-to-build id ...) ;; switches autobuilder to different build
(reset-autobuild) ;; stops, cleans, and starts autobuilder
(reload-config) ;; reloads build config and resets autobuild
(build-once [id ...]) ;; builds source one time
(clean-builds [id ..]) ;; deletes compiled cljs target files
(print-config [id ...]) ;; prints out build configurations
(fig-status) ;; displays current state of system
Switch REPL build focus:
:cljs/quit ;; allows you to switch REPL to another build
Docs: (doc function-name-here)
Exit: Control+C or :cljs/quit
Results: Stored in vars *1, *2, *3, *e holds last exception object
Prompt will show when Figwheel connects to your application
To quit, type: :cljs/quit
=> nil
cljs.user> Now the middleware should be loaded and emacs CLJS Dev ToolsDirac is a fork of Chrome DevTools that works for ClojureScript. Requirements:
Running devtools:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论