Skip to content

Commit

Permalink
refactor: rename the package to ember-react-components
Browse files Browse the repository at this point in the history
BREAKING CHANGE: New package name and installation instructions
  • Loading branch information
alexlafroscia committed Jun 14, 2018
1 parent e59ea28 commit 0bec444
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 29 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ember-cli-react
ember-react-components
==============================================================================

[![Build Status](https://travis-ci.org/alexlafroscia/ember-cli-react.svg?branch=master)](https://travis-ci.org/alexlafroscia/ember-cli-react)
[![Build Status](https://travis-ci.org/alexlafroscia/ember-react-components.svg?branch=master)](https://travis-ci.org/alexlafroscia/ember-react-components)

> Consume React components in Ember
Expand All @@ -11,8 +11,7 @@ Installation
------------------------------------------------------------------------------

```bash
ember install alexlafroscia/ember-cli-react
ember g ember-cli-react
ember install ember-react-components
```

Compatibility
Expand All @@ -30,7 +29,7 @@ As an example, you can create a component like this:
```javascript
// app/components/my-react-component.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class extends React.Component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class <%= classifiedModuleName %> extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
name: 'ember-cli-react',
name: 'ember-react-components',

options: {
babel: {
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "ember-cli-react",
"name": "ember-react-components",
"version": "1.1.0",
"description": "The default blueprint for ember-cli addons.",
"description": "React component support in Ember",
"keywords": [
"ember-addon"
"ember-addon",
"decorator",
"react"
],
"license": "MIT",
"author": "",
"directories": {
"doc": "doc",
"test": "tests"
},
"homepage": "https://alexlafroscia.com/ember-cli-react",
"repository": "https://github.com/alexlafroscia/ember-cli-react",
"homepage": "https://alexlafroscia.com/ember-react-components",
"repository": "https://github.com/alexlafroscia/ember-react-components",
"scripts": {
"build": "ember build",
"lint:js": "eslint --ext js --ext ts .",
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/basic-component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// BEGIN-SNIPPET basic-component.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class BasicComponent extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/functional-component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// BEGIN-SNIPPET functional-component.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

export default WithEmberSupport(function FunctionalComponent(props) {
const { name, children } = props;
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/invoke-action.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class InvokeAction extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/set-state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class WithSetState extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/using-service.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// BEGIN-SNIPPET using-service.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';
import { get } from '@ember/object';
import { service } from '@ember-decorators/service';

Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/with-properties.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class WithProperties extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/yield-to-children.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// BEGIN-SNIPPET yield-to-children.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class YieldToChildren extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/docs/features/functional/template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stateless, Functional Components

If you don't want to create a normal, `Class`-based component, `ember-cli-react` also supports functional components.
If you don't want to create a normal, `Class`-based component, `ember-react-components` also supports functional components.

Instead of applying `WithEmberSupport` as a decorator, you pass a function directly into it and export the returned value.

Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/docs/features/generator/template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Component Generator

`ember-cli-react` ships with a blueprint called `react-component` for generating new React components in your Ember app. You can run the following:
`ember-react-components` ships with a blueprint called `react-component` for generating new React components in your Ember app. You can run the following:

```bash
ember g react-component my-cool-component
Expand All @@ -11,7 +11,7 @@ to generate the following in your application
```javascript
// app/components/my-cool-component.js
import React from 'react';
import WithEmberSupport from 'ember-cli-react';
import WithEmberSupport from 'ember-react-components';

@WithEmberSupport
export default class MyCoolComponent extends React.Component {
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/docs/index/template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ember-cli-react
ember-react-components
==============================================================================

[![Build Status](https://travis-ci.org/alexlafroscia/ember-cli-react.svg?branch=master)](https://travis-ci.org/alexlafroscia/ember-cli-react)
[![Build Status](https://travis-ci.org/alexlafroscia/ember-react-components.svg?branch=master)](https://travis-ci.org/alexlafroscia/ember-react-components)

> Consume React components in Ember
Expand Down
3 changes: 1 addition & 2 deletions tests/dummy/app/docs/installation/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Installation
To start out, install the package (from Github, since the `npm` package is already taken) and run the generator to add React to your project.

```bash
ember install alexlafroscia/ember-cli-react
ember g ember-cli-react
ember install ember-react-components
```

One thing to note is that, since this addon uses [decorators][decorators], ESLint might fail to parse your files. By setting [`babel-eslint`][babel-eslint] as the parser, this can be fixed.
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ember-cli-react</title>
<title>ember-react-components</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"tests/dummy/app/*",
"app/*"
],
"ember-cli-react": [
"ember-react-components": [
"addon"
],
"ember-cli-react/*": [
"ember-react-components/*": [
"addon/*"
],
"*": [
Expand Down

0 comments on commit 0bec444

Please sign in to comment.