Move md files to lib folder during build
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
|
||||
"test:circleci": "yarn test:coverage",
|
||||
"clean": "shx rm -rf lib",
|
||||
"build": "tsc && yarn build-json",
|
||||
"build": "tsc && copy_md_files && yarn build-json",
|
||||
"build-json": "ts-node build_scripts/buildJson.ts",
|
||||
"build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ",
|
||||
"copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/md",
|
||||
"deploy-site": "discharge deploy"
|
||||
},
|
||||
"repository": {
|
||||
@@ -42,6 +43,7 @@
|
||||
"@types/node": "^10.5.3",
|
||||
"chai": "^4.0.1",
|
||||
"chokidar-cli": "^1.2.0",
|
||||
"copyfiles": "^2.0.0",
|
||||
"dirty-chai": "^2.0.1",
|
||||
"discharge": "^0.7.1",
|
||||
"mocha": "^4.0.1",
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { readFileSync } from 'fs';
|
||||
|
||||
export const md = {
|
||||
introduction: readFileSync('src/md/introduction.md').toString(),
|
||||
introduction: readFileSync('lib/md/introduction.md').toString(),
|
||||
};
|
||||
|
Reference in New Issue
Block a user