0.0.6 • Published 6 years ago

mapineda-script v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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 start

argument entry

yarn mapineda-script --react-scripts start my/path/entry.js

build

configuration entry

yarn mapineda-script --react-scripts build

argument entry and argument build

yarn mapineda-script --react-scripts build --entry my/entry.jsx --build my/build

configuration apps

yarn mapineda-script --react-scripts build --apps

pack

Warning this is experimental

try with configurations create a final distribution package

yarn mapineda-script --pack

publish

Warning this is experimental

try with configurations publish a final distribution package on github

yarn mapineda-script --publish

Environment 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

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago

0.0.2

6 years ago

0.0.0

6 years ago