-
-
Notifications
You must be signed in to change notification settings - Fork 683
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 946 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include default.mk
FEATURE_FILES = $(sort $(wildcard ../../compatibility-kit/javascript/features/**/*.ndjson))
TS_MESSAGE_FILES = $(patsubst ../../compatibility-kit/javascript/features/%.ndjson,acceptance/%.ts,$(FEATURE_FILES))
.codegen: $(TS_MESSAGE_FILES) dist/src/styles/cucumber-react.css
dist/src/styles/cucumber-react.css: src/styles/styles.scss src/styles/react-accessible-accordion.css
mkdir -p $(@D)
npx -y sass $< > $@
cat src/styles/react-accessible-accordion.css >> $@
# Convert an .ndjson file to a .ts file with Envelope objects that can be imported
acceptance/%.ts: ../../compatibility-kit/javascript/features/%.ndjson Makefile
mkdir -p $(@D)
echo "// Generated file. Do not edit." > $@
echo "export default [" >> $@
cat $< | sed "s/$$/,/" >> $@
echo "]" >> $@
.tested: .tested-storybook
.tested-storybook: $(TYPESCRIPT_SOURCE_FILES)
npm run build-storybook
touch $@
clean:
rm -f $(GHERKIN_DOCUMENT_NDJSON_FILES)