You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/08/19 16:26:03 UTC

[whimsy] 01/03: rerun npm install when package.json changes

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 91ba65c6fe42d6ea12c2e39e55aea4977b37f1c2
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Aug 19 12:25:04 2017 -0400

    rerun npm install when package.json changes
---
 www/board/agenda/Rakefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/board/agenda/Rakefile b/www/board/agenda/Rakefile
index f671ed3..4dfc5bc 100644
--- a/www/board/agenda/Rakefile
+++ b/www/board/agenda/Rakefile
@@ -39,7 +39,7 @@ task "touch" do
   sh 'touch', File.expand_path('../tmp/restart.txt', __FILE__)
 end
 
-file 'node_modules' do
+file 'package-lock.json' => 'package.json' do
   sh 'npm install'
 end
 
@@ -100,7 +100,7 @@ task :work => ['test/work/board',
   *testfiles.map {|testfile| "test/work/data/#{testfile}.yml"}]
 
 namespace :test do
-  task :setup => [:reset, :work, 'node_modules']
+  task :setup => [:reset, :work, 'package-lock.json']
   task :server => 'server:test'
 
   task :stress => :setup do
@@ -193,4 +193,4 @@ end
 # cleanup
 require 'rake/clean'
 CLEAN.include 'passenger.3000.*', 'test/work'
-CLOBBER.include 'node_modules'
+CLOBBER.include 'node_modules', 'package-lock.json'

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.