File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ import pathNode from 'path' ;
2+ import tar from 'tar-stream' ;
3+
4+ const pathJoin = ( pathNode . posix ) ? pathNode . posix . join : pathNode . join ;
5+
6+ // we cannot use tar-fs
7+ // because it works against streams
8+ // but usually we want it to utilise an fs
9+ // passed in as function
10+ // so we use a constructor
11+ // to pass in the correct fs
12+
13+ class VirtualTar {
14+
15+ constructor ( fs ) {
16+ this . _fs = fs ;
17+ }
18+
19+ pack ( path , options ) {
20+
21+ }
22+
23+ extract ( path , options ) {
24+
25+ }
26+
27+ }
28+
29+ export default VirtualTar ;
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env nix-shell
2+ {
3+ pkgs ? import ( fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/00e56fbbee06088bf3bf82169032f5f5778588b7.tar.gz ) { }
4+ } :
5+ with pkgs ;
6+ stdenv . mkDerivation {
7+ name = "js-virtualtar" ;
8+ buildInputs = [ python2 nodejs-8_x flow ] ;
9+ }
You can’t perform that action at this time.
0 commit comments