Move example to it's own folder
This commit is contained in:
parent
f66efed777
commit
a2b89411b0
@ -5,9 +5,9 @@ import * as React from 'react';
|
|||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import * as injectTapEventPlugin from 'react-tap-event-plugin';
|
import * as injectTapEventPlugin from 'react-tap-event-plugin';
|
||||||
|
|
||||||
import { Documentation } from '../components/documentation';
|
import { Documentation } from '../../src/ts/components/documentation';
|
||||||
import { DocsInfo } from '../docs_info';
|
import { DocsInfo } from '../../src/ts/docs_info';
|
||||||
import { DocsInfoConfig, SupportedDocJson } from '../types';
|
import { DocsInfoConfig, SupportedDocJson } from '../../src/ts/types';
|
||||||
injectTapEventPlugin();
|
injectTapEventPlugin();
|
||||||
|
|
||||||
/* tslint:disable:no-var-requires */
|
/* tslint:disable:no-var-requires */
|
@ -2,21 +2,21 @@ const path = require('path');
|
|||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: ['./src/ts/example/index.tsx'],
|
entry: ['./example/ts/index.tsx'],
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, '/src/public'),
|
path: path.join(__dirname, '/example/public'),
|
||||||
filename: 'bundle.js',
|
filename: 'bundle.js',
|
||||||
chunkFilename: 'bundle-[name].js',
|
chunkFilename: 'bundle-[name].js',
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
},
|
},
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
resolve: {
|
resolve: {
|
||||||
modules: [path.join(__dirname, '/src/ts'), 'node_modules'],
|
modules: [path.join(__dirname, '/example/ts'), 'node_modules'],
|
||||||
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
|
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
|
||||||
alias: {
|
alias: {
|
||||||
ts: path.join(__dirname, '/src/ts'),
|
ts: path.join(__dirname, '/example/ts'),
|
||||||
less: path.join(__dirname, '/src/less'),
|
less: path.join(__dirname, '/example/less'),
|
||||||
md: path.join(__dirname, '/src/md'),
|
md: path.join(__dirname, '/example/md'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
@ -64,7 +64,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
contentBase: path.join(__dirname, '/src/public'),
|
contentBase: path.join(__dirname, '/example/public'),
|
||||||
},
|
},
|
||||||
plugins:
|
plugins:
|
||||||
process.env.NODE_ENV === 'production'
|
process.env.NODE_ENV === 'production'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user