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 $* $< $(INKSCAPE) -e $@ -w $* $<
$(OXIPNG) $@ $(OXIPNG) $@
BUILDS = src/headless/dist/converse-headless.min.js
@converse/headless: src/headless @converse/headless: src/headless
src/headless/dist/converse-headless.min.js: src webpack.common.js node_modules @converse/headless src/headless/dist/converse-headless.min.js: src webpack.common.js node_modules @converse/headless

View File

@ -20,7 +20,7 @@
], ],
"scripts": { "scripts": {
"serve": "webpack-dev-server --config webpack.serve.js", "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", "headless": "webpack --config webpack.headless.js",
"nodeps": "webpack --config webpack.nodeps.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", "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*. [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 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 is to provide you with an XMPP library (and application) on which you can build

View File

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