Browse Source

Fixes #1961

Make sure dist dir is included in headless NPM package
JC Brand 5 years ago
parent
commit
2dd6bc85ea
4 changed files with 4 additions and 4 deletions
  1. 0 2
      Makefile
  2. 1 1
      package.json
  3. 2 1
      src/headless/README.md
  4. 1 0
      src/headless/package.json

+ 0 - 2
Makefile

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

+ 1 - 1
package.json

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

+ 2 - 1
src/headless/README.md

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

+ 1 - 0
src/headless/package.json

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