UNPKG

react-native-swipeable-row

Version:

A powerful React Native swipe component based on @jshanson7 package

35 lines (25 loc) 597 B
BIN = ./node_modules/.bin SRC = $(shell find ./src -name '*.js') LIB = $(SRC:./src/%=lib/%) EXAMPLE = $(shell find ./example/*.js) build:: $(LIB) lint:: @$(BIN)/eslint $(SRC) $(EXAMPLE) release-patch: build lint @$(call release,patch) release-minor: build lint @$(call release,minor) release-major: build lint @$(call release,major) publish: git push --tags origin HEAD:master npm publish lib/%.js: src/%.js @echo "building $@" @mkdir -p $(@D) @$(BIN)/babel --presets=latest,react,stage-0 --source-maps-inline -o $@ $< clean: @rm -rf lib/ define release npm version $(1) endef