Skip to content

Commit a20d3e2

Browse files
authored
Merge pull request #259 from citizennet/wenbo/FBCM-5353/add-outbrain-icon
FBCM-5353 Add Outbrain Icon
2 parents 22bc010 + e1070bb commit a20d3e2

16 files changed

+31146
-9827
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PURS_TIDY ?= purs-tidy
2121
SRC_FILES := $(shell find $(SRC_DIR) $(FIND_SRC_FILES_ARGS))
2222
TEST_FILES := $(shell find $(TEST_DIR) $(FIND_SRC_FILES_ARGS))
2323
UI_GUIDE_FILES := $(shell find $(UI_GUIDE_DIR) $(FIND_SRC_FILES_ARGS))
24-
YARN_LOCK := $(ROOT_DIR)/yarn.lock
24+
PACKAGE_LOCK := $(ROOT_DIR)/package-lock.json
2525

2626
FORMAT_SRC_PURS_TIDY_STAMP := $(BUILD_DIR)/.format-src-purs-tidy-stamp
2727
FORMAT_TEST_PURS_TIDY_STAMP := $(BUILD_DIR)/.format-test-purs-tidy-stamp
@@ -88,8 +88,8 @@ $(FORMAT_TEST_PURS_TIDY_STAMP): $(TEST_FILES) $(NODE_MODULES_STAMP) | $(BUILD)
8888
$(PURS_TIDY) $(PURS_TIDY_CMD) $(TEST_DIR)
8989
@touch $@
9090

91-
$(NODE_MODULES): $(PACKAGE_JSON) $(YARN_LOCK)
92-
$(NPX) yarn install
91+
$(NODE_MODULES): $(PACKAGE_JSON) $(PACKAGE_LOCK)
92+
npm install
9393
touch $@
9494

9595
$(OUTPUT_DIR)/Main/index.js: $(DEPS) $(SRC_FILES) $(UI_GUIDE_FILES)
@@ -145,6 +145,6 @@ help: $(BUILD_DIR)/help ## Display this help message
145145
.PHONY: test
146146
test: $(BUILD_DIR)/test.out ## Build and run tests
147147

148-
.PHONY: ui-guide
149-
ui-guide: build-css $(OUTPUT_DIR)/Main/index.js $(NODE_MODULES) | $(PARCEL_DIR) ## Build the UI Guide using ParcelJS for hot reloading (experimental, may not work on all environments)
148+
.PHONY: ui-guide-local
149+
ui-guide-local: build-css $(OUTPUT_DIR)/Main/index.js $(NODE_MODULES) | $(PARCEL_DIR) ## Build the UI Guide using ParcelJS for hot reloading (experimental, may not work on all environments)
150150
npx parcel serve $(DIST_DIR)/parcel.html --dist-dir $(PARCEL_DIR) --no-cache

css/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ DIST_DIR ?= $(ROOT_DIR)/dist
77
CSS_SRC := $(CSS_DIR)/src/*
88
CSS_NODE_MODULES := $(CSS_DIR)/node_modules/.stamp
99
CSS_PACKAGE_JSON := $(CSS_DIR)/package.json
10-
CSS_YARN_LOCK := $(CSS_DIR)/yarn.lock
10+
CSS_PACKAGE_LOCK := $(CSS_DIR)/package-lock.json
1111
DIST_CSS_FILENAME := cn-tailwind
1212
DIST_CSS_DEV_GLOBAL := $(DIST_DIR)/$(DIST_CSS_FILENAME).css
1313
DIST_CSS_DEV_SCOPED := $(DIST_DIR)/$(DIST_CSS_FILENAME).scoped.css
1414
DIST_CSS_PROD_GLOBAL := $(DIST_DIR)/$(DIST_CSS_FILENAME).min.css
1515
DIST_CSS_PROD_SCOPED := $(DIST_DIR)/$(DIST_CSS_FILENAME).scoped.min.css
1616

17+
CSS_NPM := cd $(CSS_DIR) && npm
1718
CSS_NPX := cd $(CSS_DIR) && npx
1819

1920
.DEFAULT_GOAL := build-css
@@ -23,8 +24,8 @@ CSS_NPX := cd $(CSS_DIR) && npx
2324
BUILD_DEPS += build-css
2425
CLEAN_DEPS += clean-css
2526

26-
$(CSS_NODE_MODULES): $(CSS_PACKAGE_JSON) $(CSS_YARN_LOCK)
27-
$(CSS_NPX) yarn install
27+
$(CSS_NODE_MODULES): $(CSS_PACKAGE_JSON) $(CSS_PACKAGE_LOCK)
28+
$(CSS_NPM) install
2829
touch $@
2930

3031
$(DIST_CSS_DEV_GLOBAL): $(CSS_SRC) $(CSS_NODE_MODULES) | $(DIST_DIR)

0 commit comments

Comments
 (0)