Ver código fonte

Add lerna, http-server and a Makefile

JC Brand 5 anos atrás
pai
commit
972cd6d12b
5 arquivos alterados com 5208 adições e 156 exclusões
  1. 1 0
      .gitignore
  2. 17 0
      Makefile
  3. 6 0
      lerna.json
  4. 5179 155
      package-lock.json
  5. 5 1
      package.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules

+ 17 - 0
Makefile

@@ -0,0 +1,17 @@
+HTTPSERVE	 	?= ./node_modules/.bin/http-server
+HTTPSERVE_PORT	?= 8001
+LERNA			?= ./node_modules/.bin/lerna
+
+.PHONY: help
+help:
+	@echo "Please use \`make <target>' where <target> is one of the following:"
+	@echo ""
+	@echo " serve       	Serve this directory via a webserver on port 8001."
+	@echo " node_modules	Install NPM dependencies"
+
+node_modules: $(LERNA) package.json package-lock.json
+	npm run lerna
+
+.PHONY: serve
+serve: node_modules
+	$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1

+ 6 - 0
lerna.json

@@ -0,0 +1,6 @@
+{
+  "packages": [
+    "packages/*"
+  ],
+  "version": "independent"
+}

Diferenças do arquivo suprimidas por serem muito extensas
+ 5179 - 155
package-lock.json


+ 5 - 1
package.json

@@ -4,7 +4,7 @@
   "description": "Community plugins for Converse.js",
   "main": "index.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "lerna": "lerna bootstrap --hoist --ignore-scripts"
   },
   "repository": {
     "type": "git",
@@ -23,5 +23,9 @@
   "homepage": "https://github.com/conversejs/community-plugins#readme",
   "dependencies": {
     "npm": "^6.14.4"
+  },
+  "devDependencies": {
+    "http-server": "^0.12.3",
+    "lerna": "^3.20.2"
   }
 }

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff