-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommon.mk
More file actions
35 lines (31 loc) · 1.26 KB
/
common.mk
File metadata and controls
35 lines (31 loc) · 1.26 KB
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
29
30
31
32
33
34
35
SHELL=/bin/bash -o pipefail
HERE?=$(shell pwd)
ROOT_DIR?=$(HERE)
DEV?=
# EOL marker
define EOL
endef
# These are all the scripts in the node_modules/.bin folder used by the build
# scripts.
#
# Declaring them all here allows them to be re-used in nested Makefiles without
# having to repeat the entire paths.
TDC?=$(ROOT_DIR)/node_modules/.bin/tdc
TSC?=$(ROOT_DIR)/node_modules/.bin/tsc
BROWSERIFY?=$(ROOT_DIR)/node_modules/.bin/browserify
LESSC?=$(ROOT_DIR)/node_modules/.bin/lessc
JS_VARS:=$(ROOT_DIR)/node_modules/@quenk/wml-widgets/lib/classNames.js
WMLC?=$(ROOT_DIR)/node_modules/.bin/wmlc
ENVIFY?=$(ROOT_DIR)/node_modules/.bin/envify
TSFMT?=$(ROOT_DIR)/node_modules/.bin/tsfmt
TSC?=$(ROOT_DIR)/node_modules/.bin/tsc
DAGEN?=$(ROOT_DIR)/node_modules/.bin/dagen
DAGEN_PLUGIN_IMPORTS?=$(ROOT_DIR)/node_modules/@quenk/dagen-commons/lib/plugins/imports.js
VALIDATION_PLUGIN?=node_modules/@quenk/dagen-commons/lib/plugins/checks
TRANSFORM?=$(ROOT_DIR)/node_modules/.bin/transform
CLEANCSS?=$(ROOT_DIR)/node_modules/.bin/cleancss
UGLIFYJS?=$(ROOT_DIR)/node_modules/.bin/uglifyjs
ESBUILD:=$(ROOT_DIR)/node_modules/.bin/esbuild
SASSC:=$(ROOT_DIR)/node_modules/.bin/sass
# Dagen templates used in most QTL projects.
QTL_DAGEN_TEMPLATES_DIR?=$(ROOT_DIR)/node_modules/@quenk/dagen-templates-quenk