diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb39b69 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +package-lock.json +.idea + +config.yml +bin +lib +data \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..d214cdb --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "private": true, + "scripts": { + "build": "tsc", + "build:watch": "tsc -w", + "dev": "tsnd --no-notify --respawn ./src/autorestic.ts", + "bin": "npm run build && pkg lib/autorestic.js --out-path bin" + }, + "devDependencies": { + "@types/decompress": "^4.2.3", + "@types/js-yaml": "^3.12.1", + "@types/minimist": "^1.2.0", + "pkg": "^4.4.0", + "ts-node-dev": "^1.0.0-pre.40", + "typescript": "^3.5.1" + }, + "dependencies": { + "axios": "^0.19.0", + "clitastic": "0.0.1", + "colors": "^1.3.3", + "js-yaml": "^3.13.1", + "minimist": "^1.2.0" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..9ad2430 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "commonjs", + "outDir": "./lib", + "strict": true, + "esModuleInterop": true + } +}