create-attio 0.0.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/index.js +2 -0
- package/package.json +11 -8
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Attio App Bootstrapping CLI
|
|
2
|
+
|
|
3
|
+
- [How to create an app](https://docs.attio.com/sdk/guides/creating-an-app)
|
|
4
|
+
|
|
5
|
+
This package is in alpha
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm create attio <app-slug>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
or
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
yarn create attio <app-slug>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
or
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm create attio <app-slug>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
or
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
bun create attio <app-slug>
|
|
29
|
+
```
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{spawn as o}from"child_process";import{existsSync as t,readFileSync as r}from"fs";import{dirname as i,join as e}from"path";import{fileURLToPath as s}from"url";let n=process.argv.slice(2),p=i(s(import.meta.resolve("attio/lint"))),a=JSON.parse(r(e(p,"package.json"),"utf-8")),m=e(p,"string"==typeof a.bin?a.bin:a.bin.attio);if(!t(m))throw Error(`Attio CLI binary not found at ${m}`);o(process.execPath,[m,"init",...n],{stdio:"inherit"}).on("close",o=>{process.exit(o??0)});
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-attio",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
"description": "Create a new Attio app",
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"attio": "1.0.1"
|
|
8
12
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
}
|
|
13
|
+
"bin": "dist/index.js"
|
|
14
|
+
}
|