bsdevmotion 1.0.0
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/cli.js +25 -0
- package/package.json +19 -0
- package/templates/lib/styles.css +0 -0
package/cli.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from "fs-extra";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import { fileURLToPath } from "url";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
|
|
10
|
+
// 👉 Esta es la ruta REAL a templates/lib
|
|
11
|
+
const templateDir = path.join(__dirname, "templates", "lib");
|
|
12
|
+
|
|
13
|
+
// 👉 Esta es la ruta del proyecto donde ejecutás npx
|
|
14
|
+
const targetDir = path.join(process.cwd(), "src", "lib");
|
|
15
|
+
|
|
16
|
+
async function run() {
|
|
17
|
+
try {
|
|
18
|
+
await fs.copy(templateDir, targetDir);
|
|
19
|
+
console.log("âś” lib creada correctamente en src/");
|
|
20
|
+
} catch (err) {
|
|
21
|
+
console.error("❌ Error copiando lib:", err);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
run();
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bsdevmotion",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Motion utilities and components for Astro projects",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"bsmotion": "./cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"cli.js",
|
|
11
|
+
"templates"
|
|
12
|
+
],
|
|
13
|
+
"keywords": ["astro", "motion", "components"],
|
|
14
|
+
"author": "BautistaSánchez",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"fs-extra": "^11.3.3"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
File without changes
|