Przeglądaj źródła

Fixes #1961

Make sure dist dir is included in headless NPM package
JC Brand 5 lat temu
rodzic
commit
2dd6bc85ea
4 zmienionych plików z 4 dodań i 4 usunięć
  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 $* $<
 	$(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

+ 1 - 1
package.json

@@ -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 - 1
src/headless/README.md

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

+ 1 - 0
src/headless/package.json

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