[all] Remove now prefix in packages (#5928)

* remove prefix from codeowners

* remove references from ignore files

* Remove prefix from package json and tests

* Add run js without prefixes

* Rename package folders

* Delete auto generated test files

* Remove now-node in integration test

* Put back deleted vercel json files

* Remove eol

* Add styfle suggestion to comment in utils/run.js

Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
ernestd
2021-03-06 01:55:30 +01:00
committed by GitHub
parent 85b253cdd0
commit cfae7ec3c2
1890 changed files with 82 additions and 97 deletions

View File

@@ -5,36 +5,36 @@ examples
# gatsby-plugin-now # gatsby-plugin-now
packages/gatsby-plugin-now/test/fixtures packages/gatsby-plugin-now/test/fixtures
# now-build-utils # build-utils
packages/now-build-utils/test/fixtures packages/build-utils/test/fixtures
# now-cli # cli
packages/now-cli/@types packages/cli/@types
packages/now-cli/download packages/cli/download
packages/now-cli/dist packages/cli/dist
packages/now-cli/test/fixtures packages/cli/test/fixtures
packages/now-cli/test/dev/fixtures packages/cli/test/dev/fixtures
packages/now-cli/bin packages/cli/bin
packages/now-cli/link packages/cli/link
packages/now-cli/src/util/dev/templates/*.ts packages/cli/src/util/dev/templates/*.ts
# now-client # client
packages/now-client/tests/fixtures packages/client/tests/fixtures
packages/now-client/lib packages/client/lib
# now-next # next
packages/now-next/test/fixtures packages/next/test/fixtures
# now-node # node
packages/now-node/src/bridge.ts packages/node/src/bridge.ts
packages/now-node/test/fixtures packages/node/test/fixtures
# now-node-bridge # node-bridge
packages/now-node-bridge/bridge.* packages/node-bridge/bridge.*
# now-static-build # static-build
packages/now-static-build/test/fixtures packages/static-build/test/fixtures
packages/now-static-build/test/build-fixtures packages/static-build/test/build-fixtures
# redwood # redwood
packages/redwood/test/fixtures packages/redwood/test/fixtures

30
.github/CODEOWNERS vendored
View File

@@ -4,21 +4,21 @@
* @TooTallNate * @TooTallNate
/.github/workflows @AndyBitz @styfle /.github/workflows @AndyBitz @styfle
/packages/frameworks @AndyBitz /packages/frameworks @AndyBitz
/packages/now-cli/src/commands/dev @TooTallNate @styfle @AndyBitz /packages/cli/src/commands/dev @TooTallNate @styfle @AndyBitz
/packages/now-cli/src/util/dev @TooTallNate @styfle @AndyBitz /packages/cli/src/util/dev @TooTallNate @styfle @AndyBitz
/packages/now-cli/src/commands/domains @javivelasco @mglagola @anatrajkovska /packages/cli/src/commands/domains @javivelasco @mglagola @anatrajkovska
/packages/now-cli/src/commands/certs @javivelasco @mglagola @anatrajkovska /packages/cli/src/commands/certs @javivelasco @mglagola @anatrajkovska
/packages/now-cli/src/commands/env @styfle @lucleray /packages/cli/src/commands/env @styfle @lucleray
/packages/now-client @rdev @styfle @TooTallNate /packages/client @rdev @styfle @TooTallNate
/packages/now-build-utils @styfle @AndyBitz @TooTallNate /packages/build-utils @styfle @AndyBitz @TooTallNate
/packages/now-node @styfle @TooTallNate @lucleray /packages/node @styfle @TooTallNate @lucleray
/packages/now-node-bridge @styfle @TooTallNate @lucleray /packages/node-bridge @styfle @TooTallNate @lucleray
/packages/now-next @Timer @ijjk /packages/next @Timer @ijjk
/packages/now-go @styfle @TooTallNate /packages/go @styfle @TooTallNate
/packages/now-python @styfle @TooTallNate /packages/python @styfle @TooTallNate
/packages/now-ruby @styfle @coetry @TooTallNate /packages/ruby @styfle @coetry @TooTallNate
/packages/now-static-build @styfle @AndyBitz /packages/static-build @styfle @AndyBitz
/packages/now-routing-utils @styfle @dav-is @ijjk /packages/routing-utils @styfle @dav-is @ijjk
/examples @mcsdevv @timothyis /examples @mcsdevv @timothyis
/examples/create-react-app @Timer /examples/create-react-app @Timer
/examples/nextjs @timneutkens @Timer /examples/nextjs @timneutkens @Timer

View File

@@ -88,7 +88,7 @@ When you run this script, you'll see all imported files. If anything file is mis
Sometimes you want to test changes to a Builder against an existing project, maybe with `vercel dev` or an actual deployment. You can avoid publishing every Builder change to npm by uploading the Builder as a tarball. Sometimes you want to test changes to a Builder against an existing project, maybe with `vercel dev` or an actual deployment. You can avoid publishing every Builder change to npm by uploading the Builder as a tarball.
1. Change directory to the desired Builder `cd ./packages/now-node` 1. Change directory to the desired Builder `cd ./packages/node`
2. Run `yarn build` to compile typescript and other build steps 2. Run `yarn build` to compile typescript and other build steps
3. Run `npm pack` to create a tarball file 3. Run `npm pack` to create a tarball file
4. Run `vercel *.tgz` to upload the tarball file and get a URL 4. Run `vercel *.tgz` to upload the tarball file and get a URL

View File

@@ -34,7 +34,7 @@ jobs:
- run: git diff origin/master...HEAD --name-only - run: git diff origin/master...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/now-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/
- run: yarn install --network-timeout 1000000 - run: yarn install --network-timeout 1000000
- run: yarn run build - run: yarn run build
- run: yarn test-integration-dev --clean false - run: yarn test-integration-dev --clean false

22
.gitignore vendored
View File

@@ -9,17 +9,17 @@ coverage.lcov
*.swp *.swp
*.bak *.bak
*.tgz *.tgz
packages/now-cli/src/util/dev/templates/*.ts packages/cli/src/util/dev/templates/*.ts
packages/now-cli/src/util/constants.ts packages/cli/src/util/constants.ts
packages/now-cli/test/**/yarn.lock packages/cli/test/**/yarn.lock
!packages/now-cli/test/dev/**/yarn.lock !packages/cli/test/dev/**/yarn.lock
packages/now-cli/test/**/node_modules packages/cli/test/**/node_modules
packages/now-cli/test/dev/fixtures/08-hugo/hugo packages/cli/test/dev/fixtures/08-hugo/hugo
packages/now-cli/test/dev/fixtures/**/dist packages/cli/test/dev/fixtures/**/dist
packages/now-cli/test/dev/fixtures/**/public packages/cli/test/dev/fixtures/**/public
packages/now-cli/test/dev/fixtures/**/.now packages/cli/test/dev/fixtures/**/.now
packages/now-cli/test/dev/fixtures/**/.vercel packages/cli/test/dev/fixtures/**/.vercel
packages/now-cli/test/fixtures/integration packages/cli/test/fixtures/integration
test/lib/deployment/failed-page.txt test/lib/deployment/failed-page.txt
.DS_Store .DS_Store
.next .next

View File

@@ -24,7 +24,7 @@ For details on how to use Vercel, check out our [documentation](https://vercel.c
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Install dependencies with `yarn install` 2. Install dependencies with `yarn install`
3. Compile the code: `yarn build` 3. Compile the code: `yarn build`
4. Link the package to the global module directory: `cd ./packages/now-cli && yarn link` 4. Link the package to the global module directory: `cd ./packages/cli && yarn link`
5. You can start using `vercel` anywhere inside the command line 5. You can start using `vercel` anywhere inside the command line
As always, you should use `yarn test-unit` to run the tests and see if your changes have broken anything. As always, you should use `yarn test-unit` to run the tests and see if your changes have broken anything.

View File

@@ -114,7 +114,7 @@
}, },
{ {
"files": [ "files": [
"packages/now-cli/**/*" "packages/cli/**/*"
], ],
"rules": { "rules": {
"lines-between-class-members": 0, "lines-between-class-members": 0,
@@ -134,7 +134,7 @@
}, },
{ {
"files": [ "files": [
"packages/now-client/**/*" "packages/client/**/*"
], ],
"rules": { "rules": {
"prefer-const": 0, "prefer-const": 0,

Some files were not shown because too many files have changed in this diff Show More