Skip to content

Commit

Permalink
Harmonizes the main entry files for build
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitvallon committed Oct 14, 2015
1 parent ec4b2ee commit 6a7a3ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ios/iosApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
* on the same Wi-Fi network.
*/

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/src/index.ios.bundle?platform=ios&dev=true"];

/**
* OPTION 2
Expand Down
6 changes: 3 additions & 3 deletions index.ios.js → src/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import React, {
} from 'react-native';
import { Component } from 'react';

import Screen from './src/common/components/Screen';
import Formulae from './src/common/components/Formulae';
import Keyboard from './src/common/components/Keyboard';
import Screen from './common/components/Screen';
import Formulae from './common/components/Formulae';
import Keyboard from './common/components/Keyboard';

class iosApp extends Component {
render() {
Expand Down
4 changes: 2 additions & 2 deletions src/specificWebAndNW/main.js → src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

import App from '../common/components/App';
import App from './common/components/App';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route } from 'react-router';

// CSS
require('normalize.css');
require('../styles/main.css');
require('./styles/main.css');

var content = document.getElementById('content');

Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
devtool: false,
entry: [
'webpack/hot/only-dev-server',
'./src/specificWebAndNW/main.js'
'./src/index.js'
],
stats: {
colors: true,
Expand Down
2 changes: 1 addition & 1 deletion webpack.dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
},
debug: false,
devtool: false,
entry: './src/specificWebAndNW/main.js',
entry: './src/index.js',
stats: {
colors: true,
reasons: false
Expand Down

0 comments on commit 6a7a3ce

Please sign in to comment.