After React was installed, it was created so that developers would not do anything annoying and unpleasant, such as adding typescript files, creating folders, declaring types for images, and creating stylesheet files.
- All unnecessary files are installed deleted.
- Add default settings for typescript
- Set up to use react-router-dom
- Set up to use react custom hook
- Set up for Landing Page and Error Page.
- In addition, it also removes the default settings for
margin
andpadding
in the browser.
The create-oniec-app library uses the exec
function of the library called child_process. When a function is used, problems such as deleting or modifying existing files can occur.
Read precautions before installing!
- Locate oneiecconfig.json in the path where this module is installed.
- Open the file in the editor and modify the desired part.
- typescript: typescript enable
- name: Desired directory name
- structure: Desired directory structure
Run from the shell of the operating system:
$ npm install -g create-oniec-app
$ npx create-oniec-app <your-project-name>
Run from the shell of the operating system:
$ cd <your-project-location>
$ npm run dev
Everything changed from version 1.1.0
- You can modify
oniecconfig.json
to change the directory structure as you want, or set the directory name, typescript, or not.
- version 1.*.*