feat(ui): rename app to src
This commit is contained in:
parent
0a9627ae4e
commit
6688eff297
|
@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||
const path = require('path');
|
||||
module.exports = {
|
||||
//bundle *.js from this entry point
|
||||
entry: path.resolve(__dirname, '../app/index.jsx'),
|
||||
entry: path.resolve(__dirname, '../src/index.jsx'),
|
||||
//create output file to be linked to index.html
|
||||
output: {
|
||||
filename: '[name].bundle.js',
|
||||
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
//test all *.jsx (e.g. React.js) using babel-loader
|
||||
test: /\.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
include: path.resolve(__dirname, '../app'),
|
||||
include: path.resolve(__dirname, '../src'),
|
||||
use: ['babel-loader'],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
"webpack-cli": "5.1.4",
|
||||
"webpack-dev-server": "4.15.1",
|
||||
"webpack-merge": "5.9.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.19.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
|
|
|
@ -9,11 +9,13 @@
|
|||
"transport",
|
||||
"mobility",
|
||||
"delfi",
|
||||
"react",
|
||||
"webpack"
|
||||
"react"
|
||||
],
|
||||
"author": "Software Ingenieur Begerad <dialog@SwIngBe.de>",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"engines": {
|
||||
"node": ">=18.19.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "webpack serve --config config/webpack.dev.js",
|
||||
"build": "webpack --config config/webpack.prod.js",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './app';
|
||||
import App from './main';
|
||||
|
||||
//TODO remove debugging
|
||||
if (process.env.NODE_ENV !== 'production') {
|
|
@ -11,6 +11,7 @@ import {
|
|||
getGtfsStopsLastVacuum
|
||||
} from './utils/api';
|
||||
|
||||
|
||||
import packageInfo from '../package.json'
|
||||
const VERSION = packageInfo.version;
|
||||
|
|
@ -2,13 +2,11 @@ import React from 'react';
|
|||
|
||||
import Entities from '../components/entities';
|
||||
|
||||
const StopsRefined = () => {
|
||||
export default function StopsRefined() {
|
||||
return (
|
||||
<>
|
||||
<p>Please feel free to browse through stops inside DE refined to be compliant with the Global ID.</p>
|
||||
<Entities route = 'gtfs-stops-de-not-dhid-refine'/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default StopsRefined
|
||||
};
|
Loading…
Reference in New Issue