@paintswap/estfor-definitions 0.1.5 → 0.1.7
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/README.md +41 -5
- package/asconfig.json +18 -0
- package/build/index.wasm +0 -0
- package/constants.d.ts +646 -0
- package/constants.d.ts.map +1 -0
- package/constants.js +715 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +9 -0
- package/package.json +10 -7
- package/src/index.ts +5 -0
- package/tsconfig.json +7 -1
- package/types.d.ts +158 -0
- package/types.d.ts.map +1 -0
- package/types.js +183 -0
- package/index.ts +0 -4
- /package/src/{lib/estforConstants.ts → constants.ts} +0 -0
- /package/src/{lib/estforTypes.ts → types.ts} +0 -0
package/README.md
CHANGED
|
@@ -3,15 +3,51 @@ Types and Constants for Estfor
|
|
|
3
3
|
|
|
4
4
|
## Build
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
yarn build
|
|
7
7
|
|
|
8
8
|
## Publish to NPM (--access=public needed the first time)
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
yarn publish
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Dev use locally using yarn
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
From library root:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
yarn link
|
|
17
|
+
|
|
18
|
+
From project root:
|
|
19
|
+
|
|
20
|
+
yarn link @paintswap/estfor-definitions
|
|
21
|
+
|
|
22
|
+
## Dev use locally using yalc
|
|
23
|
+
|
|
24
|
+
From library root:
|
|
25
|
+
|
|
26
|
+
yalc publish
|
|
27
|
+
|
|
28
|
+
From project root:
|
|
29
|
+
|
|
30
|
+
yalc link @paintswap/estfor-definitions
|
|
31
|
+
|
|
32
|
+
Push live updates to projects (library root)
|
|
33
|
+
|
|
34
|
+
yarn build
|
|
35
|
+
yalc push
|
|
36
|
+
|
|
37
|
+
## Restore NPM version
|
|
38
|
+
|
|
39
|
+
yarn add @paintswap/estfor-definitions
|
|
40
|
+
|
|
41
|
+
## Normal Usage
|
|
42
|
+
|
|
43
|
+
yarn add @paintswap/estfor-definitions
|
|
44
|
+
|
|
45
|
+
import { EstforConstants, EstforTypes } from '@paintswap/estfor-definitions'
|
|
46
|
+
const { LOG } = EstforConstants
|
|
47
|
+
const LOG = EstforConstants.LOG
|
|
48
|
+
|
|
49
|
+
Can also do single imports:
|
|
50
|
+
|
|
51
|
+
import { LOG } from '@paintswap/estfor-definitions/dist/constants'
|
|
52
|
+
import { Skill } from '@paintswap/estfor-definitions/dist/types'
|
|
17
53
|
|
package/asconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"./src/index.ts"
|
|
4
|
+
],
|
|
5
|
+
"options": {
|
|
6
|
+
"importTable": true
|
|
7
|
+
},
|
|
8
|
+
"targets": {
|
|
9
|
+
"release": {
|
|
10
|
+
"optimize": true,
|
|
11
|
+
"outFile": "build/index.wasm"
|
|
12
|
+
},
|
|
13
|
+
"debug": {
|
|
14
|
+
"debug": true,
|
|
15
|
+
"outFile": "build/debug.wasm"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/build/index.wasm
ADDED
|
Binary file
|