FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

auto install deps when running make tasks that need them · devhttps/frontend@5842b7c · GitHub

Commit 5842b7c

Browse files
committed
auto install deps when running make tasks that need them
1 parent 64ad84b commit 5842b7c

3 files changed

Lines changed: 16 additions & 31 deletions

File tree

‎git-hooks/post-merge‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎makefile‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,61 +50,61 @@ watch: compile-dev
5050
# *********************** ASSETS ***********************
5151

5252
# Compile all assets for production.
53-
compile: check-node
53+
compile: install
5454
@./tools/run-task compile
5555

5656
# Compile all assets for development.
57-
compile-dev: check-node
57+
compile-dev: install
5858
@./tools/run-task compile --dev
5959

60-
compile-javascript: check-node # PRIVATE
60+
compile-javascript: install # PRIVATE
6161
@./tools/run-task compile/javascript
6262

63-
compile-javascript-dev: check-node # PRIVATE
63+
compile-javascript-dev: install # PRIVATE
6464
@./tools/run-task compile/javascript --dev
6565

66-
compile-css: check-node # PRIVATE
66+
compile-css: install # PRIVATE
6767
@./tools/run-task compile/css
6868

69-
compile-images: check-node # PRIVATE
69+
compile-images: install # PRIVATE
7070
@./tools/run-task compile/images
7171

72-
compile-svgs: check-node # PRIVATE
72+
compile-svgs: install # PRIVATE
7373
@./tools/run-task compile/inline-svgs
7474

75-
compile-fonts: check-node # PRIVATE
75+
compile-fonts: install # PRIVATE
7676
@./tools/run-task compile/fonts
7777

78-
atomise-css: check-node # PRIVATE
78+
atomise-css: install # PRIVATE
7979
@node tools/atomise-css
8080

8181
# * Not ready for primetime use yet... *
82-
pasteup: check-node # PRIVATE
82+
pasteup: install # PRIVATE
8383
@cd static/src/stylesheets/pasteup && npm --silent i && node publish.js
8484

8585

8686

8787
# *********************** CHECKS ***********************
8888

8989
# Run the JS test suite.
90-
test: check-node
90+
test: install
9191
@./tools/run-task test/javascript
9292

9393
# Check the JS test suite coverage.
94-
coverage: check-node
94+
coverage: install
9595
@./tools/run-task test/javascript/coverage --stdout
9696

9797
# Lint all assets.
98-
validate: check-node
98+
validate: install
9999
@./tools/run-task lint
100100

101101
# Lint all SCSS.
102-
validate-sass: check-node # PRIVATE
102+
validate-sass: install # PRIVATE
103103
@./tools/run-task lint/sass
104104

105105
# Lint all JS.
106-
validate-javascript: check-node # PRIVATE
106+
validate-javascript: install # PRIVATE
107107
@./tools/run-task lint/javascript
108108

109-
validate-amp: check-node # PRIVATE
109+
validate-amp: install # PRIVATE
110110
@cd tools/amp-validation && npm install && NODE_ENV=dev node index.js

‎tools/messages.js‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,12 @@ switch (process.argv[2]) {
7777
}, 'error');
7878
break;
7979

80-
case 'dependency-update':
81-
notify('Run `make install`.', {
82-
heading: 'Dependencies have changed'
83-
}, 'warn');
84-
break;
85-
8680
case 'pasteup':
8781
notify('You will need to release a new version of pasteup to NPM once you’ve merged this branch to master.\n\nTo begin a new release, run `make pasteup`.', {
8882
heading: 'Pasteup files have changed'
8983
}, 'info');
9084
break;
9185

92-
9386
case 'install-steps':
9487
notify('Please run the following to complete your installation:', {
9588
heading: 'Additional steps'

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL