Skip to content

Commit

Permalink
Fix C-S-S copy step to avoid copying unnecessary files. (#1766)
Browse files Browse the repository at this point in the history
* Fix C-S-S copy step to avoid copying unnecessary files.

* Fix for running clean <task>
  • Loading branch information
sammacbeth committed Mar 8, 2023
1 parent 94eb784 commit e3e09cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ watch:
unit-test: build/test/background.js build/test/ui.js build/test/shared-utils.js
$(KARMA) start karma.conf.js

shared/content-scope-scripts: node_modules/@duckduckgo/content-scope-scripts
cp -r node_modules/@duckduckgo/content-scope-scripts shared/
shared/content-scope-scripts: node_modules/@duckduckgo/content-scope-scripts $(shell find node_modules/@duckduckgo/content-scope-scripts/src -type f)
rsync -a node_modules/@duckduckgo/content-scope-scripts/ shared/content-scope-scripts --include="lib/***" --include="src/***" --exclude="*"

shared/content-scope-scripts/lib/%: shared/content-scope-scripts
shared/content-scope-scripts/src/%: shared/content-scope-scripts

.PHONY: unit-test

Expand Down

0 comments on commit e3e09cb

Please sign in to comment.