Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed May 21, 2020
1 parent 0abe92d commit 9f88b12
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docker/reliable-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ $ docker run --rm --name reliable-mysql \
# stop
$ docker stop reliable-mysql
```

## Without Docker

```bash
$ mysql -h127.0.0.1 -u root -e "create database \`reliable\` character set utf8mb4"
```
2 changes: 2 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const macacaEcosystem = require('macaca-ecosystem');
const traceFragment = require('macaca-ecosystem/lib/trace-fragment');

const name = 'reliable';

Expand Down Expand Up @@ -37,6 +38,7 @@ module.exports = {
gtag('js', new Date());
gtag('config', 'UA-49226133-2');
`],
['script', {}, traceFragment],
['style', {}, `
img {
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"lodash.get": "^4.4.2",
"lodash.uniqby": "^4.7.0",
"macaca-cli": "2",
"macaca-electron": "2",
"macaca-wd": "2",
"macaca-electron": "7",
"macaca-wd": "3",
"mini-css-extract-plugin": "^0.4.0",
"postcss-loader": "^2.1.6",
"pre-commit": "^1.2.2",
Expand Down
5 changes: 5 additions & 0 deletions view/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const path = require('path');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const traceFragment = require('macaca-ecosystem/lib/trace-fragment');

const pkg = require('./package');

Expand Down Expand Up @@ -82,6 +83,10 @@ module.exports = (env, argv) => {
filename: '[name].css',
chunkFilename: '[id].css',
}),
new webpack.DefinePlugin({
'process.env.VERSION': JSON.stringify(pkg.version),
'process.env.traceFragment': traceFragment,
}),
],
};

Expand Down

0 comments on commit 9f88b12

Please sign in to comment.