-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update index.rst Usage React with AssetMapper #1941
base: 2.x
Are you sure you want to change the base?
Conversation
Completing the documentation of usage with UX React with Asset Mapper
Completing the documentation of usage with UX React with Asset Mapper
1- Create package.json in your project. This file is not included in the **Standard package**. (code below) | ||
|
||
.. code-block:: json-object | ||
|
||
{ | ||
"devDependencies": { | ||
"@babel/cli": "^7.21.5", | ||
"@babel/core": "^7.21.8", | ||
"@babel/preset-react": "^7.18.6", | ||
"svelte": "^3.59.1" | ||
}, | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"build": "yarn build-react && yarn build-svelte", | ||
"build-react": "babel assets/react --out-dir assets/build/react --presets=@babel/preset-react", | ||
"build-svelte": "node bin/compile_svelte.js" | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to add the content of the package.json. Let's stay simple and say that we need a package.json and to install few dependencies.
JavaScript files: | ||
|
||
.. code-block:: yaml | ||
|
||
# config/packages/react.yaml | ||
# config/packages/asset_mapper.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the file name ?
|
||
.. code-block:: terminal | ||
|
||
$ npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use npm and below yarn. Let's stay on yarn
Completing the documentation of usage with UX React with Asset Mapper