Skip to content

Commit 59a4fba

Browse files
committed
chore: repository changes following renaming
1 parent b017d44 commit 59a4fba

File tree

28 files changed

+1160
-1539
lines changed

28 files changed

+1160
-1539
lines changed

.changeset/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
33
"access": "public",
44
"baseBranch": "main",
5-
"changelog": ["@changesets/changelog-github", { "repo": "adbayb/esusage" }],
5+
"changelog": [
6+
"@changesets/changelog-github",
7+
{ "repo": "adbayb/sdk-usage" }
8+
],
69
"commit": false,
710
"ignore": ["@examples/*"],
811
"updateInternalDependencies": "patch",

.changeset/welcome.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
"esusage": minor
3-
"@esusage/core": minor
4-
"@esusage/plugin-syntax-jsx": minor
5-
"@esusage/plugin-syntax-typescript": minor
2+
"@sdk-usage/cli": minor
3+
"@sdk-usage/core": minor
4+
"@sdk-usage/plugin-syntax-jsx": minor
5+
"@sdk-usage/plugin-syntax-typescript": minor
66
---
77

88
v0.1.0 release 🚀

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
2. Some valuable tests have been added
77
3. For non-internal change, a changelog entry is added
88
9-
Learn more about contributing [here](https://github.com/adbayb/esusage/blob/main/CONTRIBUTING.md)
9+
Learn more about contributing [here](https://github.com/adbayb/sdk-usage/blob/main/CONTRIBUTING.md)
1010
-->
1111

1212
## Description
1313

1414
Please include a concise summary of the change with the relevant context and main highlights:
1515

16-
- [ ] What I've done 1
17-
- [ ] What I've done 2...
16+
- [ ] What I've done 1
17+
- [ ] What I've done 2...
1818

1919
## Screenshots
2020

@@ -24,6 +24,6 @@ Please include a concise summary of the change with the relevant context and mai
2424

2525
## Resources
2626

27-
- Issue (GitHub, ...)
28-
- Specification (ADRs, RFCs, ...)
29-
- ...
27+
- Issue (GitHub, ...)
28+
- Specification (ADRs, RFCs, ...)
29+
- ...

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.11.0
1+
v22.12.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
Thanks for showing interest to contribute to `esusage` 🥳.
3+
Thanks for showing interest to contribute to `sdk-usage` 🥳.
44
We are open to contributions, we look forward to improving it with your help!
55

66
Here you will find guidelines that will help you to know how to contribute to this repository.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<br>
22
<div align="center">
3-
<h1><img width="256" alt="ESUsage" title="ESUsage" src="https://github.com/adbayb/esusage/assets/10498826/a4f5aa1d-b0ed-4f38-a2fc-1b4f55e4023c"></h1>
4-
<strong>A code analyzer to collect ECMAScript modules usage with JSX and TypeScript support</strong>
3+
<h1>sdk-usage</h1>
4+
<strong>A code analyzer to collect any SDK-like usage (Software Development Kit including libraries and APIs) with JSX and TypeScript support.</strong>
55
</div>
66
<br>
77
<br>
@@ -14,7 +14,7 @@ TODO
1414

1515
## 🚀 Usage
1616

17-
This section introduces the `esusage` essentials by walking through its main commands:
17+
This section introduces the `sdk-usage` essentials by walking through its main commands:
1818

1919
0️⃣ ...
2020
1️⃣ ...
@@ -31,12 +31,12 @@ TODO
3131

3232
## ✍️ Contribution
3333

34-
We're open to new contributions, you can find more details [here](https://github.com/adbayb/esusage/blob/main/CONTRIBUTING.md).
34+
We're open to new contributions, you can find more details [here](https://github.com/adbayb/sdk-usage/blob/main/CONTRIBUTING.md).
3535

3636
<br>
3737

3838
## 📖 License
3939

40-
[MIT](https://github.com/adbayb/esusage/blob/main/LICENSE "License MIT")
40+
[MIT](https://github.com/adbayb/sdk-usage/blob/main/LICENSE "License MIT")
4141

4242
<br>

applications/cli/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# sdk-usage
2+
3+
TODO
File renamed without changes.
Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
2-
"name": "esusage",
3-
"description": "A code analyzer to collect ECMAScript modules usage with JSX and TypeScript support",
2+
"name": "@sdk-usage/cli",
43
"version": "0.0.0",
5-
"publishConfig": {
6-
"access": "public"
7-
},
8-
"files": [
9-
"bin",
10-
"dist"
11-
],
12-
"bin": {
13-
"esusage": "./bin/index.js"
4+
"description": "A code analyzer to collect ECMAScript modules usage with JSX and TypeScript support",
5+
"homepage": "https://github.com/adbayb/sdk-usage/tree/main/sdk-usage#readme",
6+
"bugs": "https://github.com/adbayb/sdk-usage/issues",
7+
"repository": {
8+
"type": "git",
9+
"url": "git@github.com:adbayb/sdk-usage.git",
10+
"directory": "applications/cli"
1411
},
12+
"license": "MIT",
13+
"author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
1514
"sideEffects": false,
1615
"type": "module",
1716
"exports": {
@@ -23,25 +22,27 @@
2322
"default": "./dist/index.mjs"
2423
}
2524
},
26-
"license": "MIT",
27-
"author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
28-
"bugs": "https://github.com/adbayb/esusage/issues",
29-
"homepage": "https://github.com/adbayb/esusage/tree/main/esusage#readme",
30-
"repository": {
31-
"type": "git",
32-
"url": "git@github.com:adbayb/esusage.git",
33-
"directory": "applications/cli"
25+
"bin": {
26+
"sdk-usage": "./bin/index.js"
3427
},
28+
"files": [
29+
"bin",
30+
"dist"
31+
],
3532
"scripts": {
3633
"build": "quickbundle build",
3734
"watch": "quickbundle watch"
3835
},
36+
"dependencies": {
37+
"@sdk-usage/core": "workspace:^",
38+
"@sdk-usage/plugin-syntax-jsx": "workspace:^",
39+
"@sdk-usage/plugin-syntax-typescript": "workspace:^"
40+
},
3941
"devDependencies": {
4042
"quickbundle": "2.8.0"
4143
},
42-
"dependencies": {
43-
"@esusage/core": "workspace:^",
44-
"@esusage/plugin-syntax-jsx": "workspace:^",
45-
"@esusage/plugin-syntax-typescript": "workspace:^"
44+
"publishConfig": {
45+
"access": "public",
46+
"registry": "https://registry.npmjs.org"
4647
}
4748
}

applications/cli/src/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import process from "node:process";
2+
3+
import typescriptSyntaxPlugin from "@sdk-usage/plugin-syntax-typescript";
4+
import jsxSyntaxPlugin from "@sdk-usage/plugin-syntax-jsx";
5+
import { createContext } from "@sdk-usage/core";
6+
7+
const context = createContext(process.cwd(), {
8+
plugins: { syntax: [jsxSyntaxPlugin, typescriptSyntaxPlugin] },
9+
});
10+
11+
const main = async () => {
12+
const items = await context.getItems();
13+
14+
console.log(JSON.stringify(items, null, 2), items.length);
15+
};
16+
17+
void main();

0 commit comments

Comments
 (0)