@@ -78,8 +78,8 @@ to be executable in a Unix environment. In Windows you'll have to use it via
78
78
### Unix
79
79
80
80
```
81
- $ wget https://clojars.org/repo/tailrecursion/boot/1.0.3 /boot-1.0.3 .jar
82
- $ mv boot-1.0.3 .jar boot
81
+ $ wget https://clojars.org/repo/tailrecursion/boot/1.0.5 /boot-1.0.5 .jar
82
+ $ mv boot-1.0.5 .jar boot
83
83
$ chmod a+x boot
84
84
$ mv boot ~/bin/boot # or anywhere else in your $PATH
85
85
```
@@ -185,7 +185,7 @@ Tasks: debug Print the value of a boot environment key.
185
185
watch Watch `:src-paths` and call its continuation when files change.
186
186
187
187
Create a minimal boot script: `boot :strap > build.boot`
188
-
188
+
189
189
```
190
190
191
191
The tasks listed in the output are defined in the [ core tasks namespace] [ 5 ] ,
@@ -238,9 +238,9 @@ Tasks: debug Print the value of a boot environment key.
238
238
repl Launch nrepl in the project.
239
239
syncdir Copy/sync files between directories.
240
240
watch Watch `:src-paths` and call its continuation when files change.
241
-
241
+
242
242
Create a minimal boot script: `boot :strap > build.boot`
243
-
243
+
244
244
```
245
245
246
246
Now we can run the ` hello ` task:
@@ -456,7 +456,7 @@ For example:
456
456
:url " http://www.eclipse.org/legal/epl-v10.html" }
457
457
:src-paths #{" src" })
458
458
459
- (deftask load-hoplon
459
+ (deftask load-hoplon
460
460
" Example profile-type task."
461
461
[]
462
462
(set-env!
@@ -493,7 +493,7 @@ Tasks: debug Print the value of a boot environment key.
493
493
watch Watch `:src-paths` and call its continuation when files change.
494
494
495
495
Create a minimal boot script: `boot :strap > build.boot`
496
-
496
+
497
497
```
498
498
499
499
Then with the ` load-hoplon ` profile:
@@ -520,7 +520,7 @@ Tasks: debug Print the value of a boot environment key.
520
520
h/html2cljs Convert file from html syntax to cljs syntax.
521
521
522
522
Create a minimal boot script: `boot :strap > build.boot`
523
-
523
+
524
524
```
525
525
526
526
Notice how the second list includes ` h/hoplon ` and ` h/html2cljs ` , the two tasks
@@ -538,7 +538,7 @@ This adds incidental complexity to the build process and causes undesired
538
538
coupling between tasks and between tasks and the project environment. Boot
539
539
provides facilities to mitigate the issues with managing the files created
540
540
during the build process. This allows tasks to be more general and easily
541
- composed, and eliminates configuration boilerplate in the project environment.
541
+ composed, and eliminates configuration boilerplate in the project environment.
542
542
543
543
* Tasks produce files which may be further processed by other tasks or emitted
544
544
into the final output directory as artifacts. Using boot's file management
@@ -565,14 +565,14 @@ read-only as far as boot tasks are concerned.
565
565
* ** Project source directories.** These are specified in the ` :src-paths ` key
566
566
of the boot environment for the project, and boot adds them to the project's
567
567
class path automatically.
568
-
568
+
569
569
* ** Resource directories.** These are specified using the ` add-sync! ` function
570
570
in the ` build.boot ` file. The contents of these directories are overlayed on
571
571
some other directory (usually the ` :out-path ` dir, but it could be any
572
572
directory) after each build cycle. These directories contain things like CSS
573
573
stylesheets, image files, etc. Boot does not automatically add resource
574
574
directories to the project's class path.
575
-
575
+
576
576
#### Boot Managed Directories
577
577
578
578
These directories contain intermediate files created by boot tasks and are
@@ -586,7 +586,7 @@ each time it starts.
586
586
directly to this directory or manipulate the files it contains. Instead,
587
587
tasks emit artifacts to staging directories (see below) and boot takes care
588
588
of syncing them to the output directory at the end of each build cycle.
589
-
589
+
590
590
* ** Generated source directories.** These directories are created by tasks
591
591
via the ` mksrcdir! ` function. Generated source dirs are similar to the project
592
592
source dirs, except that tasks can write to them and they're managed by boot.
@@ -600,7 +600,7 @@ each time it starts.
600
600
artifacts (intermediate JavaScript namespaces created by the Google Closure
601
601
compiler, for instance). These directories are not automatically added to the
602
602
project's class path.
603
-
603
+
604
604
* ** Staging directories.** These directories are created by tasks via the
605
605
` mkoutdir! ` function. Tasks emit artifacts into these staging directories
606
606
which are cleaned automatically by boot at the start of each build cycle.
@@ -609,7 +609,7 @@ each time it starts.
609
609
required. Files in staging directories at the end of the build cycle which
610
610
have not been consumed by another task (see below) will be synced to the
611
611
output directory after all tasks in the cycle have been run.
612
-
612
+
613
613
<img height =" 600px " src =" https://raw.github.com/tailrecursion/boot/master/img/files.gif " >
614
614
615
615
The image above illustrates the flow of files through the boot build process.
0 commit comments