Skip to content

Commit

Permalink
fix(docz-core): copy templates files for dist (#88)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* fix(docz-core): copy templates files for dist
  • Loading branch information
pedronauck authored Jun 26, 2018
1 parent 2c9f2e9 commit 5e4b98d
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 129 deletions.
6 changes: 3 additions & 3 deletions examples/babel6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"dependencies": {
"docz": "^0.3.2",
"docz-core": "^0.3.2",
"emotion": "^9.2.3",
"emotion": "^9.2.4",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.3"
"react-emotion": "^9.2.4"
},
"devDependencies": {
"babel-plugin-emotion": "^9.2.0",
"babel-plugin-emotion": "^9.2.4",
"docz-plugin-babel6": "^0.3.2"
}
}
6 changes: 3 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"dependencies": {
"docz": "^0.3.2",
"docz-core": "^0.3.2",
"emotion": "^9.2.3",
"emotion": "^9.2.4",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.3"
"react-emotion": "^9.2.4"
},
"devDependencies": {
"babel-plugin-emotion": "^9.2.0"
"babel-plugin-emotion": "^9.2.4"
}
}
8 changes: 4 additions & 4 deletions examples/flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"dependencies": {
"@babel/preset-flow": "^7.0.0-beta.51",
"docz": "^0.3.2",
"emotion": "^9.2.3",
"emotion": "^9.2.4",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.3"
"react-emotion": "^9.2.4"
},
"devDependencies": {
"babel-plugin-emotion": "^9.2.0",
"flow-bin": "^0.74.0",
"babel-plugin-emotion": "^9.2.4",
"flow-bin": "^0.75.0",
"flow-typed": "^2.4.0"
}
}
6 changes: 3 additions & 3 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"docz": "^0.3.2",
"emotion": "^9.2.3",
"emotion": "^9.2.4",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.3"
"react-emotion": "^9.2.4"
},
"devDependencies": {
"babel-plugin-emotion": "^9.2.0"
"babel-plugin-emotion": "^9.2.4"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"bugs": {
"url": "https://github.com/pedronauck/docz/issues"
},
"repository":{
"type" : "git",
"url" : "https://github.com/pedronauck/docz.git"
"repository": {
"type": "git",
"url": "https://github.com/pedronauck/docz.git"
},
"scripts": {
"clean": "lerna clean",
Expand All @@ -33,15 +33,15 @@
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"@commitlint/config-lerna-scopes": "^7.0.0",
"all-contributors-cli": "^5.2.0",
"all-contributors-cli": "^5.2.1",
"commitizen": "^2.10.1",
"del": "^3.0.0",
"husky": "^1.0.0-rc.9",
"lerna": "^2.11.0",
"libundler": "^1.7.1",
"lint-staged": "^7.2.0",
"npm-run-all": "^4.1.3",
"prettier": "^1.13.5",
"prettier": "^1.13.6",
"trash-cli": "^1.4.0",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
Expand Down
20 changes: 11 additions & 9 deletions packages/docz-core/librc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
const copy = require('rollup-plugin-cpy')
const pkg = require('./package.json')
const fs = require('fs-extra')
const cpy = require('cpy')

const copy = (files, dest) => ({
name: 'copy',
onwrite: () => {
fs.ensureDirSync(dest)
cpy(files, dest)
},
})

module.exports = {
external: Object.keys(pkg.dependencies).concat([
Expand All @@ -8,12 +17,5 @@ module.exports = {
'react-dev-utils/printBuildError',
'react-dom/server',
]),
plugins: [
copy([
{
files: 'templates/*.{js,html,json}',
dest: 'dist/templates',
},
]),
],
plugins: [copy('templates/*.{js,html,json}', 'dist/templates')],
}
18 changes: 9 additions & 9 deletions packages/docz-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@babel/core": "7.0.0-beta.51",
"@babel/preset-typescript": "^7.0.0-beta.51",
"@babel/runtime": "^7.0.0-beta.51",
"@mdx-js/loader": "^0.11.0",
"@mdx-js/mdx": "^0.10.1",
"@mdx-js/loader": "^0.11.1",
"@mdx-js/mdx": "^0.11.1",
"@mdx-js/mdxast": "^0.10.0",
"@sindresorhus/slugify": "^0.3.0",
"art-template": "^4.12.2",
Expand All @@ -35,6 +35,7 @@
"chalk": "^2.4.1",
"chokidar": "^2.0.4",
"connect-history-api-fallback": "^1.5.0",
"cpy": "^7.0.1",
"deepmerge": "^2.1.1",
"detect-port": "^1.2.3",
"docz-theme-default": "^0.3.2",
Expand All @@ -52,7 +53,7 @@
"koa-static": "^5.0.0",
"load-cfg": "^0.2.8",
"lodash.get": "^4.4.2",
"prettier": "^1.13.5",
"prettier": "^1.13.6",
"react-dev-utils": "^5.0.1",
"react-docgen-typescript-loader": "^2.1.1",
"react-hot-loader": "4.3.3",
Expand All @@ -65,21 +66,21 @@
"resolve": "^1.8.1",
"signale": "^1.2.1",
"to-vfile": "^5.0.0",
"uglifyjs-webpack-plugin": "^1.2.6",
"uglifyjs-webpack-plugin": "^1.2.7",
"ulid": "^2.3.0",
"unified": "^7.0.0",
"unist-util-find": "^1.0.1",
"unist-util-is": "^2.1.2",
"unist-util-remove": "^1.0.1",
"unist-util-visit": "^1.3.1",
"url-loader": "^1.0.1",
"webpack": "^4.12.0",
"webpack": "^4.12.1",
"webpack-chain": "^4.8.0",
"webpack-hot-client": "^4.0.3",
"webpack-manifest-plugin": "^2.0.3",
"webpack-serve": "^1.0.4",
"webpackbar": "^2.6.1",
"ws": "^5.2.0",
"ws": "^5.2.1",
"yargs": "^11.0.0"
},
"devDependencies": {
Expand All @@ -92,14 +93,13 @@
"@types/fs-extra": "^5.0.3",
"@types/html-webpack-plugin": "^2.30.3",
"@types/lodash.get": "^4.4.3",
"@types/node": "10.3.4",
"@types/node": "10.3.6",
"@types/prettier": "^1.13.1",
"@types/resolve": "^0.0.8",
"@types/webpack": "^4.4.2",
"@types/webpack": "^4.4.3",
"@types/webpack-chain": "^4.8.0",
"@types/ws": "^5.1.2",
"@types/yargs": "^11.0.0",
"rollup-plugin-cpy": "^1.0.0",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
"typescript": "^2.9.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/docz-plugin-babel6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-react-app": "^3.1.1",
"babel-preset-react-app": "^3.1.2",
"docz-core": "^0.3.2",
"happypack": "^5.0.0",
"ts-loader": "^4.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/docz-plugin-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"style-loader": "^0.21.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"webpack": "^4.12.0",
"webpack": "^4.12.1",
"webpack-chain": "^4.8.0"
}
}
8 changes: 4 additions & 4 deletions packages/docz-theme-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"docz": "^0.3.2",
"emotion": "^9.2.3",
"emotion-theming": "^9.2.3",
"emotion": "^9.2.4",
"emotion-theming": "^9.2.4",
"facepaint": "^1.2.1",
"fast-deep-equal": "^2.0.1",
"prismjs": "^1.15.0",
Expand All @@ -31,7 +31,7 @@
"react-adopt": "^0.6.0",
"react-breakpoints": "^3.0.0",
"react-dom": "^16.4.1",
"react-emotion": "^9.2.3",
"react-emotion": "^9.2.4",
"react-feather": "^1.1.0",
"react-lightweight-tooltip": "^1.0.0",
"react-powerplug": "^0.1.6",
Expand All @@ -44,7 +44,7 @@
},
"devDependencies": {
"@types/prismjs": "^1.9.0",
"babel-plugin-emotion": "^9.2.0",
"babel-plugin-emotion": "^9.2.4",
"rollup-plugin-svg": "^1.0.1"
}
}
4 changes: 2 additions & 2 deletions packages/docz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"react-dom": "^16.3.0"
},
"devDependencies": {
"@types/bluebird": "^3.5.20",
"@types/bluebird": "^3.5.21",
"@types/deepmerge": "^2.1.0",
"@types/react": "^16.4.1",
"@types/react": "^16.4.2",
"@types/react-dom": "^16.0.6",
"@types/react-router-dom": "^4.2.7"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/load-cfg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
},
"dependencies": {
"deepmerge": "^2.1.1",
"esm": "^3.0.52",
"esm": "^3.0.55",
"find-up": "^3.0.0"
},
"devDependencies": {
"@types/find-up": "^2.1.1",
"@types/node": "^10.3.4"
"@types/node": "^10.3.6"
}
}
Loading

0 comments on commit 5e4b98d

Please sign in to comment.