Skip to content

Commit 2cee194

Browse files
LeartSjcbrand
authored andcommitted
Adapt Makefile to new packaging
1 parent 5f1bb34 commit 2cee194

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Makefile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ NDPROJ_DIR = ndproj
88
SED ?= sed
99
SHELL ?= /usr/env/bin/bash
1010
SRC_DIR = src
11-
STROPHE = dist/strophe.js
12-
STROPHE_MIN = dist/strophe.min.js
11+
STROPHE = dist/strophe.umd.js
1312

14-
all: doc $(STROPHE) $(STROPHE_MIN)
13+
all: doc $(STROPHE)
1514

1615
.PHONY: help
1716
help:
1817
@echo "Please use \`make <target>' where <target> is one of the following:"
1918
@echo ""
20-
@echo " all Update docs + build $(STROPHE) and $(STROPHE_MIN)"
19+
@echo " all Update docs + build strophe"
2120
@echo " doc Update docs"
22-
@echo " dist Build $(STROPHE) and $(STROPHE_MIN)"
21+
@echo " dist Build strophe"
2322
@echo " check Build and run the tests"
2423
@echo " eslint Check code quality"
25-
@echo " release Prepare a new release of $(STROPHE). E.g. \`make release VERSION=1.2.14\`"
24+
@echo " release Prepare a new release of strophe. E.g. \`make release VERSION=1.2.14\`"
2625
@echo " serve Serve this directory via a webserver on port 8000."
2726
@echo " stamp-npm Install NPM dependencies and create the guard file stamp-npm which will prevent those dependencies from being installed again."
2827
@echo ""
@@ -57,15 +56,10 @@ watchjs: stamp-npm
5756
./node_modules/.bin/npx webpack --mode=development --watch
5857

5958
.PHONY: dist
60-
dist: $(STROPHE) $(STROPHE_MIN)
59+
dist: $(STROPHE)
6160

62-
$(STROPHE_MIN): src webpack.config.js node_modules Makefile stamp-npm
63-
./node_modules/.bin/npx webpack --mode=production
64-
$(SED) -i s/@VERSION@/$(VERSION)/ $(STROPHE_MIN)
65-
66-
$(STROPHE): src webpack.config.js node_modules Makefile stamp-npm
67-
./node_modules/.bin/npx webpack --mode=development
68-
$(SED) -i s/@VERSION@/$(VERSION)/ $(STROPHE)
61+
$(STROPHE): src rollup.config.js node_modules Makefile stamp-npm
62+
npm run build
6963

7064
.PHONY: eslint
7165
eslint: stamp-npm

0 commit comments

Comments
 (0)