mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-12 21:07:46 +00:00
Compare commits
179 Commits
@vercel/fr
...
@vercel/py
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a776ad343 | ||
|
|
f0dab7d26d | ||
|
|
9a5ad5c31f | ||
|
|
a6243962b8 | ||
|
|
9cb7d315c5 | ||
|
|
ef37279270 | ||
|
|
f919137443 | ||
|
|
c6f2021d15 | ||
|
|
3608bcf6f1 | ||
|
|
f036162aa3 | ||
|
|
e271c2598e | ||
|
|
c857ad7f65 | ||
|
|
8f7c2f6385 | ||
|
|
232f55df22 | ||
|
|
43d365c73d | ||
|
|
8950cd9685 | ||
|
|
868fc6159c | ||
|
|
7cadbc3989 | ||
|
|
89553e6015 | ||
|
|
181f1d60b6 | ||
|
|
8cc72a6872 | ||
|
|
e37e558674 | ||
|
|
e0a62dabaa | ||
|
|
c23473df49 | ||
|
|
0569b268e6 | ||
|
|
db955473d9 | ||
|
|
311ef26f60 | ||
|
|
c08462a46b | ||
|
|
24b2f16afb | ||
|
|
919c667ff1 | ||
|
|
ab3f99bfea | ||
|
|
a8615d3c34 | ||
|
|
0a09a5232c | ||
|
|
f3190b7f74 | ||
|
|
cf827a8b91 | ||
|
|
bed83e829c | ||
|
|
0f0ee4e845 | ||
|
|
2d70c6c811 | ||
|
|
887309f0a5 | ||
|
|
8a7657c80b | ||
|
|
279d0bf988 | ||
|
|
d2b31d03da | ||
|
|
16acf906fc | ||
|
|
0127d17703 | ||
|
|
0bfc2a3693 | ||
|
|
b9809b140c | ||
|
|
faaccc1f9f | ||
|
|
4b61f1dd61 | ||
|
|
cdd417455f | ||
|
|
fe671f56c5 | ||
|
|
ddf9e6cf3f | ||
|
|
13b03c6abd | ||
|
|
7dd4c629ad | ||
|
|
81b3d7f5f1 | ||
|
|
3566c32209 | ||
|
|
267ca7b379 | ||
|
|
7b9d9954b8 | ||
|
|
79675db241 | ||
|
|
3ac8a3f67f | ||
|
|
2f19949133 | ||
|
|
85fd2aed7e | ||
|
|
e659eecf48 | ||
|
|
b428f7ff83 | ||
|
|
5eb133283d | ||
|
|
646c29600e | ||
|
|
469eb4315d | ||
|
|
6dc54d0d64 | ||
|
|
adc84d5148 | ||
|
|
88642b1ce8 | ||
|
|
4b8d207533 | ||
|
|
36fe5cc4d1 | ||
|
|
370b0dbed2 | ||
|
|
cc7a82fb0a | ||
|
|
6eea26c39e | ||
|
|
b8bfae7840 | ||
|
|
dc6a0a1cbb | ||
|
|
a6807c9d21 | ||
|
|
c628090d08 | ||
|
|
4e0b291ed1 | ||
|
|
ee0bc9b0c8 | ||
|
|
e516c1f49f | ||
|
|
01f53f36fc | ||
|
|
f2d396caae | ||
|
|
001f2f60b8 | ||
|
|
78ca930287 | ||
|
|
b03e18df12 | ||
|
|
3a6b8b072c | ||
|
|
d480cd6bbd | ||
|
|
181b624bf4 | ||
|
|
200495e4ce | ||
|
|
9178f14c40 | ||
|
|
9a790f5352 | ||
|
|
33d8be7f8f | ||
|
|
82aa86b786 | ||
|
|
6288d5ef43 | ||
|
|
00a97b7ae2 | ||
|
|
a19fb3aa0f | ||
|
|
93fae76f9c | ||
|
|
e5131d5557 | ||
|
|
930063638c | ||
|
|
7b509ae672 | ||
|
|
711da37771 | ||
|
|
5e50b96994 | ||
|
|
35d2f5950f | ||
|
|
37f969416c | ||
|
|
75630e0982 | ||
|
|
038c228af4 | ||
|
|
a17aaebba3 | ||
|
|
c39ba31b4b | ||
|
|
91414d6f38 | ||
|
|
00bb723db3 | ||
|
|
65a97720b3 | ||
|
|
88eaf6efab | ||
|
|
abf159d5e0 | ||
|
|
a23879b507 | ||
|
|
a713b9170b | ||
|
|
8fd57459a1 | ||
|
|
9a3dc8ed5f | ||
|
|
c46dd8c556 | ||
|
|
e28edc5c93 | ||
|
|
3fc4f64824 | ||
|
|
90e51287e9 | ||
|
|
6d8b10802c | ||
|
|
1dd2ffd895 | ||
|
|
e4d422a2d7 | ||
|
|
bd55ad8212 | ||
|
|
6591dae152 | ||
|
|
a490faa496 | ||
|
|
8fe16f1b0a | ||
|
|
bac19b66af | ||
|
|
b58090a181 | ||
|
|
8c1b707f38 | ||
|
|
4b4caccb3d | ||
|
|
102dc04221 | ||
|
|
8d96a57117 | ||
|
|
bf3a1fc832 | ||
|
|
d4db04207b | ||
|
|
9e5edd6c51 | ||
|
|
09db5cc2a9 | ||
|
|
b2653c457b | ||
|
|
6617ace647 | ||
|
|
b4bebb41be | ||
|
|
40aaa0952f | ||
|
|
af6344209c | ||
|
|
7ccdc7baac | ||
|
|
363922dd11 | ||
|
|
a8aa08600b | ||
|
|
ea798e40af | ||
|
|
d9e0c44d3a | ||
|
|
0a2d55d83d | ||
|
|
b4cb2fc391 | ||
|
|
ada5b35966 | ||
|
|
cc54d260a7 | ||
|
|
8147e75d89 | ||
|
|
c0bcc15d28 | ||
|
|
43d4268759 | ||
|
|
3e91f446b4 | ||
|
|
bdb6e33b41 | ||
|
|
2eb3d7ac57 | ||
|
|
ec24d0f39a | ||
|
|
75976a441d | ||
|
|
905b67512c | ||
|
|
0564690f49 | ||
|
|
364b832565 | ||
|
|
41ce96a2db | ||
|
|
a4b4397151 | ||
|
|
473159f1da | ||
|
|
c6267b5acc | ||
|
|
8a919043a2 | ||
|
|
c2e7be80e8 | ||
|
|
d95175253a | ||
|
|
e2106d12f6 | ||
|
|
84f95465f7 | ||
|
|
0ae74546a6 | ||
|
|
be2ae2c539 | ||
|
|
4969a65209 | ||
|
|
7275878b2b | ||
|
|
53d429e3f5 | ||
|
|
3f1384bd1a |
@@ -1,14 +1,7 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
examples
|
examples
|
||||||
|
|
||||||
# gatsby-plugin-now
|
|
||||||
packages/gatsby-plugin-now/test/fixtures
|
|
||||||
|
|
||||||
# build-utils
|
|
||||||
packages/build-utils/test/fixtures
|
packages/build-utils/test/fixtures
|
||||||
|
|
||||||
# cli
|
|
||||||
packages/cli/@types
|
packages/cli/@types
|
||||||
packages/cli/download
|
packages/cli/download
|
||||||
packages/cli/dist
|
packages/cli/dist
|
||||||
@@ -17,24 +10,9 @@ packages/cli/test/dev/fixtures
|
|||||||
packages/cli/bin
|
packages/cli/bin
|
||||||
packages/cli/link
|
packages/cli/link
|
||||||
packages/cli/src/util/dev/templates/*.ts
|
packages/cli/src/util/dev/templates/*.ts
|
||||||
|
|
||||||
# client
|
|
||||||
packages/client/tests/fixtures
|
packages/client/tests/fixtures
|
||||||
packages/client/lib
|
packages/client/lib
|
||||||
|
|
||||||
# next
|
|
||||||
packages/next/test/fixtures
|
|
||||||
|
|
||||||
# node
|
|
||||||
packages/node/src/bridge.ts
|
packages/node/src/bridge.ts
|
||||||
packages/node/test/fixtures
|
packages/node/test/fixtures
|
||||||
|
packages/node-bridge/bridge.js
|
||||||
# node-bridge
|
packages/node-bridge/launcher.js
|
||||||
packages/node-bridge/bridge.*
|
|
||||||
|
|
||||||
# static-build
|
|
||||||
packages/static-build/test/fixtures
|
|
||||||
packages/static-build/test/build-fixtures
|
|
||||||
|
|
||||||
# redwood
|
|
||||||
packages/redwood/test/fixtures
|
|
||||||
|
|||||||
2
.github/EXAMPLE_README_TEMPLATE.md
vendored
2
.github/EXAMPLE_README_TEMPLATE.md
vendored
@@ -6,7 +6,7 @@ This directory is a brief example of a [Name](site-link) site that can be deploy
|
|||||||
|
|
||||||
Deploy your own [Name] project with Vercel.
|
Deploy your own [Name] project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/example-directory)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/example-directory)
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/cancel.yml
vendored
2
.github/workflows/cancel.yml
vendored
@@ -3,7 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
- '!master'
|
- '!main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cancel:
|
cancel:
|
||||||
|
|||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -3,7 +3,7 @@ name: Publish
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
tags:
|
tags:
|
||||||
- '!*'
|
- '!*'
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/test-integration-cli.yml
vendored
6
.github/workflows/test-integration-cli.yml
vendored
@@ -3,7 +3,7 @@ name: CLI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
tags:
|
tags:
|
||||||
- '!*'
|
- '!*'
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -29,9 +29,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- run: git --version
|
- run: git --version
|
||||||
- run: git fetch origin master --depth=100
|
- run: git fetch origin main --depth=100
|
||||||
- run: git fetch origin ${{ github.ref }} --depth=100
|
- run: git fetch origin ${{ github.ref }} --depth=100
|
||||||
- run: git diff origin/master...HEAD --name-only
|
- run: git diff origin/main...HEAD --name-only
|
||||||
- run: yarn install --network-timeout 1000000
|
- run: yarn install --network-timeout 1000000
|
||||||
- run: yarn run build
|
- run: yarn run build
|
||||||
- run: yarn test-integration-cli --clean false
|
- run: yarn test-integration-cli --clean false
|
||||||
|
|||||||
6
.github/workflows/test-integration-dev.yml
vendored
6
.github/workflows/test-integration-dev.yml
vendored
@@ -3,7 +3,7 @@ name: Dev
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
tags:
|
tags:
|
||||||
- '!*'
|
- '!*'
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -29,9 +29,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- run: git --version
|
- run: git --version
|
||||||
- run: git fetch origin master --depth=100
|
- run: git fetch origin main --depth=100
|
||||||
- run: git fetch origin ${{ github.ref }} --depth=100
|
- run: git fetch origin ${{ github.ref }} --depth=100
|
||||||
- run: git diff origin/master...HEAD --name-only
|
- run: git diff origin/main...HEAD --name-only
|
||||||
- name: Install Hugo
|
- name: Install Hugo
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.56.0/hugo_0.56.0_macOS-64bit.tar.gz && tar -xzf hugo_0.56.0_macOS-64bit.tar.gz && mv ./hugo packages/cli/test/dev/fixtures/08-hugo/
|
run: curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.56.0/hugo_0.56.0_macOS-64bit.tar.gz && tar -xzf hugo_0.56.0_macOS-64bit.tar.gz && mv ./hugo packages/cli/test/dev/fixtures/08-hugo/
|
||||||
|
|||||||
6
.github/workflows/test-integration-once.yml
vendored
6
.github/workflows/test-integration-once.yml
vendored
@@ -3,7 +3,7 @@ name: E2E
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
tags:
|
tags:
|
||||||
- '!*'
|
- '!*'
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -24,9 +24,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- run: git --version
|
- run: git --version
|
||||||
- run: git fetch origin master --depth=100
|
- run: git fetch origin main --depth=100
|
||||||
- run: git fetch origin ${{ github.ref }} --depth=100
|
- run: git fetch origin ${{ github.ref }} --depth=100
|
||||||
- run: git diff origin/master...HEAD --name-only
|
- run: git diff origin/main...HEAD --name-only
|
||||||
- run: yarn install --network-timeout 1000000
|
- run: yarn install --network-timeout 1000000
|
||||||
- run: yarn run build
|
- run: yarn run build
|
||||||
- run: yarn test-integration-once --clean false
|
- run: yarn test-integration-once --clean false
|
||||||
|
|||||||
6
.github/workflows/test-unit.yml
vendored
6
.github/workflows/test-unit.yml
vendored
@@ -3,7 +3,7 @@ name: Unit
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
tags:
|
tags:
|
||||||
- '!*'
|
- '!*'
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -29,9 +29,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- run: git --version
|
- run: git --version
|
||||||
- run: git fetch origin master --depth=100
|
- run: git fetch origin main --depth=100
|
||||||
- run: git fetch origin ${{ github.ref }} --depth=100
|
- run: git fetch origin ${{ github.ref }} --depth=100
|
||||||
- run: git diff origin/master...HEAD --name-only
|
- run: git diff origin/main...HEAD --name-only
|
||||||
- run: yarn install --network-timeout 1000000
|
- run: yarn install --network-timeout 1000000
|
||||||
- run: yarn run build
|
- run: yarn run build
|
||||||
- run: yarn run lint
|
- run: yarn run lint
|
||||||
|
|||||||
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
_
|
||||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn pre-commit
|
||||||
56
LICENSE
56
LICENSE
@@ -1,10 +1,11 @@
|
|||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
https://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
1. Definitions.
|
1. Definitions.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
@@ -63,14 +64,14 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
on behalf of whom a Contribution has been received by Licensor and
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
subsequently incorporated within the Work.
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
Work and such Derivative Works in Source or Object form.
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
(except as stated in this section) patent license to make, have made,
|
(except as stated in this section) patent license to make, have made,
|
||||||
@@ -86,7 +87,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
granted to You under this License for that Work shall terminate
|
granted to You under this License for that Work shall terminate
|
||||||
as of the date such litigation is filed.
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
modifications, and in Source or Object form, provided that You
|
modifications, and in Source or Object form, provided that You
|
||||||
meet the following conditions:
|
meet the following conditions:
|
||||||
@@ -127,7 +128,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
reproduction, and distribution of the Work otherwise complies with
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
the conditions stated in this License.
|
the conditions stated in this License.
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
this License, without any additional terms or conditions.
|
this License, without any additional terms or conditions.
|
||||||
@@ -135,12 +136,12 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
the terms of any separate license agreement you may have executed
|
the terms of any separate license agreement you may have executed
|
||||||
with Licensor regarding such Contributions.
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
except as required for reasonable and customary use in describing the
|
except as required for reasonable and customary use in describing the
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
@@ -150,7 +151,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
appropriateness of using or redistributing the Work and assume any
|
appropriateness of using or redistributing the Work and assume any
|
||||||
risks associated with Your exercise of permissions under this License.
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
unless required by applicable law (such as deliberate and grossly
|
unless required by applicable law (such as deliberate and grossly
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
@@ -162,7 +163,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
other commercial damages or losses), even if such Contributor
|
other commercial damages or losses), even if such Contributor
|
||||||
has been advised of the possibility of such damages.
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
or other liability obligations and/or rights consistent with this
|
or other liability obligations and/or rights consistent with this
|
||||||
@@ -173,18 +174,29 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
incurred by, or claims asserted against, such Contributor by reason
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
Copyright 2017 Vercel, Inc.
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
To apply the Apache License to your work, attach the following
|
||||||
you may not use this file except in compliance with the License.
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
You may obtain a copy of the License at
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
Copyright 2017 Vercel, Inc.
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
you may not use this file except in compliance with the License.
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
You may obtain a copy of the License at
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|||||||
@@ -6,14 +6,14 @@
|
|||||||
<p align="center">Develop. Preview. Ship.</p>
|
<p align="center">Develop. Preview. Ship.</p>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
[](https://github.com/vercel/vercel/actions?workflow=CI)
|
[](https://github.com/vercel/vercel/actions/workflows/test-unit.yml)
|
||||||
[](https://github.com/vercel/vercel/discussions)
|
[](https://github.com/vercel/vercel/discussions)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Vercel is the optimal workflow for frontend teams. All-in-one: Static and Jamstack deployment, Serverless Functions, and Global CDN.
|
Vercel is the optimal workflow for frontend teams. All-in-one: Static and Jamstack deployment, Serverless Functions, and Global CDN.
|
||||||
|
|
||||||
Get started by [Importing a Git Project](https://vercel.com/import) and use `git push` to deploy. Alternatively, you can [install Vercel CLI](https://vercel.com/download).
|
Get started by [Importing a Git Project](https://vercel.com/new) and use `git push` to deploy. Alternatively, you can [install Vercel CLI](https://vercel.com/cli).
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ export default withApiHandler(async function (
|
|||||||
|
|
||||||
const example = segment.slice(0, -ext.length);
|
const example = segment.slice(0, -ext.length);
|
||||||
|
|
||||||
await extract('https://github.com/vercel/vercel/archive/master.zip', TMP_DIR);
|
await extract('https://github.com/vercel/vercel/archive/main.zip', TMP_DIR);
|
||||||
const directory = `${TMP_DIR}/vercel-master/examples/${example}`;
|
const directory = `${TMP_DIR}/vercel-main/examples/${example}`;
|
||||||
|
|
||||||
if (!isDirectory(directory)) {
|
if (!isDirectory(directory)) {
|
||||||
return notFound(res, `Example '${example}' was not found.`);
|
return notFound(res, `Example '${example}' was not found.`);
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ export default withApiHandler(async function (
|
|||||||
req: VercelRequest,
|
req: VercelRequest,
|
||||||
res: VercelResponse
|
res: VercelResponse
|
||||||
) {
|
) {
|
||||||
await extract('https://github.com/vercel/vercel/archive/master.zip', '/tmp');
|
await extract('https://github.com/vercel/vercel/archive/main.zip', '/tmp');
|
||||||
const exampleList = summary('/tmp/vercel-master/examples');
|
const exampleList = summary('/tmp/vercel-main/examples');
|
||||||
|
|
||||||
const existingExamples = Array.from(exampleList).map(key => ({
|
const existingExamples = Array.from(exampleList).map(key => ({
|
||||||
name: key,
|
name: key,
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ const frameworks = (_frameworks as Framework[])
|
|||||||
sort: undefined,
|
sort: undefined,
|
||||||
dependency: undefined,
|
dependency: undefined,
|
||||||
defaultRoutes: undefined,
|
defaultRoutes: undefined,
|
||||||
cachePattern: undefined,
|
|
||||||
devCommand: undefined,
|
devCommand: undefined,
|
||||||
buildCommand: undefined,
|
buildCommand: undefined,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/node": "5.11.1",
|
"@sentry/node": "5.11.1",
|
||||||
"got": "10.2.1",
|
"got": "10.2.1",
|
||||||
"node-fetch": "2.6.0",
|
"node-fetch": "2.6.1",
|
||||||
"parse-github-url": "1.0.2",
|
"parse-github-url": "1.0.2",
|
||||||
"tar-fs": "2.0.0",
|
"tar-fs": "2.0.0",
|
||||||
"unzip-stream": "0.3.0"
|
"unzip-stream": "0.3.0"
|
||||||
|
|||||||
@@ -362,10 +362,10 @@ ms@^2.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
|
||||||
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
|
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
|
||||||
|
|
||||||
node-fetch@2.6.0:
|
node-fetch@2.6.1:
|
||||||
version "2.6.0"
|
version "2.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
|
||||||
integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
|
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
|
||||||
|
|
||||||
normalize-url@^4.1.0:
|
normalize-url@^4.1.0:
|
||||||
version "4.5.0"
|
version "4.5.0"
|
||||||
|
|||||||
@@ -7,4 +7,5 @@ You specified the `--scope` flag and specified the ID or slug of a team that you
|
|||||||
#### Possible Ways to Fix It
|
#### Possible Ways to Fix It
|
||||||
|
|
||||||
- Make sure commands like `vercel ls` work just fine. This will ensure that your user credentials are valid. If it's not working correctly, please log in again using `vercel login`.
|
- Make sure commands like `vercel ls` work just fine. This will ensure that your user credentials are valid. If it's not working correctly, please log in again using `vercel login`.
|
||||||
- Ensure that the scope you specified using `--scope` shows up in the output of `vercel switch`. If it doesn't, you're either not part of the team (if you specified a team) or you logged into the wrong user account.
|
- If you're using the `--token` flag, make sure your token is not expired. You can generate a new token on your [Settings page](https://vercel.com/account/tokens).
|
||||||
|
- Ensure that the scope you specified using `--scope` flag shows up in the output of `vercel switch`. If it doesn't, you're either not a member of the team or you logged into the wrong user account. You can ask an owner of the team to invite you.
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#### Why This Error Occurred
|
#### Why This Error Occurred
|
||||||
|
|
||||||
You specified the `--scope` flag and specified the ID or slug of a team that does not exist or that you're not a part of. Similarly you might have specified the ID or username of user whose account you don't own.
|
You specified the `--scope` flag and specified the ID or slug of a team that does not exist or that you're not a member. Similarly you might have specified the ID or username of user whose account you don't own.
|
||||||
|
|
||||||
#### Possible Ways to Fix It
|
#### Possible Ways to Fix It
|
||||||
|
|
||||||
If you're sure the specified team exists, please make sure that you're a part of it (ask an owner of the team to invite you). If you specified the identifier of a user, make sure you are actually the owner of this account.
|
- Make sure commands like `vercel ls` work just fine. This will ensure that your user credentials are valid. If it's not working correctly, please log in again using `vercel login`.
|
||||||
|
- If you're using the `--token` flag, make sure your token is not expired. You can generate a new token on your [Settings page](https://vercel.com/account/tokens).
|
||||||
Otherwise, either create a team with the specified slug or ensure that the identifier is correct if you're sure that the scope exists.
|
- Ensure that the scope you specified using `--scope` flag shows up in the output of `vercel switch`. If it doesn't, you're either not a member of the team or you logged into the wrong user account. You can ask an owner of the team to invite you.
|
||||||
|
|||||||
12
examples/README.md
vendored
12
examples/README.md
vendored
@@ -45,12 +45,12 @@ We are continuously improving our examples based on best practices and feedback
|
|||||||
For example, the previous `nodejs` example showed a static frontend with a Node.js API. This is illustrated in the `svelte` example. Below is a table that lists some of the most popular previous examples and the equivalent replacement:
|
For example, the previous `nodejs` example showed a static frontend with a Node.js API. This is illustrated in the `svelte` example. Below is a table that lists some of the most popular previous examples and the equivalent replacement:
|
||||||
|
|
||||||
| Previous Example | New Example |
|
| Previous Example | New Example |
|
||||||
| ----------------- | ------------------------------------------------------------------------------------------ |
|
| ----------------- | ---------------------------------------------------------------------------------------- |
|
||||||
| **monorepo** | [gatsby-functions](https://github.com/vercel/vercel/tree/master/examples/gatsby) |
|
| **monorepo** | [gatsby-functions](https://github.com/vercel/vercel/tree/main/examples/gatsby) |
|
||||||
| **nodejs** | [svelte-functions](https://github.com/vercel/vercel/tree/master/examples/svelte) |
|
| **nodejs** | [svelte-functions](https://github.com/vercel/vercel/tree/main/examples/svelte) |
|
||||||
| **nextjs-static** | [nextjs](https://github.com/vercel/vercel/tree/master/examples/nextjs) |
|
| **nextjs-static** | [nextjs](https://github.com/vercel/vercel/tree/main/examples/nextjs) |
|
||||||
| **vanilla-go** | [create-react-app](https://github.com/vercel/vercel/tree/master/examples/create-react-app) |
|
| **vanilla-go** | [create-react-app](https://github.com/vercel/vercel/tree/main/examples/create-react-app) |
|
||||||
| **typescript** | [gatsby-functions](https://github.com/vercel/vercel/tree/master/examples/gatsby) |
|
| **typescript** | [gatsby-functions](https://github.com/vercel/vercel/tree/main/examples/gatsby) |
|
||||||
|
|
||||||
## Migrating and Upgrading
|
## Migrating and Upgrading
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of an [AMP](https://amp.dev/) site that can be
|
|||||||
|
|
||||||
Deploy your own AMP project with Vercel.
|
Deploy your own AMP project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/amp)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/amp)
|
||||||
|
|
||||||
_Live Example: https://amp.now-examples.now.sh_
|
_Live Example: https://amp.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
2
examples/angular/.gitignore
vendored
2
examples/angular/.gitignore
vendored
@@ -48,3 +48,5 @@ Thumbs.db
|
|||||||
# Environment Variables
|
# Environment Variables
|
||||||
.env
|
.env
|
||||||
.env.build
|
.env.build
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
README.md
|
README.md
|
||||||
yarn.lock
|
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of an [Angular](https://angular.io/) app that
|
|||||||
|
|
||||||
Deploy your own Angular project with Vercel.
|
Deploy your own Angular project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/angular)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/angular&template=angular)
|
||||||
|
|
||||||
_Live Example: https://angular.now-examples.now.sh_
|
_Live Example: https://angular.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
7222
examples/angular/yarn.lock
Normal file
7222
examples/angular/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ This directory is a brief example of a [Blitz.js](https://blitzjs.com/) project
|
|||||||
|
|
||||||
Deploy your own Blitz.js project with Vercel by viewing the [documentation on deploying to Vercel](https://blitzjs.com/docs/deploy-vercel)
|
Deploy your own Blitz.js project with Vercel by viewing the [documentation on deploying to Vercel](https://blitzjs.com/docs/deploy-vercel)
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/blitzjs)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/blitzjs&template=blitzjs)
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/cli": "latest",
|
"@prisma/cli": "latest",
|
||||||
"@prisma/client": "latest",
|
"@prisma/client": "latest",
|
||||||
"blitz": "latest",
|
"blitz": "0.17.0",
|
||||||
"react": "experimental",
|
"react": "experimental",
|
||||||
"react-dom": "experimental"
|
"react-dom": "experimental"
|
||||||
},
|
},
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"lint-staged": "10.2.10",
|
"lint-staged": "10.2.10",
|
||||||
"prettier": "2.0.5",
|
"prettier": "2.0.5",
|
||||||
"pretty-quick": "2.0.1",
|
"pretty-quick": "2.0.1",
|
||||||
"typescript": "3.9.5"
|
"typescript": "4.1.5"
|
||||||
},
|
},
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|||||||
9388
examples/blitzjs/yarn.lock
Normal file
9388
examples/blitzjs/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
1
examples/brunch/.gitignore
vendored
1
examples/brunch/.gitignore
vendored
@@ -28,3 +28,4 @@ public/
|
|||||||
# Environment Variables
|
# Environment Variables
|
||||||
.env
|
.env
|
||||||
.env.build
|
.env.build
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
README.md
|
README.md
|
||||||
yarn.lock
|
|
||||||
@@ -6,7 +6,7 @@ This directory is a brief example of a [Brunch](https://brunch.io/) site that ca
|
|||||||
|
|
||||||
Deploy your own Brunch project with Vercel.
|
Deploy your own Brunch project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/brunch)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/brunch&template=brunch)
|
||||||
|
|
||||||
_Live Example: https://brunch.now-examples.now.sh_
|
_Live Example: https://brunch.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
3475
examples/brunch/yarn.lock
Normal file
3475
examples/brunch/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
1
examples/create-react-app/.gitignore
vendored
1
examples/create-react-app/.gitignore
vendored
@@ -26,3 +26,4 @@ yarn-error.log*
|
|||||||
# Environment Variables
|
# Environment Variables
|
||||||
.env
|
.env
|
||||||
.env.build
|
.env.build
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
README.md
|
README.md
|
||||||
yarn.lock
|
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [React](https://reactjs.org/) app with [S
|
|||||||
|
|
||||||
Deploy your own React project, along with Serverless Functions, with Vercel.
|
Deploy your own React project, along with Serverless Functions, with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/create-react-app-functions)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/create-react-app-functions&template=create-react-app)
|
||||||
|
|
||||||
_Live Example: https://create-react-app.now-examples.now.sh/_
|
_Live Example: https://create-react-app.now-examples.now.sh/_
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module example-date
|
module example-date
|
||||||
|
|
||||||
go 1.12
|
go 1.16
|
||||||
@@ -28,7 +28,7 @@ function App() {
|
|||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/vercel/vercel/tree/master/examples/create-react-app"
|
href="https://github.com/vercel/vercel/tree/main/examples/create-react-app"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
|
|||||||
10714
examples/create-react-app/yarn.lock
Normal file
10714
examples/create-react-app/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1 @@
|
|||||||
README.md
|
README.md
|
||||||
yarn.lock
|
|
||||||
@@ -6,7 +6,7 @@ This directory is a brief example of using a Custom Build script that can be dep
|
|||||||
|
|
||||||
Deploy your own Custom Built project with Vercel.
|
Deploy your own Custom Built project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/custom-build)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/custom-build)
|
||||||
|
|
||||||
_Live Example: https://custom-build.now-examples.now.sh_
|
_Live Example: https://custom-build.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of a [Docusaurus](https://v2.docusaurus.io) si
|
|||||||
|
|
||||||
Deploy your own Docusaurus project with Vercel.
|
Deploy your own Docusaurus project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/docusaurus-2)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/docusaurus-2&template=docusaurus-2)
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
|
|||||||
3
examples/docusaurus/.gitignore
vendored
3
examples/docusaurus/.gitignore
vendored
@@ -7,9 +7,10 @@ lib/core/MetadataBlog.js
|
|||||||
|
|
||||||
translated_docs
|
translated_docs
|
||||||
build/
|
build/
|
||||||
yarn.lock
|
|
||||||
node_modules
|
node_modules
|
||||||
i18n/*
|
i18n/*
|
||||||
|
|
||||||
.env
|
.env
|
||||||
.env.build
|
.env.build
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
README.md
|
|
||||||
yarn.lock
|
|
||||||
1
examples/docusaurus/.vercelignore
Normal file
1
examples/docusaurus/.vercelignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
README.md
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Docusaurus](https://docusaurus.io/) site
|
|||||||
|
|
||||||
Deploy your own Docusaurus project with Vercel.
|
Deploy your own Docusaurus project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/docusaurus)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/docusaurus&template=docusaurus)
|
||||||
|
|
||||||
_Live Example: https://docusaurus.now-examples.now.sh_
|
_Live Example: https://docusaurus.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
6976
examples/docusaurus/yarn.lock
Normal file
6976
examples/docusaurus/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
2
examples/dojo/.gitignore
vendored
2
examples/dojo/.gitignore
vendored
@@ -2,3 +2,5 @@ node_modules/
|
|||||||
_build/
|
_build/
|
||||||
output/
|
output/
|
||||||
.cert/
|
.cert/
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of a [Dojo](https://dojo.io) site that can be
|
|||||||
|
|
||||||
Deploy your own Dojo project with Vercel.
|
Deploy your own Dojo project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/dojo)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/dojo&template=dojo)
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
|
|||||||
11081
examples/dojo/yarn.lock
Normal file
11081
examples/dojo/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,2 +0,0 @@
|
|||||||
README.md
|
|
||||||
yarn.lock
|
|
||||||
1
examples/eleventy/.vercelignore
Normal file
1
examples/eleventy/.vercelignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
README.md
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Eleventy](https://www.11ty.io/) site tha
|
|||||||
|
|
||||||
Deploy your own Eleventy project with Vercel.
|
Deploy your own Eleventy project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/eleventy)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/eleventy&template=eleventy)
|
||||||
|
|
||||||
_Live Example: https://eleventy.now-examples.now.sh_
|
_Live Example: https://eleventy.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
3126
examples/eleventy/yarn.lock
Normal file
3126
examples/eleventy/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ This directory is a brief example of an [Ember](https://emberjs.com/) app that c
|
|||||||
|
|
||||||
Deploy your own Ember project with Vercel.
|
Deploy your own Ember project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/ember)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/ember&template=ember)
|
||||||
|
|
||||||
_Live Example: https://ember.now-examples.now.sh_
|
_Live Example: https://ember.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
8912
examples/ember/yarn.lock
Normal file
8912
examples/ember/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
2
examples/gatsby/.gitignore
vendored
2
examples/gatsby/.gitignore
vendored
@@ -68,3 +68,5 @@ yarn-error.log
|
|||||||
.pnp.js
|
.pnp.js
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Gatsby](https://www.gatsbyjs.org/) app w
|
|||||||
|
|
||||||
Deploy your own Gatsby project, along with Serverless Functions, with Vercel.
|
Deploy your own Gatsby project, along with Serverless Functions, with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/gatsby)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/gatsby&template=gatsby)
|
||||||
|
|
||||||
_Live Example: https://gatsby.now-examples.now.sh_
|
_Live Example: https://gatsby.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function Index() {
|
|||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/vercel/vercel/tree/master/examples/gatsby"
|
href="https://github.com/vercel/vercel/tree/main/examples/gatsby"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
|
|||||||
2
examples/gridsome/.gitignore
vendored
2
examples/gridsome/.gitignore
vendored
@@ -6,3 +6,5 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
README.md
|
|
||||||
yarn.lock
|
|
||||||
1
examples/gridsome/.vercelignore
Normal file
1
examples/gridsome/.vercelignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
README.md
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Gridsome](https://gridsome.org/) app tha
|
|||||||
|
|
||||||
Deploy your own Gridsome project with Vercel.
|
Deploy your own Gridsome project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/gridsome)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/gridsome&template=gridsome)
|
||||||
|
|
||||||
_Live Example: https://gridsome.now-examples.now.sh_
|
_Live Example: https://gridsome.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
9001
examples/gridsome/yarn.lock
Normal file
9001
examples/gridsome/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
1
examples/hexo/.gitignore
vendored
1
examples/hexo/.gitignore
vendored
@@ -7,3 +7,4 @@ public/
|
|||||||
.deploy*/
|
.deploy*/
|
||||||
.env
|
.env
|
||||||
.env.build
|
.env.build
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
README.md
|
|
||||||
yarn.lock
|
|
||||||
1
examples/hexo/.vercelignore
Normal file
1
examples/hexo/.vercelignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
README.md
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Hexo](https://hexo.io/) site that can be
|
|||||||
|
|
||||||
Deploy your own Hexo project with Vercel.
|
Deploy your own Hexo project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/hexo)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/hexo&template=hexo)
|
||||||
|
|
||||||
_Live Example: https://hexo.now-examples.now.sh_
|
_Live Example: https://hexo.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
1259
examples/hexo/yarn.lock
Normal file
1259
examples/hexo/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ This directory is a brief example of a [Hugo](https://gohugo.io/) app that can b
|
|||||||
|
|
||||||
Deploy your own Hugo project with Vercel.
|
Deploy your own Hugo project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/hugo)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/hugo&template=hugo)
|
||||||
|
|
||||||
_Live Example: https://hugo.now-examples.now.sh_
|
_Live Example: https://hugo.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of an [Ionic Angular](https://ionicframework.c
|
|||||||
|
|
||||||
Deploy your own Ionic Angular project with Vercel.
|
Deploy your own Ionic Angular project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/ionic-angular)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/ionic-angular&template=ionic-angular)
|
||||||
|
|
||||||
_Live Example: https://ionic-angular.now-examples.now.sh_
|
_Live Example: https://ionic-angular.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
"outDir": "../out-tsc/app",
|
"outDir": "../out-tsc/app",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"types": ["jasmine", "jasminewd2", "node"]
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"jasminewd2",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
{
|
{
|
||||||
"hosting": {
|
"hosting": {
|
||||||
"public": "www",
|
"public": "www",
|
||||||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
"ignore": [
|
||||||
|
"firebase.json",
|
||||||
|
"**/.*",
|
||||||
|
"**/node_modules/**"
|
||||||
|
],
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"source": "**",
|
"source": "**",
|
||||||
@@ -24,7 +28,8 @@
|
|||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "Link",
|
"key": "Link",
|
||||||
"value": "</25.1b3c099ae403f43312d0.js>;rel=preload;as=script,</42.91f2cf76f9e429447426.js>;rel=preload;as=script,</assets/img/ica-slidebox-img-1.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-2.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-3.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-4.png>;rel=preload;as=script,</styles.c3b77cedd39edf7f2ba7.css>;rel=preload;as=style,</runtime.c658d4aee58a354b92a4.js>;rel=preload;as=script,</polyfills.83e506f1c32447a5a917.js>;rel=preload;as=script,</main.d18c9fbebcc1ea7206dd.js>;rel=preload;as=script,</common.95b27ec389e8789da858.js>;rel=preload;as=script,</118.34bf2ef085eaf0e363f1.js>;rel=preload;as=script,</120.5225f4140a92422328f1.js>;rel=preload;as=script,</28.6d73bdf869c966907e65.js>;rel=preload;as=script,</46.d30624137fdd3c3d67a4.js>;rel=preload;as=script,</176.dfa169e16d326704de08.js>;rel=preload;as=script,</106.896eb88d791c9b3500a6.js>;rel=preload;as=script,</8.5deb8afd2d9798907a78.js>;rel=preload;as=script,</146.6fb45a20998ca61d9fbb.js>;rel=preload;as=script,</92.8431776ac4239463d31f.js>;rel=preload;as=script,</10.9dfc5381b71f20b8d830.js>;rel=preload;as=script,</5.ddd0a72185376268a758.js>;rel=preload;as=script,</4.54d1be505b517fb8a365.js>;rel=preload;as=script,"
|
"value":
|
||||||
|
"</25.1b3c099ae403f43312d0.js>;rel=preload;as=script,</42.91f2cf76f9e429447426.js>;rel=preload;as=script,</assets/img/ica-slidebox-img-1.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-2.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-3.png>;rel=preload;as=script,</assets/img/ica-slidebox-img-4.png>;rel=preload;as=script,</styles.c3b77cedd39edf7f2ba7.css>;rel=preload;as=style,</runtime.c658d4aee58a354b92a4.js>;rel=preload;as=script,</polyfills.83e506f1c32447a5a917.js>;rel=preload;as=script,</main.d18c9fbebcc1ea7206dd.js>;rel=preload;as=script,</common.95b27ec389e8789da858.js>;rel=preload;as=script,</118.34bf2ef085eaf0e363f1.js>;rel=preload;as=script,</120.5225f4140a92422328f1.js>;rel=preload;as=script,</28.6d73bdf869c966907e65.js>;rel=preload;as=script,</46.d30624137fdd3c3d67a4.js>;rel=preload;as=script,</176.dfa169e16d326704de08.js>;rel=preload;as=script,</106.896eb88d791c9b3500a6.js>;rel=preload;as=script,</8.5deb8afd2d9798907a78.js>;rel=preload;as=script,</146.6fb45a20998ca61d9fbb.js>;rel=preload;as=script,</92.8431776ac4239463d31f.js>;rel=preload;as=script,</10.9dfc5381b71f20b8d830.js>;rel=preload;as=script,</5.ddd0a72185376268a758.js>;rel=preload;as=script,</4.54d1be505b517fb8a365.js>;rel=preload;as=script,"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,15 +5,21 @@
|
|||||||
"name": "app",
|
"name": "app",
|
||||||
"installMode": "prefetch",
|
"installMode": "prefetch",
|
||||||
"resources": {
|
"resources": {
|
||||||
"files": ["/favicon.ico", "/index.html", "/*.css", "/*.js"]
|
"files": [
|
||||||
|
"/favicon.ico",
|
||||||
|
"/index.html",
|
||||||
|
"/*.css",
|
||||||
|
"/*.js"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
"name": "assets",
|
"name": "assets",
|
||||||
"installMode": "lazy",
|
"installMode": "lazy",
|
||||||
"updateMode": "prefetch",
|
"updateMode": "prefetch",
|
||||||
"resources": {
|
"resources": {
|
||||||
"files": ["/assets/**"]
|
"files": [
|
||||||
|
"/assets/**"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
13585
examples/ionic-angular/package-lock.json
generated
13585
examples/ionic-angular/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,11 @@
|
|||||||
"outDir": "./out-tsc/app",
|
"outDir": "./out-tsc/app",
|
||||||
"types": []
|
"types": []
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"],
|
"include": [
|
||||||
"exclude": ["src/test.ts", "src/**/*.spec.ts"]
|
"src/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"src/test.ts",
|
||||||
|
"src/**/*.spec.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,10 @@
|
|||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"target": "es2015",
|
"target": "es2015",
|
||||||
"lib": ["es2017", "dom"]
|
"skipLibCheck": true,
|
||||||
|
"lib": [
|
||||||
|
"es2017",
|
||||||
|
"dom"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,18 @@
|
|||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out-tsc/spec",
|
"outDir": "./out-tsc/spec",
|
||||||
"types": ["jasmine", "node"]
|
"types": [
|
||||||
|
"jasmine",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"files": ["src/test.ts", "src/zone-flags.ts", "src/polyfills.ts"],
|
"files": [
|
||||||
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
|
"src/test.ts",
|
||||||
|
"src/zone-flags.ts",
|
||||||
|
"src/polyfills.ts"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"src/**/*.spec.ts",
|
||||||
|
"src/**/*.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,24 @@
|
|||||||
{
|
{
|
||||||
"extends": "tslint:recommended",
|
"extends": "tslint:recommended",
|
||||||
"rulesDirectory": ["codelyzer"],
|
"rulesDirectory": [
|
||||||
|
"codelyzer"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"array-type": false,
|
"array-type": false,
|
||||||
"arrow-parens": false,
|
"arrow-parens": false,
|
||||||
"deprecation": {
|
"deprecation": {
|
||||||
"severity": "warn"
|
"severity": "warn"
|
||||||
},
|
},
|
||||||
"import-blacklist": [true, "rxjs/Rx"],
|
"import-blacklist": [
|
||||||
|
true,
|
||||||
|
"rxjs/Rx"
|
||||||
|
],
|
||||||
"interface-name": false,
|
"interface-name": false,
|
||||||
"max-classes-per-file": false,
|
"max-classes-per-file": false,
|
||||||
"max-line-length": [true, 140],
|
"max-line-length": [
|
||||||
|
true,
|
||||||
|
140
|
||||||
|
],
|
||||||
"member-access": false,
|
"member-access": false,
|
||||||
"member-ordering": [
|
"member-ordering": [
|
||||||
true,
|
true,
|
||||||
@@ -24,19 +32,35 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-consecutive-blank-lines": false,
|
"no-consecutive-blank-lines": false,
|
||||||
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
|
"no-console": [
|
||||||
|
true,
|
||||||
|
"debug",
|
||||||
|
"info",
|
||||||
|
"time",
|
||||||
|
"timeEnd",
|
||||||
|
"trace"
|
||||||
|
],
|
||||||
"no-empty": false,
|
"no-empty": false,
|
||||||
"no-inferrable-types": [true, "ignore-params"],
|
"no-inferrable-types": [
|
||||||
|
true,
|
||||||
|
"ignore-params"
|
||||||
|
],
|
||||||
"no-non-null-assertion": true,
|
"no-non-null-assertion": true,
|
||||||
"no-redundant-jsdoc": true,
|
"no-redundant-jsdoc": true,
|
||||||
"no-switch-case-fall-through": true,
|
"no-switch-case-fall-through": true,
|
||||||
"no-use-before-define": true,
|
"no-use-before-define": true,
|
||||||
"no-unused-variable": true,
|
"no-unused-variable": true,
|
||||||
"no-var-requires": false,
|
"no-var-requires": false,
|
||||||
"object-literal-key-quotes": [true, "as-needed"],
|
"object-literal-key-quotes": [
|
||||||
|
true,
|
||||||
|
"as-needed"
|
||||||
|
],
|
||||||
"object-literal-sort-keys": false,
|
"object-literal-sort-keys": false,
|
||||||
"ordered-imports": false,
|
"ordered-imports": false,
|
||||||
"quotemark": [true, "single"],
|
"quotemark": [
|
||||||
|
true,
|
||||||
|
"single"
|
||||||
|
],
|
||||||
"trailing-comma": false,
|
"trailing-comma": false,
|
||||||
"no-output-on-prefix": true,
|
"no-output-on-prefix": true,
|
||||||
"no-inputs-metadata-property": true,
|
"no-inputs-metadata-property": true,
|
||||||
@@ -48,7 +72,18 @@
|
|||||||
"one-variable-per-declaration": false,
|
"one-variable-per-declaration": false,
|
||||||
"component-class-suffix": [true, "Page", "Component"],
|
"component-class-suffix": [true, "Page", "Component"],
|
||||||
"directive-class-suffix": true,
|
"directive-class-suffix": true,
|
||||||
"directive-selector": [true, "attribute", "app", "camelCase"],
|
"directive-selector": [
|
||||||
"component-selector": [true, "element", "app", "page", "kebab-case"]
|
true,
|
||||||
|
"attribute",
|
||||||
|
"app",
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
|
"component-selector": [
|
||||||
|
true,
|
||||||
|
"element",
|
||||||
|
"app",
|
||||||
|
"page",
|
||||||
|
"kebab-case"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9322
examples/ionic-angular/yarn.lock
Normal file
9322
examples/ionic-angular/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
2
examples/ionic-react/.gitignore
vendored
2
examples/ionic-react/.gitignore
vendored
@@ -22,3 +22,5 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of an [Ionic React](https://ionicframework.com
|
|||||||
|
|
||||||
Deploy your own Ionic React project with Vercel.
|
Deploy your own Ionic React project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/ionic-react)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/ionic-react&template=ionic-react)
|
||||||
|
|
||||||
_Live Example: https://ionic-react.now-examples.now.sh_
|
_Live Example: https://ionic-react.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
11298
examples/ionic-react/yarn.lock
Normal file
11298
examples/ionic-react/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ This directory is a brief example of a [Jekyll](https://jekyllrb.com/) site that
|
|||||||
|
|
||||||
Deploy your own Jekyll project with Vercel.
|
Deploy your own Jekyll project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/jekyll)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/jekyll&template=jekyll)
|
||||||
|
|
||||||
_Live Example: https://jekyll.now-examples.now.sh_
|
_Live Example: https://jekyll.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ This directory is a brief example of a [Middleman](https://middlemanapp.com/) si
|
|||||||
|
|
||||||
Deploy your own Middleman project with Vercel.
|
Deploy your own Middleman project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/middleman)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/middleman&template=middleman)
|
||||||
|
|
||||||
_Live Example: https://middleman.now-examples.now.sh_
|
_Live Example: https://middleman.now-examples.now.sh_
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
"start": "next start"
|
"start": "next start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "10.0.5",
|
"next": "10.x",
|
||||||
"react": "17.0.1",
|
"react": "17.x",
|
||||||
"react-dom": "17.0.1"
|
"react-dom": "17.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 25 KiB |
1894
examples/nextjs/yarn.lock
Normal file
1894
examples/nextjs/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
9
examples/nuxtjs/.gitignore
vendored
9
examples/nuxtjs/.gitignore
vendored
@@ -80,10 +80,15 @@ dist
|
|||||||
|
|
||||||
# IDE / Editor
|
# IDE / Editor
|
||||||
.idea
|
.idea
|
||||||
.editorconfig
|
|
||||||
|
|
||||||
# Service worker
|
# Service worker
|
||||||
sw.*
|
sw.*
|
||||||
|
|
||||||
# Mac OSX
|
# macOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Vim swap files
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# Vercel
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
README.md
|
README.md
|
||||||
|
.nuxt
|
||||||
|
node_modules
|
||||||
|
*.log
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ This directory is a brief example of a [Nuxt.js](https://nuxtjs.org) app that ca
|
|||||||
|
|
||||||
Deploy your own Nuxt.js project with Vercel.
|
Deploy your own Nuxt.js project with Vercel.
|
||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/master/examples/nuxtjs)
|
[](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/nuxtjs&template=nuxtjs)
|
||||||
|
|
||||||
_Live Example: https://nuxtjs.now-examples.now.sh_
|
_Live Example: https://nuxtjs.now-examples.vercel.app/_
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
@@ -17,5 +17,3 @@ To get started with Nuxt.js deployed with Vercel, you can use the [Create-Nuxt-A
|
|||||||
```shell
|
```shell
|
||||||
$ npx create-nuxt-app my-app
|
$ npx create-nuxt-app my-app
|
||||||
```
|
```
|
||||||
|
|
||||||
> The only change made is to amend the output directory in `nuxt.config.js` to `"/public"`.
|
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# ASSETS
|
|
||||||
|
|
||||||
**This directory is not required, you can delete it if you don't want to use it.**
|
|
||||||
|
|
||||||
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="VueToNuxtLogo">
|
|
||||||
<div class="Triangle Triangle--two" />
|
|
||||||
<div class="Triangle Triangle--one" />
|
|
||||||
<div class="Triangle Triangle--three" />
|
|
||||||
<div class="Triangle Triangle--four" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.VueToNuxtLogo {
|
|
||||||
display: inline-block;
|
|
||||||
animation: turn 2s linear forwards 1s;
|
|
||||||
transform: rotateX(180deg);
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
height: 180px;
|
|
||||||
width: 245px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Triangle {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Triangle--one {
|
|
||||||
border-left: 105px solid transparent;
|
|
||||||
border-right: 105px solid transparent;
|
|
||||||
border-bottom: 180px solid #41b883;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Triangle--two {
|
|
||||||
top: 30px;
|
|
||||||
left: 35px;
|
|
||||||
animation: goright 0.5s linear forwards 3.5s;
|
|
||||||
border-left: 87.5px solid transparent;
|
|
||||||
border-right: 87.5px solid transparent;
|
|
||||||
border-bottom: 150px solid #3b8070;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Triangle--three {
|
|
||||||
top: 60px;
|
|
||||||
left: 35px;
|
|
||||||
animation: goright 0.5s linear forwards 3.5s;
|
|
||||||
border-left: 70px solid transparent;
|
|
||||||
border-right: 70px solid transparent;
|
|
||||||
border-bottom: 120px solid #35495e;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Triangle--four {
|
|
||||||
top: 120px;
|
|
||||||
left: 70px;
|
|
||||||
animation: godown 0.5s linear forwards 3s;
|
|
||||||
border-left: 35px solid transparent;
|
|
||||||
border-right: 35px solid transparent;
|
|
||||||
border-bottom: 60px solid #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes turn {
|
|
||||||
100% {
|
|
||||||
transform: rotateX(0deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes godown {
|
|
||||||
100% {
|
|
||||||
top: 180px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes goright {
|
|
||||||
100% {
|
|
||||||
left: 70px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# COMPONENTS
|
|
||||||
|
|
||||||
**This directory is not required, you can delete it if you don't want to use it.**
|
|
||||||
|
|
||||||
The components directory contains your Vue.js Components.
|
|
||||||
|
|
||||||
_Nuxt.js doesn't supercharge these components._
|
|
||||||
46
examples/nuxtjs/components/Tutorial.vue
Normal file
46
examples/nuxtjs/components/Tutorial.vue
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<!-- Please remove this file from your project -->
|
||||||
|
<template>
|
||||||
|
<div class="relative flex items-top justify-center min-h-screen bg-gray-100 sm:items-center sm:pt-0">
|
||||||
|
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
|
||||||
|
<div class="max-w-4xl mx-auto sm:px-6 lg:px-8">
|
||||||
|
<a class="flex justify-center pt-8 sm:pt-0" href="https://nuxtjs.org" target="_blank">
|
||||||
|
<svg width="218" height="45" viewBox="0 0 159 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M55.5017 6.81866H60.1727L70.0719 22.9912V6.81866H74.3837V29.7345H69.7446L59.8135 13.5955V29.7345H55.5017V6.81866Z" fill="#003543" /> <path d="M93.657 29.7344H89.6389V27.1747C88.7241 28.9761 86.8628 29.9904 84.5113 29.9904C80.7869 29.9904 78.3684 27.3059 78.3684 23.4423V13.2339H82.3865V22.5976C82.3865 24.8566 83.7594 26.4276 85.8171 26.4276C88.0712 26.4276 89.6389 24.6598 89.6389 22.2377V13.2339H93.657V29.7344Z" fill="#003543" /> <path d="M107.64 29.7344L103.784 24.2342L99.9291 29.7344H95.6492L101.596 21.1242L96.1074 13.2339H100.485L103.784 17.9821L107.051 13.2339H111.461L105.94 21.1242L111.886 29.7344H107.64Z" fill="#003543" /> <path d="M120.053 8.25848V13.2339H124.627V16.6063H120.053V24.7974C120.053 25.0725 120.162 25.3363 120.356 25.531C120.55 25.7257 120.813 25.8353 121.087 25.8357H124.627V29.728H121.98C118.386 29.728 116.035 27.6323 116.035 23.9687V16.6095H112.801V13.2339H114.83C115.776 13.2339 116.327 12.6692 116.327 11.7349V8.25848H120.053Z" fill="#003543" /> <path d="M134.756 24.5446V6.81866H139.066V23.1864C139.066 27.6067 136.943 29.7345 133.349 29.7345H128.332V25.8421H133.461C133.804 25.8421 134.134 25.7054 134.377 25.4621C134.619 25.2188 134.756 24.8888 134.756 24.5446Z" fill="#003543" /> <path d="M141.649 22.0409H145.799C146.029 24.6006 147.728 26.2308 150.472 26.2308C152.923 26.2308 154.623 25.2501 154.623 23.2199C154.623 18.3085 142.331 21.7129 142.331 12.9395C142.334 9.17515 145.568 6.55945 150.215 6.55945C155.05 6.55945 158.317 9.34153 158.516 13.6306H154.388C154.193 11.6341 152.632 10.2918 150.207 10.2918C147.953 10.2918 146.548 11.3397 146.548 12.9427C146.548 18.0173 159 14.2226 159 23.1576C159 27.4131 155.504 30 150.474 30C145.279 30 141.882 26.8563 141.654 22.0441" fill="#003543" /> <path d="M24.7203 29.704H41.1008C41.6211 29.7041 42.1322 29.5669 42.5828 29.3061C43.0334 29.0454 43.4075 28.6704 43.6675 28.2188C43.9275 27.7672 44.0643 27.2549 44.0641 26.7335C44.0639 26.2121 43.9266 25.6999 43.6662 25.2485L32.6655 6.15312C32.4055 5.70162 32.0315 5.32667 31.581 5.06598C31.1305 4.8053 30.6195 4.66805 30.0994 4.66805C29.5792 4.66805 29.0682 4.8053 28.6177 5.06598C28.1672 5.32667 27.7932 5.70162 27.5332 6.15312L24.7203 11.039L19.2208 1.48485C18.9606 1.03338 18.5864 0.658493 18.1358 0.397853C17.6852 0.137213 17.1741 0 16.6538 0C16.1336 0 15.6225 0.137213 15.1719 0.397853C14.7213 0.658493 14.3471 1.03338 14.0868 1.48485L0.397874 25.2485C0.137452 25.6999 0.000226653 26.2121 2.8053e-07 26.7335C-0.000226092 27.2549 0.136554 27.7672 0.396584 28.2188C0.656614 28.6704 1.03072 29.0454 1.48129 29.3061C1.93185 29.5669 2.44298 29.7041 2.96326 29.704H13.2456C17.3195 29.704 20.3239 27.9106 22.3912 24.4118L27.4102 15.7008L30.0986 11.039L38.1667 25.0422H27.4102L24.7203 29.704ZM13.0779 25.0374L5.9022 25.0358L16.6586 6.36589L22.0257 15.7008L18.4322 21.9401C17.0593 24.2103 15.4996 25.0374 13.0779 25.0374Z" fill="#00DC82" /></svg>
|
||||||
|
</a>
|
||||||
|
<div class="mt-8 bg-white overflow-hidden shadow sm:rounded-lg p-6">
|
||||||
|
<h2 class="text-2xl leading-7 font-semibold">
|
||||||
|
Welcome to your Nuxt Application
|
||||||
|
</h2>
|
||||||
|
<p class="mt-3 text-gray-600">
|
||||||
|
We recommend you take a look at the <a href="https://nuxtjs.org" target="_blank" class="text-green-500 hover:underline">Nuxt documentation</a>, whether you are new or have previous experience with the framework.<br>
|
||||||
|
</p>
|
||||||
|
<p class="mt-4 pt-4 text-gray-800 border-t border-dashed">
|
||||||
|
To get started, remove <code class="bg-gray-100 text-sm p-1 rounded border">components/Tutorial.vue</code> and start coding in <code class="bg-gray-100 text-sm p-1 rounded border">pages/index.vue</code>. Have fun!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-center pt-4 space-x-2">
|
||||||
|
<a href="https://github.com/nuxt/nuxt.js" target="_blank"><svg
|
||||||
|
class="w-6 h-6 text-gray-600 hover:text-gray-800"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
preserveAspectRatio="xMidYMid meet"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
><path d="M12 2.247a10 10 0 0 0-3.162 19.487c.5.088.687-.212.687-.475c0-.237-.012-1.025-.012-1.862c-2.513.462-3.163-.613-3.363-1.175a3.636 3.636 0 0 0-1.025-1.413c-.35-.187-.85-.65-.013-.662a2.001 2.001 0 0 1 1.538 1.025a2.137 2.137 0 0 0 2.912.825a2.104 2.104 0 0 1 .638-1.338c-2.225-.25-4.55-1.112-4.55-4.937a3.892 3.892 0 0 1 1.025-2.688a3.594 3.594 0 0 1 .1-2.65s.837-.262 2.75 1.025a9.427 9.427 0 0 1 5 0c1.912-1.3 2.75-1.025 2.75-1.025a3.593 3.593 0 0 1 .1 2.65a3.869 3.869 0 0 1 1.025 2.688c0 3.837-2.338 4.687-4.563 4.937a2.368 2.368 0 0 1 .675 1.85c0 1.338-.012 2.413-.012 2.75c0 .263.187.575.687.475A10.005 10.005 0 0 0 12 2.247z" fill="currentColor" /></svg></a>
|
||||||
|
<a href="https://twitter.com/nuxt_js" target="_blank"><svg
|
||||||
|
class="w-6 h-6 text-gray-600 hover:text-gray-800"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
preserveAspectRatio="xMidYMid meet"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
><path d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z" fill="currentColor" /></svg></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# LAYOUTS
|
|
||||||
|
|
||||||
**This directory is not required, you can delete it if you don't want to use it.**
|
|
||||||
|
|
||||||
This directory contains your Application Layouts.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<nuxt />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
html {
|
|
||||||
font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
||||||
Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
||||||
font-size: 16px;
|
|
||||||
word-spacing: 1px;
|
|
||||||
-ms-text-size-adjust: 100%;
|
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
*,
|
|
||||||
*:before,
|
|
||||||
*:after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button--green {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #3b8070;
|
|
||||||
color: #3b8070;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 10px 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button--green:hover {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #3b8070;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button--grey {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #35495e;
|
|
||||||
color: #35495e;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 10px 30px;
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button--grey:hover {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #35495e;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# MIDDLEWARE
|
|
||||||
|
|
||||||
**This directory is not required, you can delete it if you don't want to use it.**
|
|
||||||
|
|
||||||
This directory contains your application middleware.
|
|
||||||
Middleware let you define custom functions that can be run before rendering either a page or a group of pages.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware).
|
|
||||||
@@ -1,44 +1,30 @@
|
|||||||
export default {
|
export default {
|
||||||
mode: 'spa',
|
// Target: https://go.nuxtjs.dev/config-target
|
||||||
/*
|
target: 'static',
|
||||||
** Headers of the page
|
|
||||||
*/
|
// Global App headers: https://go.nuxtjs.dev/config-head
|
||||||
head: {
|
head: {
|
||||||
title: process.env.npm_package_name || '',
|
title: 'My Nuxt Application',
|
||||||
meta: [
|
meta: [
|
||||||
{ charset: 'utf-8' },
|
{ charset: 'utf-8' },
|
||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
{
|
{
|
||||||
hid: 'description',
|
hid: 'description',
|
||||||
name: 'description',
|
name: 'description',
|
||||||
content: process.env.npm_package_description || '',
|
content: 'This is an awesome description of my Nuxt app',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
},
|
},
|
||||||
/*
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||||
** Customize the progress-bar color
|
|
||||||
*/
|
|
||||||
loading: { color: '#fff' },
|
|
||||||
/*
|
|
||||||
** Global CSS
|
|
||||||
*/
|
|
||||||
css: [],
|
|
||||||
/*
|
|
||||||
** Plugins to load before mounting the App
|
|
||||||
*/
|
|
||||||
plugins: [],
|
plugins: [],
|
||||||
/*
|
|
||||||
** Nuxt.js modules
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||||
*/
|
components: true,
|
||||||
modules: [],
|
|
||||||
/*
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
||||||
** Build configuration
|
buildModules: [],
|
||||||
*/
|
|
||||||
build: {
|
// Modules: https://go.nuxtjs.dev/config-modules
|
||||||
/*
|
modules: []
|
||||||
** You can extend webpack config here
|
|
||||||
*/
|
|
||||||
extend(config, ctx) {},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxtjs",
|
"name": "nuxtjs",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "My astonishing Nuxt.js project",
|
"description": "My astonishing Nuxt App",
|
||||||
"author": "msweeneydev",
|
"author": "msweeneydev",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -10,9 +10,8 @@
|
|||||||
"start": "nuxt start"
|
"start": "nuxt start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "^2.0.0"
|
"core-js": "^3.15.0",
|
||||||
|
"nuxt": "^2.15.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {}
|
||||||
"nodemon": "^2.0.7"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
# PAGES
|
|
||||||
|
|
||||||
This directory contains your Application Views and Routes.
|
|
||||||
The framework reads all the `*.vue` files inside this directory and creates the router of your application.
|
|
||||||
|
|
||||||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing).
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user