Commit 6043d892 authored by 期贀's avatar 期贀

use defult mock

parent f2e3525f
...@@ -26,7 +26,6 @@ package-lock.json ...@@ -26,7 +26,6 @@ package-lock.json
.history .history
*.log *.log
functions/* functions/*
lambda/mock/index.js
.temp/** .temp/**
# umi # umi
......
This diff is collapsed.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"lint:style": "stylelint --fix 'src/**/*.less' --syntax less", "lint:style": "stylelint --fix 'src/**/*.less' --syntax less",
"lint:ts": "tslint -p . -c tslint.yml", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": " check-prettier write", "prettier": " check-prettier write",
"site": "npm run fetch:blocks && umi build && npm run functions:build", "site": "npm run fetch:blocks && umi build",
"start": "umi dev", "start": "umi dev",
"start:no-mock": "cross-env MOCK=none umi dev", "start:no-mock": "cross-env MOCK=none umi dev",
"test": "umi test", "test": "umi test",
......
const generateMock = require('merge-umi-mock-data');
const path = require('path');
generateMock(path.join(__dirname, '../mock'), path.join(__dirname, '../lambda/mock/index.js'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment