Explorar o código

Use package.json files to specify more precisely what gets packed

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
9c5fc2e4d3
Modificáronse 3 ficheiros con 11 adicións e 8 borrados
  1. 0 5
      Makefile
  2. 5 1
      package.json
  3. 6 2
      src/headless/package.json

+ 0 - 5
Makefile

@@ -62,10 +62,6 @@ serve: stamp-npm
 serve_bg: stamp-npm
 serve_bg: stamp-npm
 	$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1 -s &
 	$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1 -s &
 
 
-.PHONY: notemps
-notemps:
-	find -name "*~" -exec rm {} \;
-
 ########################################################################
 ########################################################################
 ## Translation machinery
 ## Translation machinery
 
 
@@ -102,7 +98,6 @@ release:
 	make pot
 	make pot
 	make po
 	make po
 	make build
 	make build
-	make notemps
 	npm pack
 	npm pack
 
 
 .PHONY: postrelease
 .PHONY: postrelease

+ 5 - 1
package.json

@@ -12,7 +12,11 @@
     "locale/",
     "locale/",
     "sass/",
     "sass/",
     "sounds/",
     "sounds/",
-    "src/"
+    "src/*.js",
+    "src/utils/*.js",
+    "src/templates/*.html",
+    "src/templates/*.svg",
+    "src/headless/"
   ],
   ],
   "scripts": {
   "scripts": {
     "serve": "webpack-dev-server --config webpack.serve.js",
     "serve": "webpack-dev-server --config webpack.serve.js",

+ 6 - 2
src/headless/package.json

@@ -7,8 +7,12 @@
   "license": "MPL-2.0",
   "license": "MPL-2.0",
   "main": "dist/converse-headless.min.js",
   "main": "dist/converse-headless.min.js",
   "files": [
   "files": [
-    "**/*.js",
-    "templates/*"
+    "*.js",
+    "*.json",
+    "README.md",
+    "utils/*.js",
+    "templates/*.html",
+    "templates/*.svg"
   ],
   ],
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",