@edgeros/fs 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Makefile +32 -0
  2. package/package.json +1 -1
package/Makefile ADDED
@@ -0,0 +1,32 @@
1
+ .PHONY: build compile install clean publish ts-clean
2
+
3
+ JSRE_MODULES_DIR = ./jsre_modules
4
+ NODE_MODULES = ./node_modules
5
+ JSRE_DEPENDENCIES = @edgeros/jsre-types @edgeros/jsre-tape
6
+ TS_OUTDIR= ./dist
7
+
8
+ install:
9
+ npm i
10
+
11
+ ts-clean:
12
+ rm -rf $(TS_OUTDIR)
13
+
14
+ compile: ts-clean
15
+ tsc
16
+
17
+ build: compile
18
+ for dep in $(JSRE_DEPENDENCIES); do \
19
+ mkdir -p $(JSRE_MODULES_DIR)/$$dep && \
20
+ cp -r $(NODE_MODULES)/$$dep/* $(JSRE_MODULES_DIR)/$$dep; \
21
+ done
22
+
23
+ clean:
24
+ rm -rf ./dist
25
+ rm -rf ./node_modules
26
+ rm -rf ./jsre_modules
27
+
28
+ publish: compile
29
+ cp .npmrc $(TS_OUTDIR)/
30
+ cp package.json $(TS_OUTDIR)/
31
+ cp README.md $(TS_OUTDIR)/
32
+ cd $(TS_OUTDIR) && npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeros/fs",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main" :"index.js",
5
5
  "scripts": {
6
6
  "build": "npx tsc",