glyphix 1.0.7 → 1.0.9
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.
- package/glyphix.js +5 -2
- package/package.json +3 -2
- package/script/install.js +1 -0
package/glyphix.js
CHANGED
|
@@ -165,8 +165,11 @@ function lintFile(rootPath) {
|
|
|
165
165
|
warnIgnored: true,
|
|
166
166
|
overrideConfig: {
|
|
167
167
|
rules: {
|
|
168
|
-
"prettier/prettier": "
|
|
169
|
-
"@typescript-eslint/ban-ts-comment": "
|
|
168
|
+
"prettier/prettier": "warn",
|
|
169
|
+
"@typescript-eslint/ban-ts-comment": "warn",
|
|
170
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
171
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
172
|
+
quotes: "off"
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glyphix",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"glyphix.js",
|
|
8
8
|
"types/",
|
|
9
|
-
"template/"
|
|
9
|
+
"template/",
|
|
10
|
+
"script/"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"postinstall": "node ./script/install.js"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=Object.create;var c=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var w=(o,i,n,r)=>{if(i&&typeof i=="object"||typeof i=="function")for(let m of h(i))!_.call(o,m)&&m!==n&&c(o,m,{get:()=>i[m],enumerable:!(r=f(i,m))||r.enumerable});return o};var d=(o,i,n)=>(n=o!=null?u(x(o)):{},w(i||!o||!o.__esModule?c(n,"default",{value:o,enumerable:!0}):n,o));var g=d(require("http")),l=d(require("fs")),a=require("child_process"),s=require("fs-extra"),e=require("path"),p=d(require("adm-zip"));function y(o,i){let n=l.default.createWriteStream(i);return new Promise((r,m)=>{g.default.get(o,t=>{if(t.statusCode!==200){console.error(`Failed to download file: ${t.statusCode}`),t.resume(),m();return}t.pipe(n),n.on("finish",()=>{n.close(()=>{console.log("Download completed."),r(i)})})}).on("error",t=>{l.default.unlink(i,()=>{}),console.error(`Error downloading file: ${t.message}`),m()})})}function b(){let o="http://10.147.18.10:9012/download/wearable/glyphix-npm-drawin-arm64-test.zip",i=(0,e.parse)(o),n=`${i.name}${i.ext}`,r=(0,e.resolve)(__dirname,"../emu/");return(0,s.existsSync)(r)||(0,s.mkdirSync)(r),y(o,(0,e.resolve)(r,n))}function P(o,i){new p.default(o).extractAllTo(i,!0)}(0,s.existsSync)((0,e.resolve)(__dirname,"emu/bin"))||b().then(o=>{P(o,(0,e.dirname)(o)),(0,a.spawn)("chmod",["+x",(0,e.resolve)(__dirname,"../emu/bin/gx")]),(0,a.spawn)("chmod",["+x",(0,e.resolve)(__dirname,"../emu/bin/glyphix-emu")]),(0,a.spawn)("chmod",["+x",(0,e.resolve)(__dirname,"../emu/bin/glyphix-jsc")]),(0,a.spawn)("chmod",["+x",(0,e.resolve)(__dirname,"../emu/bin/image-forge")])});
|