Skip to content

Commit 8015a5e

Browse files
committed
WIP
1 parent 873cda1 commit 8015a5e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

lib/VirtualTar.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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;

shell.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

0 commit comments

Comments
 (0)