Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoCo_Code_Op2
next.js
提交
af40b5b2
N
next.js
项目概览
CoCo_Code_Op2
/
next.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
next.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
af40b5b2
编写于
3月 28, 2020
作者:
G
Guy Bedford
提交者:
Joe Haddad
3月 30, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chalk, ci-info
上级
90a0cef8
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
45 addition
and
21 deletion
+45
-21
packages/next/build/entries.ts
packages/next/build/entries.ts
+1
-1
packages/next/build/index.ts
packages/next/build/index.ts
+2
-2
packages/next/build/output/index.ts
packages/next/build/output/index.ts
+1
-1
packages/next/build/output/log.ts
packages/next/build/output/log.ts
+1
-1
packages/next/build/utils.ts
packages/next/build/utils.ts
+1
-1
packages/next/build/webpack-config.ts
packages/next/build/webpack-config.ts
+1
-1
packages/next/build/webpack/config/blocks/css/messages.ts
packages/next/build/webpack/config/blocks/css/messages.ts
+1
-1
packages/next/build/webpack/config/blocks/css/plugins.ts
packages/next/build/webpack/config/blocks/css/plugins.ts
+1
-1
packages/next/build/webpack/loaders/error-loader.ts
packages/next/build/webpack/loaders/error-loader.ts
+1
-1
packages/next/build/webpack/plugins/webpack-conformance-plugin/constants.ts
...d/webpack/plugins/webpack-conformance-plugin/constants.ts
+1
-1
packages/next/cli/next-telemetry.ts
packages/next/cli/next-telemetry.ts
+1
-1
packages/next/export/index.ts
packages/next/export/index.ts
+1
-1
packages/next/lib/load-env-config.ts
packages/next/lib/load-env-config.ts
+1
-1
packages/next/lib/verifyTypeScriptSetup.ts
packages/next/lib/verifyTypeScriptSetup.ts
+1
-1
packages/next/next-server/server/config.ts
packages/next/next-server/server/config.ts
+1
-1
packages/next/package.json
packages/next/package.json
+2
-2
packages/next/server/lib/find-page-file.ts
packages/next/server/lib/find-page-file.ts
+1
-1
packages/next/taskfile.js
packages/next/taskfile.js
+16
-0
packages/next/telemetry/ci-info.ts
packages/next/telemetry/ci-info.ts
+1
-1
packages/next/telemetry/storage.ts
packages/next/telemetry/storage.ts
+1
-1
packages/next/types/misc.d.ts
packages/next/types/misc.d.ts
+8
-0
未找到文件。
packages/next/build/entries.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
{
join
}
from
'
path
'
import
{
stringify
}
from
'
querystring
'
import
{
API_ROUTE
,
DOT_NEXT_ALIAS
,
PAGES_DIR_ALIAS
}
from
'
../lib/constants
'
...
...
packages/next/build/index.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
ciEnvironment
from
'
ci-info
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
ciEnvironment
from
'
next/dist/compiled/
ci-info
'
import
crypto
from
'
crypto
'
import
devalue
from
'
devalue
'
import
escapeStringRegexp
from
'
escape-string-regexp
'
...
...
packages/next/build/output/index.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
textTable
from
'
next/dist/compiled/text-table
'
import
createStore
from
'
next/dist/compiled/unistore
'
import
stripAnsi
from
'
strip-ansi
'
...
...
packages/next/build/output/log.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
const
prefixes
=
{
wait
:
chalk
`[ {cyan wait} ] `
,
...
...
packages/next/build/utils.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
gzipSize
from
'
gzip-size
'
import
textTable
from
'
next/dist/compiled/text-table
'
import
path
from
'
path
'
...
...
packages/next/build/webpack-config.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
crypto
from
'
crypto
'
import
ForkTsCheckerWebpackPlugin
from
'
fork-ts-checker-webpack-plugin
'
import
path
from
'
path
'
...
...
packages/next/build/webpack/config/blocks/css/messages.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
export
function
getGlobalImportError
(
file
:
string
|
null
)
{
return
`Global CSS
${
chalk
.
bold
(
...
...
packages/next/build/webpack/config/blocks/css/plugins.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
{
findConfig
}
from
'
../../../../../lib/find-config
'
import
{
resolveRequest
}
from
'
../../../../../lib/resolve-request
'
import
browserslist
from
'
next/dist/compiled/browserslist
'
...
...
packages/next/build/webpack/loaders/error-loader.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
loaderUtils
from
'
loader-utils
'
import
path
from
'
path
'
import
{
loader
}
from
'
webpack
'
...
...
packages/next/build/webpack/plugins/webpack-conformance-plugin/constants.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
const
{
red
,
yellow
}
=
chalk
...
...
packages/next/cli/next-telemetry.ts
浏览文件 @
af40b5b2
#!/usr/bin/env node
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
arg
from
'
next/dist/compiled/arg/index.js
'
import
{
cliCommand
}
from
'
../bin/next
'
...
...
packages/next/export/index.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
findUp
from
'
find-up
'
import
{
copyFile
as
copyFileOrig
,
...
...
packages/next/lib/load-env-config.ts
浏览文件 @
af40b5b2
import
fs
from
'
fs
'
import
path
from
'
path
'
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
dotenvExpand
from
'
next/dist/compiled/dotenv-expand
'
import
dotenv
,
{
DotenvConfigOutput
}
from
'
next/dist/compiled/dotenv
'
import
findUp
from
'
find-up
'
...
...
packages/next/lib/verifyTypeScriptSetup.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
fs
from
'
fs
'
import
os
from
'
os
'
import
path
from
'
path
'
...
...
packages/next/next-server/server/config.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
findUp
from
'
find-up
'
import
os
from
'
os
'
import
{
basename
,
extname
}
from
'
path
'
...
...
packages/next/package.json
浏览文件 @
af40b5b2
...
...
@@ -62,8 +62,6 @@
"@next/polyfill-nomodule"
:
"9.3.4-canary.0"
,
"autodll-webpack-plugin"
:
"0.4.2"
,
"cache-loader"
:
"4.1.0"
,
"chalk"
:
"2.4.2"
,
"ci-info"
:
"2.0.0"
,
"compression"
:
"1.7.4"
,
"conf"
:
"5.0.0"
,
"content-type"
:
"1.0.4"
,
...
...
@@ -191,6 +189,8 @@
"babel-plugin-transform-define"
:
"2.0.0"
,
"babel-plugin-transform-react-remove-prop-types"
:
"0.4.24"
,
"browserslist"
:
"4.8.3"
,
"chalk"
:
"2.4.2"
,
"ci-info"
:
"2.0.0"
,
"dotenv"
:
"8.2.0"
,
"dotenv-expand"
:
"5.1.0"
,
"nanoid"
:
"2.0.3"
,
...
...
packages/next/server/lib/find-page-file.ts
浏览文件 @
af40b5b2
import
{
join
}
from
'
path
'
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
{
isWriteable
}
from
'
../../build/is-writeable
'
import
{
warn
}
from
'
../../build/output/log
'
...
...
packages/next/taskfile.js
浏览文件 @
af40b5b2
...
...
@@ -256,6 +256,20 @@ export async function ncc_browserslist(task, opts) {
.
target
(
'
dist/compiled/browserslist
'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_chalk
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'
chalk
'
)))
.
ncc
({
packageName
:
'
chalk
'
})
.
target
(
'
dist/compiled/chalk
'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_ci_info
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'
ci-info
'
)))
.
ncc
({
packageName
:
'
ci-info
'
})
.
target
(
'
dist/compiled/ci-info
'
)
}
// eslint-disable-next-line camelcase
export
async
function
ncc_dotenv
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'
dotenv
'
)))
...
...
@@ -325,6 +339,8 @@ export async function precompile(task) {
'
ncc_babel_plugin_transform_define
'
,
'
ncc_babel_plugin_transform_react_remove_prop_types
'
,
'
ncc_browserslist
'
,
'
ncc_chalk
'
,
'
ncc_ci_info
'
,
'
ncc_dotenv
'
,
'
ncc_dotenv_expand
'
,
'
ncc_nanoid
'
,
...
...
packages/next/telemetry/ci-info.ts
浏览文件 @
af40b5b2
import
ciEnvironment
from
'
ci-info
'
import
ciEnvironment
from
'
next/dist/compiled/
ci-info
'
const
{
isCI
:
_isCI
,
name
:
_name
}
=
ciEnvironment
...
...
packages/next/telemetry/storage.ts
浏览文件 @
af40b5b2
import
chalk
from
'
chalk
'
import
chalk
from
'
next/dist/compiled/
chalk
'
import
Conf
from
'
conf
'
import
{
BinaryLike
,
createHash
,
randomBytes
}
from
'
crypto
'
import
isDockerFunction
from
'
is-docker
'
...
...
packages/next/types/misc.d.ts
浏览文件 @
af40b5b2
...
...
@@ -55,6 +55,14 @@ declare module 'next/dist/compiled/babel--types' {
export
=
m
}
declare
module
'
next/dist/compiled/browserslist
'
declare
module
'
next/dist/compiled/chalk
'
{
import
m
from
'
chalk
'
export
=
m
}
declare
module
'
next/dist/compiled/ci-info
'
{
import
m
from
'
ci-info
'
export
=
m
}
declare
module
'
next/dist/compiled/dotenv
'
{
import
m
from
'
dotenv
'
export
=
m
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录