FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nativescript-angular/build-doc-snippets.sh at master · hydra1983/nativescript-angular · GitHub
hydra1983
/
nativescript-angular
Public
forked from
NativeScript/nativescript-angular
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-angular
/
build-doc-snippets.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
21 lines (16 loc) · 525 Bytes
Breadcrumbs
nativescript-angular
/
build-doc-snippets.sh
Copy path
File metadata and controls
executable file
·
21 lines (16 loc) · 525 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
#!
/usr/bin/env bash
set
-e
ENV=
"
${ENV
:-
dev}
"
DIST_DIR=
"
bin/dist
"
TARGET_DIR=
"
$DIST_DIR
/snippets
"
PACKAGE_VERSION=
"
${PACKAGE_VERSION
:-
0.0.0}
"
extractSnippets
() {
BIN=
"
./node_modules/markdown-snippet-injector/extract.js
"
node
"
$BIN
"
--root=
"
.
"
--target=
"
$TARGET_DIR
"
\
--sourceext=
"
.js|.ts|.xml|.html|.css
"
}
npm install markdown-snippet-injector
rm -rf
"
$TARGET_DIR
"
mkdir -p
"
$TARGET_DIR
"
extractSnippets
(cd
"
$DIST_DIR
"
&&
tar zcvf
"
nativescript-angular-snippets-
$ENV
-
$PACKAGE_VERSION
.tar.gz
"
snippets)
Back
|
FazBrowse Home
|
New Git URL