File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change 66
66
(defn resolve-bundle
67
67
```
68
68
Convert any bundle string/table to the normalized table form. `bundle` can be any of the following forms:
69
-
69
+
70
70
* A short name that indicates a package from the package listing.
71
71
* A URL or path to a git repository
72
72
* A URL or path to a .tar.gz archive
371
371
# ## Generate new projects quickly, ported from jpm
372
372
# ##
373
373
374
- # TODO - improve on JPM style projects?
375
- # - configure a new, janet only project that doesn't depend on spork
376
-
377
374
(def- template-peg
378
375
" Extract string pieces to generate a templating function"
379
376
(peg/compile
553
550
(defn install
554
551
[manifest &]
555
552
(bundle/add manifest "$name"))
553
+
554
+ (defn build
555
+ [&]
556
+ (print "Nothing to build!"))
557
+
558
+ (defn clean
559
+ [&]
560
+ (print "Nothing to clean!"))
561
+
562
+ (defn check
563
+ [&]
564
+ (var pass-count 0)
565
+ (var total-count 0)
566
+ (def failing @[])
567
+ (each dir (sorted (os/dir "test"))
568
+ (def path (string "test/" dir))
569
+ (when (string/has-suffix? ".janet" path)
570
+ (def pass (zero? (os/execute [(dyn *executable* "janet") "--" path] :p)))
571
+ (++ total-count)
572
+ (unless pass (array/push failing path))
573
+ (when pass (++ pass-count))))
574
+ (if (= pass-count total-count)
575
+ (print "All tests passed!")
576
+ (do
577
+ (printf "%d of %d passed." pass-count total-count)
578
+ (print "failing scripts:")
579
+ (each f failing
580
+ (print " " f))
581
+ (os/exit 1))))
556
582
```` )
557
583
558
584
(deftemplate bundle-info-template
You can’t perform that action at this time.
0 commit comments