Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a8d08d39
Unverified
Commit
a8d08d39
authored
Mar 24, 2019
by
Tim Neutkens
Committed by
GitHub
Mar 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncc nanoid (#6768)
parent
355078c3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
index.ts
packages/next/build/index.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+9
-1
index.d.ts
packages/next/types/index.d.ts
+7
-0
No files found.
packages/next/build/index.ts
View file @
a8d08d39
import
{
join
}
from
'path'
import
{
join
}
from
'path'
import
nanoid
from
'n
anoid
'
import
nanoid
from
'n
ext/dist/compiled/nanoid/index.js
'
import
loadConfig
from
'next-server/next-config'
import
loadConfig
from
'next-server/next-config'
import
{
PHASE_PRODUCTION_BUILD
}
from
'next-server/constants'
import
{
PHASE_PRODUCTION_BUILD
}
from
'next-server/constants'
import
getBaseWebpackConfig
from
'./webpack-config'
import
getBaseWebpackConfig
from
'./webpack-config'
...
...
packages/next/package.json
View file @
a8d08d39
...
@@ -67,7 +67,6 @@
...
@@ -67,7 +67,6 @@
"loader-utils"
:
"1.1.0"
,
"loader-utils"
:
"1.1.0"
,
"magic-string"
:
"0.25.2"
,
"magic-string"
:
"0.25.2"
,
"mkdirp"
:
"0.5.1"
,
"mkdirp"
:
"0.5.1"
,
"nanoid"
:
"1.2.1"
,
"next-server"
:
"8.0.4-canary.19"
,
"next-server"
:
"8.0.4-canary.19"
,
"prop-types"
:
"15.6.2"
,
"prop-types"
:
"15.6.2"
,
"prop-types-exact"
:
"1.2.0"
,
"prop-types-exact"
:
"1.2.0"
,
...
@@ -117,6 +116,7 @@
...
@@ -117,6 +116,7 @@
"@types/webpack-sources"
:
"0.1.5"
,
"@types/webpack-sources"
:
"0.1.5"
,
"@zeit/ncc"
:
"0.15.2"
,
"@zeit/ncc"
:
"0.15.2"
,
"taskr"
:
"1.1.0"
,
"taskr"
:
"1.1.0"
,
"nanoid"
:
"1.2.1"
,
"text-table"
:
"0.2.0"
,
"text-table"
:
"0.2.0"
,
"typescript"
:
"3.1.6"
,
"typescript"
:
"3.1.6"
,
"unistore"
:
"3.2.1"
"unistore"
:
"3.2.1"
...
...
packages/next/taskfile.js
View file @
a8d08d39
...
@@ -20,6 +20,14 @@ const babelOpts = {
...
@@ -20,6 +20,14 @@ const babelOpts = {
]
]
}
}
// eslint-disable-next-line camelcase
export
async
function
ncc_nanoid
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'nanoid'
)))
.
ncc
({
packageName
:
'nanoid'
})
.
target
(
'dist/compiled/nanoid'
)
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
export
async
function
ncc_unistore
(
task
,
opts
)
{
export
async
function
ncc_unistore
(
task
,
opts
)
{
await
task
await
task
...
@@ -37,7 +45,7 @@ export async function ncc_text_table (task, opts) {
...
@@ -37,7 +45,7 @@ export async function ncc_text_table (task, opts) {
}
}
export
async
function
precompile
(
task
)
{
export
async
function
precompile
(
task
)
{
await
task
.
parallel
([
'ncc_unistore'
,
'ncc_text_table'
])
await
task
.
parallel
([
'ncc_unistore'
,
'ncc_
nanoid'
,
'ncc_
text_table'
])
}
}
export
async
function
compile
(
task
)
{
export
async
function
compile
(
task
)
{
...
...
packages/next/types/index.d.ts
View file @
a8d08d39
...
@@ -3,6 +3,13 @@ declare module 'next-server/next-config';
...
@@ -3,6 +3,13 @@ declare module 'next-server/next-config';
declare
module
'next-server/constants'
;
declare
module
'next-server/constants'
;
declare
module
'webpack/lib/GraphHelpers'
;
declare
module
'webpack/lib/GraphHelpers'
;
declare
module
'next/dist/compiled/nanoid/index.js'
{
function
nanoid
(
size
?:
number
):
string
;
export
=
nanoid
;
}
declare
module
'arg'
{
declare
module
'arg'
{
function
arg
<
T
extends
arg
.
Spec
>
(
spec
:
T
,
options
?:
{
argv
?:
string
[],
permissive
?:
boolean
}):
arg
.
Result
<
T
>
;
function
arg
<
T
extends
arg
.
Spec
>
(
spec
:
T
,
options
?:
{
argv
?:
string
[],
permissive
?:
boolean
}):
arg
.
Result
<
T
>
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment