Skip to content

Commit

Permalink
testing automatic now deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
juangl committed Dec 26, 2018
1 parent 0db6160 commit 353c44c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 121 deletions.
7 changes: 7 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 2,
"alias": "react-truncated-component.now.sh",
"name": "react-truncated-component",
"builds": [{ "src": "website/next.config.js", "use": "@now/next" }],
"routes": [{ "src": "/(.*)", "dest": "/website/$1" }]
}
22 changes: 18 additions & 4 deletions website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
// next.config.js
const withMDX = require("@zeit/next-mdx")({
extension: /\.(md|mdx)$/,
});
module.exports = withMDX();
const { PHASE_PRODUCTION_SERVER } =
process.env.NODE_ENV === "development"
? {}
: !process.env.NOW_REGION
? require("next/constants")
: require("next-server/constants");

module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_PRODUCTION_SERVER) {
// Config used to run in production.
return {};
}

const withMDX = require("@zeit/next-mdx")({
extension: /\.(md|mdx)$/,
});
return withMDX();
};
8 changes: 4 additions & 4 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
"license": "MIT",
"private": true,
"dependencies": {
"@mdx-js/mdx": "^0.16.6",
"@mdx-js/mdx": "^0.15.0",
"@zeit/next-mdx": "^1.2.0",
"next": "^7.0.2",
"prop-types": "^15.6.2",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-scripts": "^2.1.1",
"react-truncated-component": "link:..",
"react-truncated-component": "^1.0.2",
"react-typography": "^0.16.18",
"styled-components": "^4.1.3",
"typography": "^0.16.18",
"typography-plugin-code": "^0.16.18",
"typography-theme-stern-grove": "^0.16.18"
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true next start",
"build": "SKIP_PREFLIGHT_CHECK=true next build",
"start": "next start",
"build": "next build",
"dev": "next",
"test": "SKIP_PREFLIGHT_CHECK=true react-scripts test",
"eject": "react-scripts eject"
Expand Down
2 changes: 2 additions & 0 deletions website/pages/index/docs.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Doumentation

testing change
118 changes: 5 additions & 113 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
"@mdx-js/tag" "^0.15.6"
loader-utils "^1.1.0"

"@mdx-js/mdx@^0.15.7":
"@mdx-js/mdx@^0.15.0", "@mdx-js/mdx@^0.15.7":
version "0.15.7"
resolved "https://registry.yarnpkg.com/@mdx-js/mdx/-/mdx-0.15.7.tgz#5fde5841d7b6f4c78f80c19fff559532af5ce5ad"
integrity sha512-bWUQidQhjTRFh5nK01kW3qQLCH/aCq6VTapOZ/+WI5hL4exoRw6TgnxxmgSf/p7mmrGxIpCHmnaWXdbHSObxlg==
Expand All @@ -1081,21 +1081,6 @@
unified "^6.1.6"
unist-util-visit "^1.3.0"

"@mdx-js/mdx@^0.16.6":
version "0.16.6"
resolved "https://registry.yarnpkg.com/@mdx-js/mdx/-/mdx-0.16.6.tgz#9b9ea113bcfc0945ec48f17db7aceb63e604c2a7"
integrity sha512-OJDun9/lt8c5tIWVNwjgFIkHtSWR3HOS+CmM5nW3BJKY5i4RSeVLekWkcCMpzujZtBF1frbjTM4bF9fD6LN8mQ==
dependencies:
change-case "^3.0.2"
detab "^2.0.0"
mdast-util-to-hast "^4.0.0"
remark-parse "^6.0.0"
remark-squeeze-paragraphs "^3.0.1"
to-style "^1.3.3"
unified "^7.0.0"
unist-builder "^1.0.1"
unist-util-visit "^1.3.0"

"@mdx-js/tag@^0.15.6":
version "0.15.6"
resolved "https://registry.yarnpkg.com/@mdx-js/tag/-/tag-0.15.6.tgz#1a0aa575d5c9ac2b082631ca3e733034272114c1"
Expand Down Expand Up @@ -1143,11 +1128,6 @@
"@svgr/core" "^2.4.1"
loader-utils "^1.1.0"

"@types/node@*":
version "10.12.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67"
integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==

"@types/q@^1.5.1":
version "1.5.1"
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.1.tgz#48fd98c1561fe718b61733daed46ff115b496e18"
Expand All @@ -1158,28 +1138,6 @@
resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.2.tgz#e13182e1b69871a422d7863e11a4a6f5b814a4bd"
integrity sha512-42zEJkBpNfMEAvWR5WlwtTH22oDzcMjFsL9gDGExwF8X8WvAiw7Vwop7hPw03QT8TKfec83LwbHj6SvpqM4ELQ==

"@types/unist@*", "@types/unist@^2.0.0":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.2.tgz#5dc0a7f76809b7518c0df58689cd16a19bd751c6"
integrity sha512-iHI60IbyfQilNubmxsq4zqSjdynlmc2Q/QvH9kjzg9+CCYVVzq1O6tc7VBzSygIwnmOt07w80IG6HDQvjv3Liw==

"@types/vfile-message@*":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@types/vfile-message/-/vfile-message-1.0.1.tgz#e1e9895cc6b36c462d4244e64e6d0b6eaf65355a"
integrity sha512-mlGER3Aqmq7bqR1tTTIVHq8KSAFFRyGbrxuM8C/H82g6k7r2fS+IMEkIu3D7JHzG10NvPdR8DNx0jr0pwpp4dA==
dependencies:
"@types/node" "*"
"@types/unist" "*"

"@types/vfile@^3.0.0":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/vfile/-/vfile-3.0.2.tgz#19c18cd232df11ce6fa6ad80259bc86c366b09b9"
integrity sha512-b3nLFGaGkJ9rzOcuXRfHkZMdjsawuDD0ENL9fzTophtBg8FJHSGbH7daXkEpcwy3v7Xol3pAvsmlYyFhR4pqJw==
dependencies:
"@types/node" "*"
"@types/unist" "*"
"@types/vfile-message" "*"

"@webassemblyjs/[email protected]":
version "1.7.6"
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.7.6.tgz#3ef8c45b3e5e943a153a05281317474fef63e21e"
Expand Down Expand Up @@ -5509,11 +5467,6 @@ is-buffer@^1.0.2, is-buffer@^1.1.4, is-buffer@^1.1.5:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-buffer@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725"
integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==

is-builtin-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
Expand Down Expand Up @@ -6826,23 +6779,6 @@ mdast-util-to-hast@^3.0.0:
unist-util-visit "^1.1.0"
xtend "^4.0.1"

mdast-util-to-hast@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/mdast-util-to-hast/-/mdast-util-to-hast-4.0.0.tgz#d8467ce28ea73b4648667bc389aa39dfa9f67f18"
integrity sha512-yOTZSxR1aPvWRUxVeLaLZ1sCYrK87x2Wusp1bDM/Ao2jETBhYUKITI3nHvgy+HkZW54HuCAhHnS0mTcbECD5Ig==
dependencies:
collapse-white-space "^1.0.0"
detab "^2.0.0"
mdast-util-definitions "^1.2.0"
mdurl "^1.0.1"
trim "0.0.1"
trim-lines "^1.0.0"
unist-builder "^1.0.1"
unist-util-generated "^1.1.0"
unist-util-position "^3.0.0"
unist-util-visit "^1.1.0"
xtend "^4.0.1"

mdn-data@~1.1.0:
version "1.1.4"
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01"
Expand Down Expand Up @@ -8979,9 +8915,10 @@ react-scripts@^2.1.1:
optionalDependencies:
fsevents "1.2.4"

"react-truncated-component@link:..":
version "0.0.0"
uid ""
react-truncated-component@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/react-truncated-component/-/react-truncated-component-1.0.2.tgz#034cc4c61a638ddd7e8124d202a21e525a0ab45d"
integrity sha512-/Xfi6qpc/ZGWtZzv3QKonBhDQMMbLY5OmFrxQZrj85JYthEMKdpZh2b7hyLaO2UpUjdWUcX3V/AS++pGxH40sQ==

react-typography@^0.16.18:
version "0.16.18"
Expand Down Expand Up @@ -9219,27 +9156,6 @@ remark-parse@^5.0.0:
vfile-location "^2.0.0"
xtend "^4.0.1"

remark-parse@^6.0.0:
version "6.0.3"
resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-6.0.3.tgz#c99131052809da482108413f87b0ee7f52180a3a"
integrity sha512-QbDXWN4HfKTUC0hHa4teU463KclLAnwpn/FBn87j9cKYJWWawbiLgMfP2Q4XwhxxuuuOxHlw+pSN0OKuJwyVvg==
dependencies:
collapse-white-space "^1.0.2"
is-alphabetical "^1.0.0"
is-decimal "^1.0.0"
is-whitespace-character "^1.0.0"
is-word-character "^1.0.0"
markdown-escapes "^1.0.0"
parse-entities "^1.1.0"
repeat-string "^1.5.4"
state-toggle "^1.0.0"
trim "0.0.1"
trim-trailing-lines "^1.0.0"
unherit "^1.0.4"
unist-util-remove-position "^1.0.0"
vfile-location "^2.0.0"
xtend "^4.0.1"

remark-squeeze-paragraphs@^3.0.1:
version "3.0.3"
resolved "https://registry.yarnpkg.com/remark-squeeze-paragraphs/-/remark-squeeze-paragraphs-3.0.3.tgz#299d8db7d44008c9ae240dbf6d1f55b8b0f924ce"
Expand Down Expand Up @@ -10682,20 +10598,6 @@ unified@^6.1.6:
vfile "^2.0.0"
x-is-string "^0.1.0"

unified@^7.0.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13"
integrity sha512-lbk82UOIGuCEsZhPj8rNAkXSDXd6p0QLzIuSsCdxrqnqU56St4eyOB+AlXsVgVeRmetPTYydIuvFfpDIed8mqw==
dependencies:
"@types/unist" "^2.0.0"
"@types/vfile" "^3.0.0"
bail "^1.0.0"
extend "^3.0.0"
is-plain-obj "^1.1.0"
trough "^1.0.0"
vfile "^3.0.0"
x-is-string "^0.1.0"

union-value@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4"
Expand Down Expand Up @@ -10958,16 +10860,6 @@ vfile@^2.0.0:
unist-util-stringify-position "^1.0.0"
vfile-message "^1.0.0"

vfile@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/vfile/-/vfile-3.0.1.tgz#47331d2abe3282424f4a4bb6acd20a44c4121803"
integrity sha512-y7Y3gH9BsUSdD4KzHsuMaCzRjglXN0W2EcMf0gpvu6+SbsGhMje7xDc8AEoeXy6mIwCKMI6BkjMsRjzQbhMEjQ==
dependencies:
is-buffer "^2.0.0"
replace-ext "1.0.0"
unist-util-stringify-position "^1.0.0"
vfile-message "^1.0.0"

[email protected]:
version "0.0.4"
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73"
Expand Down

0 comments on commit 353c44c

Please sign in to comment.