0.0.6 • Published 6 years ago
mapineda-script v0.0.6
mapineda-script
Some personal scripts for nodejs development
Installation
$ npm install mapineda-script
Install peer dependencies
Configurations
create mapineda.json in project root
{
"react-scripts": {
"entry": "my/custom/path/entry.js",
"build": "my/custom/path/build.js",
"apps": [
{
"entry": "my/custom/path/entry.js",
"build": "my/custom/path/build.js"
}
]
},
"publish": {
"package": {},
"files": ["files/should/be/add.js"],
"trashs": ["files/should/be/remove.js"]
}
}Usage
react-scripts
Minimal overwrite react-scripts config without eject.
Before use it you should do bootstrapping with Create React App.
start
configuration entry
yarn mapineda-script --react-scripts startargument entry
yarn mapineda-script --react-scripts start my/path/entry.jsbuild
configuration entry
yarn mapineda-script --react-scripts buildargument entry and argument build
yarn mapineda-script --react-scripts build --entry my/entry.jsx --build my/buildconfiguration apps
yarn mapineda-script --react-scripts build --appspack
Warning this is experimental
try with configurations create a final distribution package
yarn mapineda-script --packpublish
Warning this is experimental
try with configurations publish a final distribution package on github
yarn mapineda-script --publishEnvironment development
- Debian GNU/Linux 10 (buster)
- Nodejs v12.18.3
- yarn v1.22.5
- VSCode v1.48.2
License
MIT
Free Software, Hell Yeah!
Disclaimer
- This project was bootstrapped with Create React App.