Method: Pipeline::RetireJS#run
- Defined in:
- lib/pipeline/tasks/retirejs.rb
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/pipeline/tasks/retirejs.rb', line 20 def run rootpath = @trigger.path Pipeline.debug "Retire rootpath: #{rootpath}" Dir.chdir("#{rootpath}") do if @tracker..has_key?(:npm_registry) registry = "--registry #{@tracker.[:npm_registry]}" else registry = nil end @result = `npm install --ignore-scripts #{registry}` # Need this even though it is slow to get full dependency analysis. end @result = `retire -c --outputformat json --path #{rootpath} 2>&1` end |