@gamelearn/arcade-components 1.7.8-hotfix-1 → 1.7.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/README.md
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
# Arcade Components
|
|
2
|
-
> librería de componentes para Arcade (aka engine 2.0)
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/arcade-components) [](https://standardjs.com)
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
yarn add @gamelearn/arcade-components
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```jsx
|
|
15
|
-
import React, { Component } from 'react';
|
|
16
|
-
|
|
17
|
-
import { Button } from 'arcade-components';
|
|
18
|
-
|
|
19
|
-
export default class App extends Component {
|
|
20
|
-
render() {
|
|
21
|
-
return (
|
|
22
|
-
<div>
|
|
23
|
-
<Button>Enjoy</Button>
|
|
24
|
-
</div>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Generar version hotfix para arcade/master-stg
|
|
32
|
-
|
|
33
|
-
Para generar una version hotfix nos vamos al commit que desplego la version que utiliza actualmente arcade/master-stg y creamos una rama sobre ella.
|
|
34
|
-
|
|
35
|
-
Generamos los cambios o hacemos cherrypick de ellos si ya estan creados y una vez terminemos con los cambios tendremos que cambiar la version del package.json a una tal que asi :
|
|
36
|
-
|
|
37
|
-
`"version": "1.3.5-fix-1",`
|
|
38
|
-
|
|
39
|
-
Habiendo cambiado ya la version para publicarla ejecutamos:
|
|
40
|
-
* `yarn publish-hotfix`
|
|
41
|
-
|
|
42
|
-
Una vez publicada en npm ir a la versión master de arcade y sustituir la versión de arcade-components.
|
|
43
|
-
|
|
44
|
-
## Available Scripts
|
|
45
|
-
|
|
46
|
-
Para ver Storybook en local
|
|
47
|
-
|
|
48
|
-
### `yarn start`
|
|
49
|
-
|
|
50
|
-
Para compilar la librería a dist
|
|
51
|
-
|
|
52
|
-
### `yarn compile`
|
|
53
|
-
|
|
54
|
-
Para dejar a babel observando cambios y ejecuntando auto-compilación puedes pasarle --watch
|
|
55
|
-
|
|
56
|
-
`yarn compile --watch`
|
|
57
|
-
|
|
58
|
-
### `yarn generate <componentName>`
|
|
59
|
-
|
|
60
|
-
Para añadir un componente nuevo se recomienda usar el generador automático que hara el scaffolding básico de dicho componente, coge el nombre como primer parámetro y si lo llamas sin parámetro te lo preguntará por el prompt.
|
|
61
|
-
|
|
62
|
-
`yarn generate`
|
|
63
|
-
|
|
64
|
-
## How to link arcade-components in other repos (WIP)
|
|
65
|
-
|
|
66
|
-
Para trabajar con arcade-components en local si necesidad de subir a git ni a npm no podemos trabajar con `yarn link` ya que da un error con los hooks de react.
|
|
67
|
-
|
|
68
|
-
Cómo solución alternativa podemos instalar `yalc` que permite publicar el paquete en local e importarlo desde `arcade`.
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
yarn global add yalc
|
|
72
|
-
```
|
|
73
|
-
Si teneis problemas instalándolo en global :
|
|
74
|
-
yarn global add yalc --prefix /usr/local
|
|
75
|
-
|
|
76
|
-
Para generar el paquete en el store local:
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
yarn
|
|
80
|
-
yarn compile
|
|
81
|
-
yalc publish o yarn yalc publish
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Después, en el repositorio de `arcade` tendremos que linkar el paquete generado de la siguiente forma:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
yalc link @gamelearn/arcade-components
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Y voilá, ya podremos trabajar con arcade y arcade-components en local sin publicar nada.
|
|
91
|
-
|
|
92
|
-
Una vez terminemos de trabajar con el paquete linkado en `arcade`, no nos olvidemos de borrar el link:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
yalc remove --all
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## License
|
|
99
|
-
|
|
100
|
-
UNLICENSED © [gamelearn](https://github.com/gamelearn)
|
|
1
|
+
# Arcade Components
|
|
2
|
+
> librería de componentes para Arcade (aka engine 2.0)
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/arcade-components) [](https://standardjs.com)
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
yarn add @gamelearn/arcade-components
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```jsx
|
|
15
|
+
import React, { Component } from 'react';
|
|
16
|
+
|
|
17
|
+
import { Button } from 'arcade-components';
|
|
18
|
+
|
|
19
|
+
export default class App extends Component {
|
|
20
|
+
render() {
|
|
21
|
+
return (
|
|
22
|
+
<div>
|
|
23
|
+
<Button>Enjoy</Button>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Generar version hotfix para arcade/master-stg
|
|
32
|
+
|
|
33
|
+
Para generar una version hotfix nos vamos al commit que desplego la version que utiliza actualmente arcade/master-stg y creamos una rama sobre ella.
|
|
34
|
+
|
|
35
|
+
Generamos los cambios o hacemos cherrypick de ellos si ya estan creados y una vez terminemos con los cambios tendremos que cambiar la version del package.json a una tal que asi :
|
|
36
|
+
|
|
37
|
+
`"version": "1.3.5-fix-1",`
|
|
38
|
+
|
|
39
|
+
Habiendo cambiado ya la version para publicarla ejecutamos:
|
|
40
|
+
* `yarn publish-hotfix`
|
|
41
|
+
|
|
42
|
+
Una vez publicada en npm ir a la versión master de arcade y sustituir la versión de arcade-components.
|
|
43
|
+
|
|
44
|
+
## Available Scripts
|
|
45
|
+
|
|
46
|
+
Para ver Storybook en local
|
|
47
|
+
|
|
48
|
+
### `yarn start`
|
|
49
|
+
|
|
50
|
+
Para compilar la librería a dist
|
|
51
|
+
|
|
52
|
+
### `yarn compile`
|
|
53
|
+
|
|
54
|
+
Para dejar a babel observando cambios y ejecuntando auto-compilación puedes pasarle --watch
|
|
55
|
+
|
|
56
|
+
`yarn compile --watch`
|
|
57
|
+
|
|
58
|
+
### `yarn generate <componentName>`
|
|
59
|
+
|
|
60
|
+
Para añadir un componente nuevo se recomienda usar el generador automático que hara el scaffolding básico de dicho componente, coge el nombre como primer parámetro y si lo llamas sin parámetro te lo preguntará por el prompt.
|
|
61
|
+
|
|
62
|
+
`yarn generate`
|
|
63
|
+
|
|
64
|
+
## How to link arcade-components in other repos (WIP)
|
|
65
|
+
|
|
66
|
+
Para trabajar con arcade-components en local si necesidad de subir a git ni a npm no podemos trabajar con `yarn link` ya que da un error con los hooks de react.
|
|
67
|
+
|
|
68
|
+
Cómo solución alternativa podemos instalar `yalc` que permite publicar el paquete en local e importarlo desde `arcade`.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
yarn global add yalc
|
|
72
|
+
```
|
|
73
|
+
Si teneis problemas instalándolo en global :
|
|
74
|
+
yarn global add yalc --prefix /usr/local
|
|
75
|
+
|
|
76
|
+
Para generar el paquete en el store local:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
yarn
|
|
80
|
+
yarn compile
|
|
81
|
+
yalc publish o yarn yalc publish
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Después, en el repositorio de `arcade` tendremos que linkar el paquete generado de la siguiente forma:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
yalc link @gamelearn/arcade-components
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Y voilá, ya podremos trabajar con arcade y arcade-components en local sin publicar nada.
|
|
91
|
+
|
|
92
|
+
Una vez terminemos de trabajar con el paquete linkado en `arcade`, no nos olvidemos de borrar el link:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
yalc remove --all
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
UNLICENSED © [gamelearn](https://github.com/gamelearn)
|
|
@@ -44,7 +44,8 @@ var DecisionBody = function DecisionBody(_ref) {
|
|
|
44
44
|
children = _ref.children,
|
|
45
45
|
translate = _ref.translate,
|
|
46
46
|
hasRewards = _ref.hasRewards,
|
|
47
|
-
inScene = _ref.inScene
|
|
47
|
+
inScene = _ref.inScene,
|
|
48
|
+
required = _ref.required;
|
|
48
49
|
|
|
49
50
|
var _useState = (0, _react.useState)(currentSelectedChoice),
|
|
50
51
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -84,13 +85,19 @@ var DecisionBody = function DecisionBody(_ref) {
|
|
|
84
85
|
className: "popup__questions"
|
|
85
86
|
}, /*#__PURE__*/_react.default.createElement(_Options.default, optionsProps)), /*#__PURE__*/_react.default.createElement("div", {
|
|
86
87
|
className: "popup--buttons"
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
88
|
+
}, required ? /*#__PURE__*/_react.default.createElement("button", {
|
|
88
89
|
type: "button",
|
|
89
90
|
className: "gat--btn gat--btn__primary ".concat(selectedChoice.id !== undefined ? '' : 'disabled'),
|
|
90
91
|
onClick: function onClick() {
|
|
91
92
|
return canNext ? onNext(selectedChoice) : onBack(selectedChoice);
|
|
92
93
|
}
|
|
93
|
-
}, canNext || selectedChoice.id === undefined ? translate('screens.continue') : translate('tests.retry'))
|
|
94
|
+
}, canNext || selectedChoice.id === undefined ? translate('screens.continue') : translate('tests.retry')) : /*#__PURE__*/_react.default.createElement("button", {
|
|
95
|
+
type: "button",
|
|
96
|
+
className: "gat--btn gat--btn__primary ".concat(selectedChoice.id !== undefined ? '' : 'disabled'),
|
|
97
|
+
onClick: function onClick() {
|
|
98
|
+
return onNext(selectedChoice);
|
|
99
|
+
}
|
|
100
|
+
}, translate('screens.continue'))));
|
|
94
101
|
};
|
|
95
102
|
|
|
96
103
|
var ComplexDecision = function ComplexDecision() {
|
|
@@ -113,6 +113,7 @@ var DecisionComponent = function DecisionComponent(_ref) {
|
|
|
113
113
|
hasRewards: resultChoice.rewards || [],
|
|
114
114
|
failed: failed,
|
|
115
115
|
inScene: inScene,
|
|
116
|
+
required: required,
|
|
116
117
|
changeOption: function changeOption(option) {
|
|
117
118
|
playSound('click-ui');
|
|
118
119
|
setResultChoice(option);
|
|
@@ -193,18 +194,8 @@ var DecisionComponent = function DecisionComponent(_ref) {
|
|
|
193
194
|
complex: true
|
|
194
195
|
});
|
|
195
196
|
} else if (!required) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
payload: choice.rewards,
|
|
199
|
-
finish: true,
|
|
200
|
-
complex: true,
|
|
201
|
-
onFinish: _onFinish ? function () {
|
|
202
|
-
return _onFinish(choice, function () {
|
|
203
|
-
setResultChoice({});
|
|
204
|
-
selectView('options');
|
|
205
|
-
});
|
|
206
|
-
} : null
|
|
207
|
-
});
|
|
197
|
+
setResultChoice({});
|
|
198
|
+
selectView('options');
|
|
208
199
|
}
|
|
209
200
|
}
|
|
210
201
|
}
|
package/package.json
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gamelearn/arcade-components",
|
|
3
|
-
"author": "Gamelearn",
|
|
4
|
-
"license": "unlicense",
|
|
5
|
-
"version": "1.7.
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md"
|
|
10
|
-
],
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/gamelearn/arcade-components"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@gamelearn/arcade-styles": "0.7.2",
|
|
17
|
-
"@gamelearn/arcade-three-core": "1.1
|
|
18
|
-
"@react-three/drei": "^7.20.0",
|
|
19
|
-
"@react-three/fiber": "^7.0.17",
|
|
20
|
-
"@testing-library/jest-dom": "5.11.4",
|
|
21
|
-
"@testing-library/react": "11.1.0",
|
|
22
|
-
"@testing-library/user-event": "13.5.0",
|
|
23
|
-
"global": "^4.4.0",
|
|
24
|
-
"hls.js": "0.12.4",
|
|
25
|
-
"html-react-parser": "^1.4.0",
|
|
26
|
-
"interactjs": "^1.10.11",
|
|
27
|
-
"konva": "^7.2.5",
|
|
28
|
-
"prop-types": "15.7.2",
|
|
29
|
-
"react-konva": "^17.0.2-0",
|
|
30
|
-
"react-konva-utils": "^0.2.0",
|
|
31
|
-
"react-pdf": "5.2.0",
|
|
32
|
-
"react-promise-suspense": "0.3.3",
|
|
33
|
-
"react-typist": "^2.0.5",
|
|
34
|
-
"three": "0.132.2",
|
|
35
|
-
"web-vitals": "0.2.4"
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"start": "npm run storybook",
|
|
39
|
-
"clean": "rimraf dist",
|
|
40
|
-
"watch": "npx nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
|
|
41
|
-
"compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
|
|
42
|
-
"test": "react-scripts test",
|
|
43
|
-
"eject": "react-scripts eject",
|
|
44
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
45
|
-
"build-storybook": "build-storybook -o build",
|
|
46
|
-
"generate": "plop",
|
|
47
|
-
"lint": "npx eslint src --ext js,json",
|
|
48
|
-
"lint:fix": "npx eslint src --ext js,json --fix",
|
|
49
|
-
"lint:quiet": "npx eslint src --ext js,json --quiet",
|
|
50
|
-
"publish-hotfix": "yarn compile && npm publish && npm run version-tag",
|
|
51
|
-
"version-tag": "P_VER=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$P_VER && git push origin v$P_VER"
|
|
52
|
-
},
|
|
53
|
-
"browserslist": {
|
|
54
|
-
"production": [
|
|
55
|
-
">0.2%",
|
|
56
|
-
"not dead",
|
|
57
|
-
"not op_mini all"
|
|
58
|
-
],
|
|
59
|
-
"development": [
|
|
60
|
-
"last 1 chrome version",
|
|
61
|
-
"last 1 firefox version",
|
|
62
|
-
"last 1 safari version"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@babel/cli": "7.12.10",
|
|
67
|
-
"@babel/eslint-parser": "^7.15.8",
|
|
68
|
-
"@babel/preset-env": "7.12.11",
|
|
69
|
-
"@babel/preset-react": "7.12.10",
|
|
70
|
-
"@gamelearn/version": "^1.3.1",
|
|
71
|
-
"@react-three/test-renderer": "6.0.6",
|
|
72
|
-
"@storybook/addon-actions": "6.1.11",
|
|
73
|
-
"@storybook/addon-essentials": "6.1.11",
|
|
74
|
-
"@storybook/addon-links": "6.1.11",
|
|
75
|
-
"@storybook/addons": "^6.3.8",
|
|
76
|
-
"@storybook/node-logger": "6.1.11",
|
|
77
|
-
"@storybook/preset-create-react-app": "3.1.5",
|
|
78
|
-
"@storybook/react": "6.1.11",
|
|
79
|
-
"@storybook/theming": "^6.3.8",
|
|
80
|
-
"babel-loader": "8.2.2",
|
|
81
|
-
"cross-env": "7.0.3",
|
|
82
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
83
|
-
"eslint-config-prettier": "^8.3.0",
|
|
84
|
-
"eslint-plugin-json-format": "^2.0.1",
|
|
85
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
86
|
-
"husky": "4.3.0",
|
|
87
|
-
"nodemon": "^2.0.13",
|
|
88
|
-
"plop": "^2.7.4",
|
|
89
|
-
"prettier": "^2.5.0",
|
|
90
|
-
"react": "0.0.0-experimental-27659559e",
|
|
91
|
-
"react-dom": "0.0.0-experimental-27659559e",
|
|
92
|
-
"react-scripts": "4.0.1",
|
|
93
|
-
"rimraf": "3.0.2"
|
|
94
|
-
},
|
|
95
|
-
"jest": {
|
|
96
|
-
"transformIgnorePatterns": [
|
|
97
|
-
"node_modules/(?!(three)/)"
|
|
98
|
-
],
|
|
99
|
-
"moduleNameMapper": {
|
|
100
|
-
"^react-pdf$": "react-pdf/dist/umd/entry.jest",
|
|
101
|
-
"^react-konva-utils$": "react-pdf/dist/umd/entry.jest"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"husky": {
|
|
105
|
-
"hooks": {
|
|
106
|
-
"prepare-commit-msg": "bash node_modules/@gamelearn/version/scripts/update_version.sh -p hooks.config ${HUSKY_GIT_PARAMS}",
|
|
107
|
-
"post-commit": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config",
|
|
108
|
-
"post-merge": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gamelearn/arcade-components",
|
|
3
|
+
"author": "Gamelearn",
|
|
4
|
+
"license": "unlicense",
|
|
5
|
+
"version": "1.7.9",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/gamelearn/arcade-components"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@gamelearn/arcade-styles": "0.7.2",
|
|
17
|
+
"@gamelearn/arcade-three-core": "1.0.1",
|
|
18
|
+
"@react-three/drei": "^7.20.0",
|
|
19
|
+
"@react-three/fiber": "^7.0.17",
|
|
20
|
+
"@testing-library/jest-dom": "5.11.4",
|
|
21
|
+
"@testing-library/react": "11.1.0",
|
|
22
|
+
"@testing-library/user-event": "13.5.0",
|
|
23
|
+
"global": "^4.4.0",
|
|
24
|
+
"hls.js": "0.12.4",
|
|
25
|
+
"html-react-parser": "^1.4.0",
|
|
26
|
+
"interactjs": "^1.10.11",
|
|
27
|
+
"konva": "^7.2.5",
|
|
28
|
+
"prop-types": "15.7.2",
|
|
29
|
+
"react-konva": "^17.0.2-0",
|
|
30
|
+
"react-konva-utils": "^0.2.0",
|
|
31
|
+
"react-pdf": "5.2.0",
|
|
32
|
+
"react-promise-suspense": "0.3.3",
|
|
33
|
+
"react-typist": "^2.0.5",
|
|
34
|
+
"three": "0.132.2",
|
|
35
|
+
"web-vitals": "0.2.4"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"start": "npm run storybook",
|
|
39
|
+
"clean": "rimraf dist",
|
|
40
|
+
"watch": "npx nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
|
|
41
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
|
|
42
|
+
"test": "react-scripts test",
|
|
43
|
+
"eject": "react-scripts eject",
|
|
44
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
45
|
+
"build-storybook": "build-storybook -o build",
|
|
46
|
+
"generate": "plop",
|
|
47
|
+
"lint": "npx eslint src --ext js,json",
|
|
48
|
+
"lint:fix": "npx eslint src --ext js,json --fix",
|
|
49
|
+
"lint:quiet": "npx eslint src --ext js,json --quiet",
|
|
50
|
+
"publish-hotfix": "yarn compile && npm publish && npm run version-tag",
|
|
51
|
+
"version-tag": "P_VER=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$P_VER && git push origin v$P_VER"
|
|
52
|
+
},
|
|
53
|
+
"browserslist": {
|
|
54
|
+
"production": [
|
|
55
|
+
">0.2%",
|
|
56
|
+
"not dead",
|
|
57
|
+
"not op_mini all"
|
|
58
|
+
],
|
|
59
|
+
"development": [
|
|
60
|
+
"last 1 chrome version",
|
|
61
|
+
"last 1 firefox version",
|
|
62
|
+
"last 1 safari version"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@babel/cli": "7.12.10",
|
|
67
|
+
"@babel/eslint-parser": "^7.15.8",
|
|
68
|
+
"@babel/preset-env": "7.12.11",
|
|
69
|
+
"@babel/preset-react": "7.12.10",
|
|
70
|
+
"@gamelearn/version": "^1.3.1",
|
|
71
|
+
"@react-three/test-renderer": "6.0.6",
|
|
72
|
+
"@storybook/addon-actions": "6.1.11",
|
|
73
|
+
"@storybook/addon-essentials": "6.1.11",
|
|
74
|
+
"@storybook/addon-links": "6.1.11",
|
|
75
|
+
"@storybook/addons": "^6.3.8",
|
|
76
|
+
"@storybook/node-logger": "6.1.11",
|
|
77
|
+
"@storybook/preset-create-react-app": "3.1.5",
|
|
78
|
+
"@storybook/react": "6.1.11",
|
|
79
|
+
"@storybook/theming": "^6.3.8",
|
|
80
|
+
"babel-loader": "8.2.2",
|
|
81
|
+
"cross-env": "7.0.3",
|
|
82
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
83
|
+
"eslint-config-prettier": "^8.3.0",
|
|
84
|
+
"eslint-plugin-json-format": "^2.0.1",
|
|
85
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
86
|
+
"husky": "4.3.0",
|
|
87
|
+
"nodemon": "^2.0.13",
|
|
88
|
+
"plop": "^2.7.4",
|
|
89
|
+
"prettier": "^2.5.0",
|
|
90
|
+
"react": "0.0.0-experimental-27659559e",
|
|
91
|
+
"react-dom": "0.0.0-experimental-27659559e",
|
|
92
|
+
"react-scripts": "4.0.1",
|
|
93
|
+
"rimraf": "3.0.2"
|
|
94
|
+
},
|
|
95
|
+
"jest": {
|
|
96
|
+
"transformIgnorePatterns": [
|
|
97
|
+
"node_modules/(?!(three)/)"
|
|
98
|
+
],
|
|
99
|
+
"moduleNameMapper": {
|
|
100
|
+
"^react-pdf$": "react-pdf/dist/umd/entry.jest",
|
|
101
|
+
"^react-konva-utils$": "react-pdf/dist/umd/entry.jest"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"husky": {
|
|
105
|
+
"hooks": {
|
|
106
|
+
"prepare-commit-msg": "bash node_modules/@gamelearn/version/scripts/update_version.sh -p hooks.config ${HUSKY_GIT_PARAMS}",
|
|
107
|
+
"post-commit": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config",
|
|
108
|
+
"post-merge": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|