;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310DD\311\312\313\314\315\316\317& \207" [require json subr-x cl-lib custom-declare-variable taskrunner-preferred-js-package-manager funcall function #[0 "\300\207" [nil] 1] "The preferred package manager to be used for tasks from package.json.\nThe package manager name should be a string which can be either `npm' or `yarn'.\nIf its value is nil then the package manager to be used is determined by the presence\nof either a `yarn.lock' or `package-lock.json'. If none are present and this\nvariable is nil then `npm' is used as default." :type string :options ("npm" "yarn") :group taskrunner] 10) #@46 Command used to retrieve the tasks for Gulp. (defconst taskrunner--js-gulp-tasks-command "gulp --tasks-simple" (#$ . 757)) #@375 Detect if the current project in directory DIR is using `yarn' or `npm'. If `taskrunner-preferred-js-package-manager' is not nil then its value is used. Otherwise, if `yarn.lock' is present then yarn is used. If `package-lock.json' is present then NPM is used. If none are present and `taskrunner-preferred-js-package-manager' is nil then the default is `npm'. (fn DIR) (defalias 'taskrunner--yarn-or-npm #[257 "\301!\302\235\203 \303\207\304\235\203\305\207;\203\226\207\305\207" [taskrunner-preferred-js-package-manager directory-files "yarn.lock" "YARN" "package-lock.json" "NPM"] 4 (#$ . 887)]) #@205 Retrieve all tasks in the scripts section of the package.json file in DIR. This function returns a list of the form: (PM TASK1" "PM TASK2"...) where PM is the package manager used(yarn or npm). (fn DIR) (defalias 'taskrunner-get-package-json-tasks #[257 "\300\301\"\302\303\304!\"\305!\306\203\307\310\311\312\"#\262\207" [expand-file-name "package.json" alist-get scripts json-read-file taskrunner--yarn-or-npm nil cl-map list make-closure #[257 "\300\301\302@!Q\207" [V0 " " symbol-name] 5 "\n\n(fn ELEM)"]] 10 (#$ . 1507)]) #@142 Retrieve the gulp tasks for the project in directory DIR. This function returns a list of the form: ("GULP TASK1" "GULP TASK2"...) (fn DIR) (defalias 'taskrunner-get-gulp-tasks #[257 "\211\302\303\304\305\306\307 !\310\"#!)\207" [default-directory taskrunner--js-gulp-tasks-command butlast cl-map list #[257 "\300P\207" ["GULP "] 3 "\n\n(fn ELEM)"] split-string shell-command-to-string "\n"] 8 (#$ . 2052)]) #@171 Retrieve the grunt tasks from the current buffer and return them as a list. This function is not meant to be used externally. Use `taskrunner--get-grunt-tasks' instead. (defalias 'taskrunner--get-grunt-tasks-from-buffer #[0 "eb\210\300\301\302\303#\300\304\302\303#\205}\210\305\306\307\310\311 \312\"#\207" [re-search-forward "Available tasks.+\n" nil t "^$" cl-map list #[257 "\300\301\302!\303\"@P\207" ["GRUNT " split-string string-trim " "] 5 "\n\n(fn ELEM)"] split-string buffer-string "\n"] 8 (#$ . 2470)]) #@145 Retrieve the grunt tasks for the project in directory DIR. This function returns a list of the form: ("GRUNT TASK1" "GRUNT TASK2"...) (fn DIR) (defalias 'taskrunner-get-grunt-tasks #[257 "\211\301\302\303\301\304\303!\301\305%\210\306\307\310\"r\211q\210\311\312\"\216\304\303!q\210\313 \262\314 \210*\210\315!)\207" [default-directory nil call-process "grunt" taskrunner--make-task-buff-name "--help" generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] taskrunner--get-grunt-tasks-from-buffer kill-current-buffer butlast] 9 (#$ . 2998)]) #@123 Retrieve the rake tasks from the current buffer. This function returns a list of the form: ("JAKE TASK1" "JAKE TASK2"...) (defalias 'taskrunner--get-jake-tasks-from-buffer #[0 "eb\210\301 \210\302\303 \304\305\306#)\266\203?\205B~\210eb\210\304\307\310\304\305#\203<\301 \210\311\312\303 \313\305#A@PB\262~\210\202\314 \210\211\262\207" [inhibit-changing-match-data taskrunner--narrow-to-line ".+aborted." buffer-string nil t string-match search-forward-regexp "^jake[[:space:]]+" "JAKE " split-string " " kill-current-buffer] 7 (#$ . 3610)]) #@141 Retrieve the ant tasks for the project in directory DIR. This function returns a list of the form: ("JAKE TASK1" "JAKE TASK2"...) (fn DIR) (defalias 'taskrunner-get-jake-tasks #[257 "\211\301\302\303\304\302!\303\305%\210\306\307\310\"r\211q\210\311\312\"\216\304\302!q\210\313 *\262)\207" [default-directory call-process "jake" nil taskrunner--make-task-buff-name "-T" generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] taskrunner--get-jake-tasks-from-buffer] 7 (#$ . 4171)]) (provide 'taskrunner-web)