Make sure dist dir is included in headless NPM package
This commit is contained in:
JC Brand 2020-04-13 11:45:02 +02:00
parent 8824bb26c4
commit 2dd6bc85ea
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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",

View File

@ -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

View File

@ -9,6 +9,7 @@
"files": [
"*.js",
"*.json",
"dist/",
"README.md",
"utils/*.js",
"templates/*.html",