├── .babelrc
├── .gitattributes
├── .gitignore
├── LICENSE
├── README.md
├── build
├── build.js
├── dev-client.js
├── dev-server.js
├── utils.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
├── prod.env.js
└── test.env.js
├── index.html
├── neo4j-vue.iml
├── package.json
├── screenshots
├── 项目截图1.png
└── 项目截图2.png
├── src
├── App.vue
├── app.js
├── components
│ └── D3Visualization
│ │ ├── GraphEventHandler.js
│ │ ├── Visualization.vue
│ │ ├── components
│ │ ├── Explorer.vue
│ │ ├── Graph.vue
│ │ ├── GrassEditor.vue
│ │ ├── Inspector.vue
│ │ ├── Legend.vue
│ │ ├── RowExpandToggle.vue
│ │ └── styled.js
│ │ ├── constants.js
│ │ ├── graphStyle.js
│ │ ├── index.js
│ │ ├── lib
│ │ └── visualization
│ │ │ ├── components
│ │ │ ├── collision.coffee
│ │ │ ├── graph.coffee
│ │ │ ├── graphGeometry.coffee
│ │ │ ├── graphView.coffee
│ │ │ ├── layout.coffee
│ │ │ ├── node.coffee
│ │ │ ├── queryPlan.coffee
│ │ │ ├── relationship.coffee
│ │ │ ├── renderer.coffee
│ │ │ ├── style.coffee
│ │ │ └── visualization.coffee
│ │ │ ├── index.js
│ │ │ ├── neod3.coffee
│ │ │ ├── renders
│ │ │ ├── init.coffee
│ │ │ └── menu.coffee
│ │ │ └── utils
│ │ │ ├── adjacentAngles.coffee
│ │ │ ├── angleList.coffee
│ │ │ ├── arcArrow.coffee
│ │ │ ├── arrays.coffee
│ │ │ ├── circularLayout.coffee
│ │ │ ├── circumferentialDistribution.coffee
│ │ │ ├── circumferentialRelationshipRouting.coffee
│ │ │ ├── clickHandler.coffee
│ │ │ ├── loopArrow.coffee
│ │ │ ├── pairwiseArcsRelationshipRouting.coffee
│ │ │ ├── straightArrow.coffee
│ │ │ └── textMeasurement.coffee
│ │ ├── mapper.js
│ │ └── services
│ │ ├── bolt
│ │ ├── bolt.js
│ │ ├── boltHelpers.js
│ │ ├── boltMappings.js
│ │ ├── boltMappings.test.js
│ │ └── updateStatisticsFields.js
│ │ ├── duckUtils.js
│ │ ├── exceptionMessages.js
│ │ ├── exceptions.js
│ │ └── utils.js
├── index.js
├── router
│ └── index.js
└── views
│ └── Main.vue
└── static
├── css
└── common.css
└── js
└── external
└── d3.min.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015", { "modules": false }],
4 | "stage-2"
5 | ],
6 | "plugins": [
7 | "transform-export-extensions",
8 | "transform-vue-jsx"
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /dist
2 | /.settings
3 | /.classpath
4 | /.project
5 | /node_modules
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 郑辉强
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Neo4j Vue
2 |
3 | ## 安装步骤
4 | 1. 克隆或下载该库到本地
5 | 2. 下载neo4j并安装到本地, 启动neo4j服务
6 | 3. 进入到该工程的根目录, 输入命令: npm run update 进行npm包的导入
7 | 4. 使用命令: npm run dev 启动该工程
8 | 5. 默认端口是:8081
9 | - neo4j账号信息:
10 | - url: bolt://localhost
11 | - userName: neo4j
12 | - passsword: password
13 |
14 | ### 启动服务
15 | `npm run dev` and point your web browser to `http://localhost:8081`.
16 |
17 | ### 项目截图
18 | 
19 | 
20 |
21 | ### 目录结构
22 | ├── index.html 入口页面
23 | ├── build 构建脚本目录
24 | │ ├── build-server.js 运行本地构建服务器,可以访问构建后的页面
25 | │ ├── build.js 生产环境构建脚本
26 | │ ├── dev-client.js 开发服务器热重载脚本,主要用来实现开发阶段的页面自动刷新
27 | │ ├── dev-server.js 运行本地开发服务器
28 | │ ├── utils.js 构建相关工具方法
29 | │ ├── webpack.base.conf.js wabpack基础配置
30 | │ ├── webpack.dev.conf.js wabpack开发环境配置
31 | │ └── webpack.prod.conf.js wabpack生产环境配置
32 | ├── config 项目配置
33 | │ ├── dev.env.js 开发环境变量
34 | │ ├── index.js 项目配置文件
35 | │ ├── prod.env.js 生产环境变量
36 | │ └── test.env.js 测试环境变量
37 | ├── package.json npm包配置文件,里面定义了项目的npm脚本,依赖包等信息
38 | ├── src 项目源码目录
39 | │ ├── index.js 入口js文件
40 | │ ├── app.vue 根组件
41 | │ ├── app.js
42 | │ ├── components 公共组件目录
43 | │ │ └── title.vue
44 | │ ├── routes 前端路由
45 | │ │ └── index.js
46 | │ └── views 页面目录
47 | │ └── Main.vue
48 | └── static 纯静态资源,不会被wabpack构建。
49 |
50 |
51 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | // https://github.com/shelljs/shelljs
2 | 'use strict'
3 |
4 | require('shelljs/global')
5 | env.NODE_ENV = 'production'
6 |
7 | const path = require('path')
8 | const config = require('../config')
9 | const ora = require('ora')
10 | const webpack = require('webpack')
11 | const webpackConfig = require('./webpack.prod.conf')
12 |
13 | const spinner = ora('building for production...')
14 | spinner.start()
15 |
16 | const assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
17 | rm('-rf', assetsPath)
18 | mkdir('-p', assetsPath)
19 | cp('-R', 'static/*', assetsPath)
20 |
21 | const compiler = webpack(webpackConfig)
22 | const ProgressPlugin = require('webpack/lib/ProgressPlugin')
23 | compiler.apply(new ProgressPlugin())
24 |
25 | compiler.run((err, stats) => {
26 | spinner.stop()
27 | if (err) throw err
28 | process.stdout.write(stats.toString({
29 | colors: true,
30 | modules: false,
31 | children: false,
32 | chunks: false,
33 | chunkModules: false
34 | }) + '\n')
35 | })
36 |
--------------------------------------------------------------------------------
/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | // require('eventsource-polyfill')
3 | const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe((event) => {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/build/dev-server.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var express = require('express')
3 | var webpack = require('webpack')
4 | var config = require('../config')
5 | var proxyMiddleware = require('http-proxy-middleware')
6 | var webpackConfig = process.env.NODE_ENV === 'testing'
7 | ? require('./webpack.prod.conf')
8 | : require('./webpack.dev.conf')
9 |
10 | // default port where dev server listens for incoming traffic
11 | var port = process.env.PORT || config.dev.port
12 | // Define HTTP proxies to your custom API backend
13 | // https://github.com/chimurai/http-proxy-middleware
14 | var proxyTable = config.dev.proxyTable
15 |
16 | var app = express()
17 | var compiler = webpack(webpackConfig)
18 |
19 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
20 | publicPath: webpackConfig.output.publicPath,
21 | stats: {
22 | colors: true,
23 | chunks: false
24 | }
25 | })
26 |
27 | var hotMiddleware = require('webpack-hot-middleware')(compiler)
28 | // force page reload when html-webpack-plugin template changes
29 | compiler.plugin('compilation', function (compilation) {
30 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
31 | hotMiddleware.publish({ action: 'reload' })
32 | cb()
33 | })
34 | })
35 |
36 | // proxy api requests
37 | Object.keys(proxyTable).forEach(function (context) {
38 | var options = proxyTable[context]
39 | if (typeof options === 'string') {
40 | options = { target: options }
41 | }
42 | app.use(proxyMiddleware(context, options))
43 | })
44 |
45 | // handle fallback for HTML5 history API
46 | app.use(require('connect-history-api-fallback')())
47 |
48 | // serve webpack bundle output
49 | app.use(devMiddleware)
50 |
51 | // enable hot-reload and state-preserving
52 | // compilation error display
53 | app.use(hotMiddleware)
54 |
55 | // serve pure static assets
56 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
57 | app.use(staticPath, express.static('./static'))
58 |
59 | module.exports = app.listen(port, function (err) {
60 | if (err) {
61 | console.log(err)
62 | return
63 | }
64 | var uri = 'http://localhost:' + port
65 | console.log('Listening at ' + uri + '\n')
66 | })
67 |
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 |
5 | exports.assetsPath = function (_path) {
6 | var assetsSubDirectory = process.env.NODE_ENV === 'production'
7 | ? config.build.assetsSubDirectory
8 | : config.dev.assetsSubDirectory
9 | return path.posix.join(assetsSubDirectory, _path)
10 | }
11 |
12 | exports.cssLoaders = function (options) {
13 | options = options || {}
14 | // generate loader string to be used with extract text plugin
15 | function generateLoaders (loaders) {
16 | var sourceLoader = loaders.map(function (loader) {
17 | var extraParamChar
18 | if (/\?/.test(loader)) {
19 | loader = loader.replace(/\?/, '-loader?')
20 | extraParamChar = '&'
21 | } else {
22 | loader = loader + '-loader'
23 | extraParamChar = '?'
24 | }
25 | return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
26 | }).join('!')
27 |
28 | if (options.extract) {
29 | return ExtractTextPlugin.extract({
30 | fallbackLoader: 'style-loader',
31 | loader: sourceLoader
32 | })
33 | } else {
34 | return ['vue-style-loader', sourceLoader].join('!')
35 | }
36 | }
37 |
38 | // http://vuejs.github.io/vue-loader/configurations/extract-css.html
39 | return {
40 | css: generateLoaders(['css']),
41 | postcss: generateLoaders(['css']),
42 | less: generateLoaders(['css', 'less']),
43 | sass: generateLoaders(['css', 'sass?indentedSyntax']),
44 | scss: generateLoaders(['css', 'sass']),
45 | stylus: generateLoaders(['css', 'stylus']),
46 | styl: generateLoaders(['css', 'stylus'])
47 | }
48 | }
49 |
50 | // Generate loaders for standalone style files (outside of .vue)
51 | exports.styleLoaders = function (options) {
52 | var output = []
53 | var loaders = exports.cssLoaders(options)
54 | for (var extension in loaders) {
55 | var loader = loaders[extension]
56 | output.push({
57 | test: new RegExp('\\.' + extension + '$'),
58 | loader: loader
59 | })
60 | }
61 | return output
62 | }
63 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | const path = require('path')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const utils = require('./utils')
7 | const projectRoot = path.resolve(__dirname, '../')
8 |
9 | const isProduction = process.env.NODE_ENV === 'production'
10 |
11 | module.exports = {
12 | entry: {
13 | app: ['babel-polyfill', './src/index.js'],
14 | vendor: ['vue', 'vue-router', 'vuex', 'jquery']
15 | },
16 | output: {
17 | path: config.build.assetsRoot,
18 | publicPath: isProduction ? config.build.assetsPublicPath : config.dev.assetsPublicPath,
19 | filename: '[name].js'
20 | },
21 | resolve: {
22 | extensions: ['.js', '.vue', '.css', '.json', '.coffee'],
23 | alias: {
24 | // https://github.com/vuejs/vue/wiki/Vue-2.0-RC-Starter-Resources
25 | vue: 'vue/dist/vue',
26 | package: path.resolve(__dirname, '../package.json'),
27 | config: path.resolve(__dirname, '../config'),
28 | src: path.resolve(__dirname, '../src'),
29 | assets: path.resolve(__dirname, '../src/static'),
30 | components: path.resolve(__dirname, '../src/components'),
31 | views: path.resolve(__dirname, '../src/views'),
32 | // third-party
33 | // vue-addon
34 | // 'vuex-store': path.resolve(__dirname, '../src/store'),
35 | 'neo4j-driver-alias': 'neo4j-driver/lib/browser/neo4j-web.min.js',
36 | }
37 | },
38 | module: {
39 | loaders: [
40 | {
41 | test: /\.coffee$/,
42 | exclude: /node_modules/,
43 | loader: 'coffee-loader'
44 | },
45 | {
46 | test: /\.vue$/,
47 | loader: 'vue-loader'
48 | },
49 | {
50 | test: /\.json$/,
51 | loader: 'json-loader'
52 | },
53 | {
54 | test: /\.js$/,
55 | loader: 'babel-loader',
56 | include: projectRoot,
57 | exclude: /node_modules/
58 | },
59 | {
60 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
61 | loader: 'url-loader',
62 | query: {
63 | limit: 10000,
64 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
65 | }
66 | },
67 | {
68 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
69 | loader: 'url-loader',
70 | query: {
71 | limit: 10000,
72 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
73 | }
74 | }
75 | ]
76 | },
77 | plugins: [
78 | new webpack.LoaderOptionsPlugin({
79 | vue: {
80 | loaders: utils.cssLoaders({
81 | sourceMap: isProduction,
82 | extract: isProduction
83 | }),
84 | postcss: [
85 | require('autoprefixer')({
86 | browsers: ['last 3 versions']
87 | })
88 | ]
89 | }
90 | })
91 | ]
92 | }
93 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | const webpack = require('webpack')
2 | const merge = require('webpack-merge')
3 | const HtmlWebpackPlugin = require('html-webpack-plugin')
4 | const baseWebpackConfig = require('./webpack.base.conf')
5 | const config = require('../config')
6 | const utils = require('./utils')
7 |
8 | // add hot-reload related code to entry chunks
9 | Object.keys(baseWebpackConfig.entry).forEach(function (name) {
10 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
11 | })
12 |
13 | module.exports = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
16 | },
17 | // eval-source-map is faster for development
18 | devtool: '#eval-source-map',
19 | performance: {
20 | hints: false
21 | },
22 | plugins: [
23 | new webpack.DefinePlugin({
24 | 'process.env': config.dev.env
25 | }),
26 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
27 | new webpack.optimize.OccurrenceOrderPlugin(),
28 | new webpack.HotModuleReplacementPlugin(),
29 | new webpack.NoEmitOnErrorsPlugin(),
30 | // extract vendor chunks for better caching
31 | new webpack.optimize.CommonsChunkPlugin({
32 | name: 'vendor',
33 | filename: 'vendor.js'
34 | }),
35 | // https://github.com/ampedandwired/html-webpack-plugin
36 | new HtmlWebpackPlugin({
37 | title: '测试环境',
38 | filename: 'index.html',
39 | template: 'index.html',
40 | inject: true
41 | })
42 | ]
43 | })
44 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | const path = require('path')
4 | const webpack = require('webpack')
5 | const merge = require('webpack-merge')
6 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
7 | const HtmlWebpackPlugin = require('html-webpack-plugin')
8 | const baseWebpackConfig = require('./webpack.base.conf')
9 | const config = require('../config')
10 | const utils = require('./utils')
11 | const env = process.env.NODE_ENV === 'testing'
12 | ? require('../config/test.env')
13 | : config.build.env
14 | const isELECTRON = process.env.NODE_ELECTRON === 'true'
15 |
16 | const webpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | loaders: utils.styleLoaders({
19 | sourceMap: config.build.productionSourceMap,
20 | extract: true
21 | })
22 | },
23 | devtool: config.build.productionSourceMap ? '#source-map' : false,
24 | output: {
25 | path: config.build.assetsRoot,
26 | publicPath: isELECTRON ? path.join(__dirname, '../dist/') : '/',
27 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29 | },
30 | plugins: [
31 | // http://vuejs.github.io/vue-loader/workflow/production.html
32 | new webpack.DefinePlugin({
33 | 'process.env': env
34 | }),
35 | new webpack.LoaderOptionsPlugin({
36 | minimize: true
37 | }),
38 | new webpack.optimize.UglifyJsPlugin({
39 | sourceMap: true,
40 | compress: {
41 | warnings: false
42 | },
43 | output: {
44 | comments: false
45 | }
46 | }),
47 | new webpack.optimize.OccurrenceOrderPlugin(),
48 | // extract css into its own file
49 | new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash].css')),
50 | // generate dist index.html with correct asset hash for caching.
51 | // you can customize output by editing /index.html
52 | // see https://github.com/ampedandwired/html-webpack-plugin
53 | new HtmlWebpackPlugin({
54 | title: '协同平台',
55 | filename: process.env.NODE_ENV === 'testing'
56 | ? 'index.html'
57 | : config.build.index,
58 | template: 'index.html',
59 | inject: true,
60 | // favicon: 'static/img/favicon.png',
61 | minify: {
62 | removeComments: true,
63 | collapseWhitespace: true,
64 | removeAttributeQuotes: true
65 | // more options:
66 | // https://github.com/kangax/html-minifier#options-quick-reference
67 | },
68 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
69 | chunksSortMode: 'dependency'
70 | }),
71 | // split vendor js into its own file
72 | new webpack.optimize.CommonsChunkPlugin({
73 | name: 'vendor',
74 | minChunks (module, count) {
75 | // any required modules inside node_modules are extracted to vendor
76 | return (
77 | module.resource &&
78 | /\.js$/.test(module.resource) &&
79 | module.resource.indexOf(
80 | path.join(__dirname, '../node_modules')
81 | ) === 0
82 | )
83 | }
84 | }),
85 | // extract webpack runtime and module manifest to its own file in order to
86 | // prevent vendor hash from being updated whenever app bundle is updated
87 | new webpack.optimize.CommonsChunkPlugin({
88 | name: 'manifest',
89 | chunks: ['vendor']
90 | })
91 | ]
92 | })
93 |
94 | if (config.build.productionGzip) {
95 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
96 |
97 | webpackConfig.plugins.push(
98 | new CompressionWebpackPlugin({
99 | asset: '[path].gz[query]',
100 | algorithm: 'gzip',
101 | test: new RegExp(
102 | '\\.(' +
103 | config.build.productionGzipExtensions.join('|') +
104 | ')$'
105 | ),
106 | threshold: 10240,
107 | minRatio: 0.8
108 | })
109 | )
110 | }
111 |
112 | module.exports = webpackConfig
113 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | env: require('./prod.env'),
7 | index: path.resolve(__dirname, '../dist/index.html'),
8 | assetsRoot: path.resolve(__dirname, '../dist'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '/',
11 | productionSourceMap: false,
12 | // Gzip off by default as many popular static hosts such as
13 | // Surge or Netlify already gzip all static assets for you.
14 | // Before setting to `true`, make sure to:
15 | // npm install --save-dev compression-webpack-plugin
16 | productionGzip: false,
17 | productionGzipExtensions: ['js', 'css']
18 | },
19 | dev: {
20 | env: require('./dev.env'),
21 | port: 8081,
22 | assetsSubDirectory: 'static',
23 | assetsPublicPath: '/',
24 | proxyTable: {},
25 | // CSS Sourcemaps off by default because relative paths are "buggy"
26 | // with this option, according to the CSS-Loader README
27 | // (https://github.com/webpack/css-loader#sourcemaps)
28 | // In our experience, they generally work as expected,
29 | // just be aware of this issue when enabling this option.
30 | cssSourceMap: false
31 | },
32 | setting: {
33 | neo4jUrl: 'bolt://localhost',
34 | neo4jUserName: 'neo4j',
35 | neo4jPassword: 'password'
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var devEnv = require('./dev.env')
3 |
4 | module.exports = merge(devEnv, {
5 | NODE_ENV: '"testing"'
6 | })
7 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |