Move example to it's own folder

This commit is contained in:
Fabio Berger 2018-03-07 10:50:38 +01:00
parent f66efed777
commit a2b89411b0
35 changed files with 10 additions and 10 deletions

View File

@ -5,9 +5,9 @@ import * as React from 'react';
import { render } from 'react-dom';
import * as injectTapEventPlugin from 'react-tap-event-plugin';
import { Documentation } from '../components/documentation';
import { DocsInfo } from '../docs_info';
import { DocsInfoConfig, SupportedDocJson } from '../types';
import { Documentation } from '../../src/ts/components/documentation';
import { DocsInfo } from '../../src/ts/docs_info';
import { DocsInfoConfig, SupportedDocJson } from '../../src/ts/types';
injectTapEventPlugin();
/* tslint:disable:no-var-requires */

View File

@ -2,21 +2,21 @@ const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: ['./src/ts/example/index.tsx'],
entry: ['./example/ts/index.tsx'],
output: {
path: path.join(__dirname, '/src/public'),
path: path.join(__dirname, '/example/public'),
filename: 'bundle.js',
chunkFilename: 'bundle-[name].js',
publicPath: '/',
},
devtool: 'source-map',
resolve: {
modules: [path.join(__dirname, '/src/ts'), 'node_modules'],
modules: [path.join(__dirname, '/example/ts'), 'node_modules'],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
alias: {
ts: path.join(__dirname, '/src/ts'),
less: path.join(__dirname, '/src/less'),
md: path.join(__dirname, '/src/md'),
ts: path.join(__dirname, '/example/ts'),
less: path.join(__dirname, '/example/less'),
md: path.join(__dirname, '/example/md'),
},
},
module: {
@ -64,7 +64,7 @@ module.exports = {
},
],
},
contentBase: path.join(__dirname, '/src/public'),
contentBase: path.join(__dirname, '/example/public'),
},
plugins:
process.env.NODE_ENV === 'production'