Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@react-app-cli/core
Advanced tools
The Command Line Interface for Front-End projects with React
To increase your productivity in React projects and stop copying-pasting files or folders each time you want to create a new component.
npx @react-app-cli/core create component --name Button --type common
or add into your project:
yarn add --dev @react-app-cli/core
yarn react-app-cli create component --name Button --type common
(npx is a package runner tool that comes with npm 5.2+)
When you run react-app-cli within your project and wanna use custom settings create a ".react-cli.json" config file.
{
"baseUrl": "./src",
"ignoreTypes": false,
"layers": {
"dataAccess": "data-access",
"domain": "domain",
"dto": "dto",
"entity": "domain/<name>/entity",
"presenter": "presentation/presenter",
"repository": "domain/<name>/repository",
"service": "domain/<name>/service",
"ui": "presentation/ui"
},
"naming": {
"component": ".component",
"styles": ".styles",
"typings": ".typings"
},
"styles": "styled",
"typescript": true
}
baseUrl
- application entry point;naming
- files pre-extension;layer
- application layers;ignoreTypes
- unchangeable;styles
- styles types generating:
css | less | scss | styled
;typescript
- using ts in project.<option name>
- required;[option name]
- optional.To create a component at the ui layer
of your application, you should use:
react-app-cli create component --name <name> --type [type] [--ignoreTypes]
cmpt
is the shorthand for thecomponent
--name, -n
- component name (will converted to kebab-case for file naming);--type, -t
- component types:
common, modules, pages
. Also you can use custom type as path to component like route/user/components
will be created in <ui layer>/route/user/components
;<ui layer>/components
;--ignoreTypes, -it
- ignore typings files.React App Cli is Open Source software licensed as MIT.
FAQs
The Command Line Interface for Front-End projects with React
The npm package @react-app-cli/core receives a total of 0 weekly downloads. As such, @react-app-cli/core popularity was classified as not popular.
We found that @react-app-cli/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.