Commit 2dd6bc85 authored by JC Brand's avatar JC Brand

Fixes #1961

Make sure dist dir is included in headless NPM package
parent 8824bb26
......@@ -168,8 +168,6 @@ logo/conversejs-filled%.png:: logo/conversejs-filled.svg
$(INKSCAPE) -e $@ -w $* $<
$(OXIPNG) $@
BUILDS = src/headless/dist/converse-headless.min.js
@converse/headless: src/headless
src/headless/dist/converse-headless.min.js: src webpack.common.js node_modules @converse/headless
......
......@@ -20,7 +20,7 @@
],
"scripts": {
"serve": "webpack-dev-server --config webpack.serve.js",
"clean": "rm -rf node_modules dist *.zip",
"clean": "rm -rf node_modules dist *.zip src/headless/dist src/headless/node_modules",
"headless": "webpack --config webpack.headless.js",
"nodeps": "webpack --config webpack.nodeps.js",
"cdn": "ASSET_PATH=https://cdn.conversejs.org/dist/ npm run dev && ASSET_PATH=https://cdn.conversejs.org/dist/ npm run build",
......
......@@ -2,7 +2,8 @@
[Converse](https://conversejs.org) has a special build called the *headless build*.
You can generate it yourself by running ``make dist/converse-headless.js``
You can generate it yourself by running ``make src/headless/dist/converse-headless.js``
in the root of the [converse.js repo](https://github.com/conversejs/converse.js).
The headless build is a bundle of all the non-UI parts of Converse, and its aim
is to provide you with an XMPP library (and application) on which you can build
......
......@@ -9,6 +9,7 @@
"files": [
"*.js",
"*.json",
"dist/",
"README.md",
"utils/*.js",
"templates/*.html",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment