-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
54 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,8 @@ | |
// "[email protected]", | ||
"[email protected]", | ||
// "[email protected]", | ||
"./build/tests/sampleLintFile.js" | ||
// "./build/tests/sampleLintFile.js" | ||
"./tests/data/lint_data/exportTest.js" | ||
], | ||
//"preLaunchTask": "tsc: build - tsconfig.json", | ||
"outFiles": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Develop | ||
|
||
## Setting up the dev environment | ||
``` | ||
git clone https://github.com/tmkn/packageanalyzer.git | ||
yarn install | ||
yarn build | ||
``` | ||
See [Core Concepts](https://packageanalyzer-docs.vercel.app/docs/core_concepts/provider) for a quick tour around the code | ||
|
||
### Watch mode | ||
`yarn dev` | ||
### Build | ||
`yarn build` | ||
## Tests | ||
### Run tests | ||
`yarn test` | ||
### Code Coverage | ||
`yarn test:coverage` | ||
### Watch tests | ||
`yarn test:watch` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,57 +15,16 @@ Stats are fun! | |
|
||
Please see the [Documentation](http://packageanalyzer-docs.vercel.app/) for a more in depth introduction. | ||
|
||
## Prints various statistics: | ||
* Number of transitive dependencies | ||
* Number of distinct dependencies | ||
* Most referred package | ||
* Package with most direct dependencies | ||
* Package with most versions | ||
* Licenses | ||
|
||
## Install | ||
``` | ||
yarn add @tmkn/packageanalyzer | ||
``` | ||
|
||
## Usage | ||
The package analyzer is both a CLI and a framework. | ||
|
||
As such it provides the following CLI options (non exhaustive!): | ||
### Analyze latest version of a package | ||
`pkga analyze --package typescript` | ||
### Analyze specific version of a package | ||
`pkga analyze --package [email protected]` | ||
### Analyze local folder | ||
`pkga analyze --folder path/to/folder/with/package.json` | ||
### Print dependency tree | ||
`pkga tree --package typescript` | ||
### Print licenses | ||
`pkga license --package typescript` | ||
### Run custom report | ||
`pkga report --config path/to/custom/report.js` | ||
|
||
Please see [Using custom reports](https://packageanalyzer-docs.vercel.app/docs/guides/custom_reports) on how to use the package analyzer programatically. | ||
|
||
## Setting up the dev environment | ||
``` | ||
git clone https://github.com/tmkn/packageanalyzer.git | ||
yarn install | ||
yarn build | ||
``` | ||
See [Core Concepts](https://packageanalyzer-docs.vercel.app/docs/core_concepts/provider) for a quick tour around the code | ||
Please see the [CLI documentation](https://packageanalyzer-docs.vercel.app/docs/cli/) on usage. | ||
|
||
### Watch mode | ||
`yarn dev` | ||
### Build | ||
`yarn build` | ||
## Tests | ||
### Run tests | ||
`yarn test` | ||
### Code Coverage | ||
`yarn test:coverage` | ||
### Watch tests | ||
`yarn test:watch` | ||
## Develop | ||
Please see [here](./DEVELOP.md) how to setup the dev environment | ||
|
||
## Roadmap | ||
* Stabilize API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { ValidateKey } = require("@tmkn/packageanalyzer"); | ||
|
||
const validateKey = new ValidateKey(); | ||
|
||
module.exports = { | ||
rules: [] | ||
}; |