FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NativeScript/tools/scripts/pack-webpack5.mjs at master · TypescriptID/NativeScript · GitHub
TypescriptID
/
NativeScript
Public
forked from
NativeScript/NativeScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
NativeScript
/
tools
/
scripts
/
pack-webpack5.mjs
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
25 lines (17 loc) · 659 Bytes
Breadcrumbs
NativeScript
/
tools
/
scripts
/
pack-webpack5.mjs
Copy path
File metadata and controls
executable file
·
25 lines (17 loc) · 659 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env zx
import
'zx/globals'
;
import
path
from
'path'
;
const
webpack5Path
=
path
.
resolve
(
__dirname
,
'../../packages/webpack5'
)
;
const
distPath
=
path
.
resolve
(
__dirname
,
'../../dist/packages'
)
;
const
packageJSON
=
await
fs
.
readJSON
(
`
${
webpack5Path
}
/package.json`
)
;
const
tgzName
=
`nativescript-webpack-
${
packageJSON
.
version
}
.tgz`
;
cd
(
webpack5Path
)
;
await
$
`npm install`
;
await
$
`npm pack`
;
const
from
=
path
.
join
(
webpack5Path
,
tgzName
)
;
const
to
=
path
.
join
(
distPath
,
'nativescript-webpack.tgz'
)
;
await
fs
.
move
(
from
,
to
,
{
overwrite
:
true
,
}
)
;
console
.
log
(
chalk
.
green
(
`@nativescript/webpack has been built and packed.\n`
)
)
;
console
.
log
(
to
)
;
Back
|
FazBrowse Home
|
New Git URL