Skip to content

Commit

Permalink
Merge pull request #3 from H4ad/feature/path-mapping
Browse files Browse the repository at this point in the history
feat: path mapping
  • Loading branch information
H4ad committed Aug 14, 2022
2 parents 8515ee0 + f0dc23d commit eae3ff0
Show file tree
Hide file tree
Showing 15 changed files with 693 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -6,7 +6,7 @@
],
"parserOptions": {
"project": [
"./tsconfig.eslint.json"
"./tsconfig.json"
]
},
"extends": [
Expand Down
1 change: 1 addition & 0 deletions .mocharc.json
Expand Up @@ -6,6 +6,7 @@
"watch-extensions": [
"ts"
],
"parallel": false,
"recursive": true,
"reporter": "spec",
"timeout": 10000
Expand Down
12 changes: 0 additions & 12 deletions .nycrc

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -82,6 +82,12 @@ Include more files in the `deploy.zip`:
node-modules-packer run ./ -i dist -i package.json -i package-lock.json
```

During including, if you need to remap, you can use `:` between the paths:

```bash
node-modules-packer run ./ -i dist:build -i package.json:dist/package.json
```

Exclude unwanted file extensions from node_modules:

```bash
Expand Down
Empty file modified bin/dev 100644 → 100755
Empty file.
Empty file modified bin/run 100644 → 100755
Empty file.
207 changes: 205 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -11,10 +11,11 @@
"prepack": "yarn build && oclif manifest && oclif readme",
"clean": "rm -rf ./lib/",
"cm": "cz",
"coverage": "codecov",
"coverage": "codecov --disable=gcov",
"lint": "eslint ./src/ ./test/ --fix",
"semantic-release": "semantic-release",
"test": "nyc --extension .ts --reporter=html mocha --forbid-only \"test/**/*.test.ts\"",
"pretest": "npm run build",
"test": "nyc --extension .ts --reporter=html --reporter=json mocha --forbid-only \"test/**/*.test.ts\"",
"typecheck": "tsc --noEmit",
"version": "oclif readme && git add README.md"
},
Expand Down Expand Up @@ -101,6 +102,7 @@
"@types/node": "12.20.43",
"@types/plist": "^3.0.2",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^10.0.13",
"@types/unzipper": "^0.10.5",
"@types/yazl": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^5.12.1",
Expand All @@ -126,6 +128,7 @@
"oclif": "^3",
"prettier": "^2.5.1",
"semantic-release": "^19.0.3",
"sinon": "^14.0.0",
"tape": "^5.5.3",
"ts-node": "^10.4.0",
"typescript": "^4.5.5",
Expand Down

0 comments on commit eae3ff0

Please sign in to comment.