Skip to content

Commit

Permalink
🔖 0.2.0 (#1)
Browse files Browse the repository at this point in the history
* 👽 update default babelPresetFilePath to match new CRA

* ✨ add badges

* 🔖 0.2.0
  • Loading branch information
a-tokyo authored Jul 25, 2018
1 parent 3d45b1a commit e67199d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# inject-babel-plugins-cra
🔧 Injects babel plugins into [create-react-app](https://github.com/facebook/create-react-app) without ejecting.

[![npm](https://img.shields.io/npm/v/inject-babel-plugins-cra.svg)](https://www.npmjs.com/package/inject-babel-plugins-cra)
[![CircleCI](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser.svg)](https://circleci.com/gh/A-Tokyo/inject-babel-plugins-cra/edit#badges)
[![npm](https://img.shields.io/npm/l/inject-babel-plugins-cra.svg)](https://github.com/A-Tokyo/inject-babel-plugins-cra/blob/master/LICENSE)

## Getting started
### Install the module
Run `yarn add --dev inject-babel-plugins-cra`.
Expand Down Expand Up @@ -50,6 +54,7 @@ Run `yarn add --dev inject-babel-plugins-cra`.
/* The string to match against before injecting the plugins */
stringMatcher?: string,
} = {
/** For older version of CRA*/
babelPresetFilePath: './node_modules/babel-preset-react-app/index.js',
stringMatcher: 'const plugins = [',
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inject-babel-plugins-cra",
"version": "0.1.0",
"version": "0.2.0",
"description": "🔧 Injects babel plugins into create-react-app without ejecting.",
"author": {
"name": "Ahmed Tarek",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from 'fs';
import path from 'path';

const defaultBabelPresetRAFilePath: string =
'./node_modules/babel-preset-react-app/index.js';
'./node_modules/babel-preset-react-app/create.js';

const defaultBabelPresetStringMatcher: string = 'const plugins = [';

Expand Down

0 comments on commit e67199d

Please sign in to comment.