Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krakenui/octopus-cra-plugins
Customize create-react-app as plugins by KrakenTeam!!!
https://github.com/krakenui/octopus-cra-plugins
Last synced: about 2 months ago
JSON representation
Customize create-react-app as plugins by KrakenTeam!!!
- Host: GitHub
- URL: https://github.com/krakenui/octopus-cra-plugins
- Owner: krakenui
- Created: 2020-12-21T02:48:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T04:57:04.000Z (about 4 years ago)
- Last Synced: 2024-04-29T20:21:38.068Z (8 months ago)
- Language: TypeScript
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# octopus-cra-plugins
[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/octopus-cra-plugins.svg?style=flat-square
[npm-url]: http://npmjs.org/package/octopus-cra-plugins
[download-image]: https://img.shields.io/npm/dm/octopus-cra-plugins.svg?style=flat-square
[download-url]: https://npmjs.org/package/octopus-cra-plugins## Install
[![octopus-cra-plugins](https://nodei.co/npm/octopus-cra-plugins.png)](https://npmjs.org/package/octopus-cra-plugins)
```
npm install --save octopus-cra-plugins
```## Features
```
- Customize override environments
- Support nightly environments
- Support staging environments
```## Install
- Install octopus-cra-plugins
```
npm install octopus-cra-plugins
```## How it work
#### Override process env
- Declare override:
```
import { overrideProcessEnv } from "octopus-cra-plugins";overrideProcessEnv(workDir, true);
```- Env file `.env.nightly`
- Script:
```
npm run react-scripts build --cra-env nightly
```#### Options
| # | Name | Description | Default |
| --- | ------- | --------------------------------------------------- | ------------------------- |
| 1 | workDir | Working directory path, environments directory path | Process working directory |
| 2 | replace | Is hard replace properties, else soft merge | false |## LICENSE
MIT