Skip to content

Commit 738ce45

Browse files
committed
Rename ReactIntlTelInputApp to IntlTelInput
1 parent 74adc68 commit 738ce45

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "reactintltelinput",
2+
"name": "react-intl-tel-input",
33
"version": "0.0.0",
44
"description": "",
55
"repository": "",
66
"private": true,
77
"src": "src",
88
"test": "test",
99
"dist": "dist",
10-
"mainInput": "ReactIntlTelInputApp",
10+
"mainInput": "IntlTelInput",
1111
"mainOutput": "main",
1212
"dependencies": {
1313
"react": "~0.12.2",

Diff for: src/components/ReactIntlTelInputApp.js renamed to src/components/IntlTelInput.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require('../styles/main.css');
99

1010
var imageURL = require('../images/yeoman.png');
1111

12-
var ReactIntlTelInputApp = React.createClass({
12+
var IntlTelInput = React.createClass({
1313
render: function() {
1414
return (
1515
<div className='main'>
@@ -20,6 +20,6 @@ var ReactIntlTelInputApp = React.createClass({
2020
);
2121
}
2222
});
23-
React.render(<ReactIntlTelInputApp />, document.getElementById('content')); // jshint ignore:line
23+
React.render(<IntlTelInput />, document.getElementById('content')); // jshint ignore:line
2424

25-
module.exports = ReactIntlTelInputApp;
25+
module.exports = IntlTelInput;

Diff for: test/spec/components/IntlTelInput.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
describe('IntlTelInput', function () {
4+
var React = require('react/addons');
5+
var IntlTelInput, component;
6+
7+
beforeEach(function () {
8+
var container = document.createElement('div');
9+
container.id = 'content';
10+
document.body.appendChild(container);
11+
12+
IntlTelInput = require('components/IntlTelInput.js');
13+
component = React.createElement(IntlTelInput);
14+
});
15+
16+
it('should create a new instance of IntlTelInput', function () {
17+
expect(component).toBeDefined();
18+
});
19+
});

Diff for: test/spec/components/ReactIntlTelInputApp.js

-19
This file was deleted.

Diff for: webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
devtool: false,
2020
entry: [
2121
'webpack/hot/only-dev-server',
22-
'./src/components/ReactIntlTelInputApp.js'
22+
'./src/components/IntlTelInput.js'
2323
],
2424

2525
stats: {

Diff for: webpack.dist.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818

1919
debug: false,
2020
devtool: false,
21-
entry: './src/components/ReactIntlTelInputApp.js',
21+
entry: './src/components/IntlTelInput.js',
2222

2323
stats: {
2424
colors: true,

0 commit comments

Comments
 (0)