<commit_before>(task-options!
  pom {:project 'saapas
       :version "0.1.0-SNAPSHOT"
       :description "Application template for Cljs/Om with live reloading, using Boot."
       :license {:name "The MIT License (MIT)"
                 :url "http://opensource.org/licenses/mit-license.php"}}
  aot {:namespace #{'saapas.main}}
  jar {:main 'saapas.main})

(set-env!
  :source-paths #{"src/cljs" "src/cljx" "src/less"}
  :resource-paths #{"src/clj" "resources"}
  :dependencies '[[adzerk/boot-cljs       "0.0-2411-5"]
                  [adzerk/boot-cljs-repl  "0.1.7"]
                  [adzerk/boot-reload     "0.2.0"]
                  [deraen/boot-cljx       "0.2.0"]
                  [deraen/boot-less       "0.1.0-SNAPSHOT"]

                  [org.clojure/clojure "1.6.0"]
                  [org.clojure/tools.namespace "0.2.7"]
                  [ring "1.3.1"]
                  [metosin/ring-http-response "0.5.2"]
                  [compojure "1.2.1"]
                  [om "0.8.0-alpha2"]
                  [http-kit "2.1.19"]
                  [prismatic/om-tools "0.3.6"]])

(require
  '[adzerk.boot-cljs      :refer :all]
  '[adzerk.boot-cljs-repl :refer :all]
  '[adzerk.boot-reload    :refer :all]
  '[deraen.boot-cljx      :refer :all]
  '[deraen.boot-less      :refer :all]
  '[saapas.boot           :refer :all])

(task-options!
  cljs {:output-to "public/main.js"
        :source-map true})

;; Small task to copy js files from dependencies to
;; proper paths where boot will pick them up

(deftask dev
  "Start the dev env..."
  []
  (comp
    (watch)
    ; Should be before cljs so the generated code is picked up
    (reload :on-jsload 'saapas.core/main)
    (less)
    (cljx)
    ; This starts a normal repls with piggieback middleware
    (cljs-repl)
    (add-js-lib :path "react/react.js" :target "public/react.inc.js")
    (cljs :optimizations :none :unified-mode true)
    (start-app)))

(deftask dev-repl
  "Connect to the repl started by the dev task."
  []
  (repl :client true))

(deftask package
  "Build the package"
  []
  (comp
    (less)
    (cljx)
    (add-js-lib :package true :path "react/react.min.js" :target "public/react.inc.js")
    (add-js-lib :package true :path "react/externs/react.js" :target "public/react.ext.js")
    (cljs :optimizations :advanced)
    (aot)
    (pom)
    (uber)
    (jar)))

; vim: ft=clojure:
<commit_msg>resources directory is not used<commit_after>(task-options!
  pom {:project 'saapas
       :version "0.1.0-SNAPSHOT"
       :description "Application template for Cljs/Om with live reloading, using Boot."
       :license {:name "The MIT License (MIT)"
                 :url "http://opensource.org/licenses/mit-license.php"}}
  aot {:namespace #{'saapas.main}}
  jar {:main 'saapas.main})

(set-env!
  :source-paths #{"src/cljs" "src/cljx" "src/less"}
  :resource-paths #{"src/clj"}
  :dependencies '[[adzerk/boot-cljs       "0.0-2411-5"]
                  [adzerk/boot-cljs-repl  "0.1.7"]
                  [adzerk/boot-reload     "0.2.0"]
                  [deraen/boot-cljx       "0.2.0"]
                  [deraen/boot-less       "0.1.0-SNAPSHOT"]

                  [org.clojure/clojure "1.6.0"]
                  [org.clojure/tools.namespace "0.2.7"]
                  [ring "1.3.1"]
                  [metosin/ring-http-response "0.5.2"]
                  [compojure "1.2.1"]
                  [om "0.8.0-alpha2"]
                  [http-kit "2.1.19"]
                  [prismatic/om-tools "0.3.6"]])

(require
  '[adzerk.boot-cljs      :refer :all]
  '[adzerk.boot-cljs-repl :refer :all]
  '[adzerk.boot-reload    :refer :all]
  '[deraen.boot-cljx      :refer :all]
  '[deraen.boot-less      :refer :all]
  '[saapas.boot           :refer :all])

(task-options!
  cljs {:output-to "public/main.js"
        :source-map true})

;; Small task to copy js files from dependencies to
;; proper paths where boot will pick them up

(deftask dev
  "Start the dev env..."
  []
  (comp
    (watch)
    ; Should be before cljs so the generated code is picked up
    (reload :on-jsload 'saapas.core/main)
    (less)
    (cljx)
    ; This starts a normal repls with piggieback middleware
    (cljs-repl)
    (add-js-lib :path "react/react.js" :target "public/react.inc.js")
    (cljs :optimizations :none :unified-mode true)
    (start-app)))

(deftask dev-repl
  "Connect to the repl started by the dev task."
  []
  (repl :client true))

(deftask package
  "Build the package"
  []
  (comp
    (less)
    (cljx)
    (add-js-lib :package true :path "react/react.min.js" :target "public/react.inc.js")
    (add-js-lib :package true :path "react/externs/react.js" :target "public/react.ext.js")
    (cljs :optimizations :advanced)
    (aot)
    (pom)
    (uber)
    (jar)))

; vim: ft=clojure:

{'fraction_non_alphanumeric': 0.1582703610411419, 'fraction_numerical': 0.020151133501259445, 'mean_word_length': 2.086139896373057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '440585', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1795, 'n_words': 395}