create-atxp 1.0.2

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.
Files changed (2) hide show
  1. package/index.js +18 -0
  2. package/package.json +36 -0
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from 'child_process';
4
+
5
+ // Call the atxp package with --create flag
6
+ const atxp = spawn('npx', ['atxp', '--create'], {
7
+ stdio: 'inherit',
8
+ cwd: process.cwd()
9
+ });
10
+
11
+ atxp.on('close', (code) => {
12
+ process.exit(code);
13
+ });
14
+
15
+ atxp.on('error', (error) => {
16
+ console.error('Failed to run atxp:', error.message);
17
+ process.exit(1);
18
+ });
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "create-atxp",
3
+ "version": "1.0.2",
4
+ "description": "Create ATXP projects - Scaffold new ATXP applications from templates",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/atxp-dev/sdk.git",
9
+ "directory": "packages/create-atxp"
10
+ },
11
+ "main": "index.js",
12
+ "bin": {
13
+ "create-atxp": "./index.js"
14
+ },
15
+ "type": "module",
16
+ "files": [
17
+ "index.js"
18
+ ],
19
+ "scripts": {
20
+ "build": "echo",
21
+ "typecheck": "echo",
22
+ "lint": "echo",
23
+ "lint:fix": "echo",
24
+ "test": "echo",
25
+ "prepublishOnly": "echo"
26
+ },
27
+ "keywords": [
28
+ "atxp",
29
+ "create",
30
+ "scaffold",
31
+ "template"
32
+ ],
33
+ "dependencies": {
34
+ "atxp": "^1.0.2"
35
+ }
36
+ }