@ludena-studio/nx-astro 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/CHANGELOG.md +9 -0
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/docs/configuration.md +528 -0
- package/docs/testing.md +322 -0
- package/executors/add/executor.d.ts +9 -0
- package/executors/add/executor.d.ts.map +1 -0
- package/executors/add/executor.js +51 -0
- package/executors/add/schema.json +20 -0
- package/executors/build/executor.d.ts +8 -0
- package/executors/build/executor.d.ts.map +1 -0
- package/executors/build/executor.js +43 -0
- package/executors/build/schema.json +15 -0
- package/executors/dev/executor.d.ts +10 -0
- package/executors/dev/executor.d.ts.map +1 -0
- package/executors/dev/executor.js +61 -0
- package/executors/dev/schema.json +25 -0
- package/executors/preview/executor.d.ts +9 -0
- package/executors/preview/executor.d.ts.map +1 -0
- package/executors/preview/executor.js +50 -0
- package/executors/preview/schema.json +20 -0
- package/executors/utils.d.ts +18 -0
- package/executors/utils.d.ts.map +1 -0
- package/executors/utils.js +80 -0
- package/executors.json +25 -0
- package/generators/app/files/.gitignore__template__ +9 -0
- package/generators/app/files/README.md__template__ +27 -0
- package/generators/app/files/astro.config.mjs__template__ +12 -0
- package/generators/app/files/src/env.d.ts__template__ +1 -0
- package/generators/app/files/src/pages/index.astro__template__ +20 -0
- package/generators/app/files/tsconfig.json__template__ +11 -0
- package/generators/app/files-tailwind/src/styles/global.css__template__ +1 -0
- package/generators/app/generator.d.ts +11 -0
- package/generators/app/generator.d.ts.map +1 -0
- package/generators/app/generator.js +123 -0
- package/generators/app/schema.json +49 -0
- package/generators.json +10 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +8 -0
- package/package.json +32 -0
- package/tsconfig.spec.json +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../packages/nx-astro/executors/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAIrD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAc/D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CA6B7D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAyBnE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,GAAG,GAAG,IAAI,CAU3D"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProjectRoot = getProjectRoot;
|
|
4
|
+
exports.findAstroBinary = findAstroBinary;
|
|
5
|
+
exports.validateAstroInstalled = validateAstroInstalled;
|
|
6
|
+
exports.setupSignalHandlers = setupSignalHandlers;
|
|
7
|
+
const devkit_1 = require("@nx/devkit");
|
|
8
|
+
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = require("path");
|
|
10
|
+
/**
|
|
11
|
+
* Get the project root directory from executor context
|
|
12
|
+
*/
|
|
13
|
+
function getProjectRoot(context) {
|
|
14
|
+
const projectName = context.projectName;
|
|
15
|
+
if (!projectName) {
|
|
16
|
+
throw new Error('Could not determine project name from context');
|
|
17
|
+
}
|
|
18
|
+
const projectRoot = context.projectGraph?.nodes[projectName]?.data?.root;
|
|
19
|
+
if (!projectRoot) {
|
|
20
|
+
throw new Error(`Could not find project root for ${projectName}`);
|
|
21
|
+
}
|
|
22
|
+
return (0, path_1.join)(context.root, projectRoot);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Find Astro CLI binary in the project
|
|
26
|
+
*/
|
|
27
|
+
function findAstroBinary(workspaceRoot) {
|
|
28
|
+
// Try local node_modules first (project-specific)
|
|
29
|
+
const localBinary = (0, path_1.join)(workspaceRoot, 'node_modules', '.bin', 'astro');
|
|
30
|
+
if ((0, fs_1.existsSync)(localBinary)) {
|
|
31
|
+
return localBinary;
|
|
32
|
+
}
|
|
33
|
+
// Try workspace root node_modules (pnpm workspaces)
|
|
34
|
+
const workspaceBinary = (0, path_1.join)(workspaceRoot, '..', '..', 'node_modules', '.bin', 'astro');
|
|
35
|
+
if ((0, fs_1.existsSync)(workspaceBinary)) {
|
|
36
|
+
return workspaceBinary;
|
|
37
|
+
}
|
|
38
|
+
// Fallback to global astro (not recommended but better than failure)
|
|
39
|
+
devkit_1.logger.warn('⚠️ Astro binary not found in node_modules. Falling back to global "astro" command.');
|
|
40
|
+
devkit_1.logger.warn('💡 Make sure "astro" is installed: npm install -D astro');
|
|
41
|
+
return 'astro';
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Validate that Astro is installed
|
|
45
|
+
*/
|
|
46
|
+
function validateAstroInstalled(projectRoot) {
|
|
47
|
+
const packageJsonPath = (0, path_1.join)(projectRoot, 'package.json');
|
|
48
|
+
if (!(0, fs_1.existsSync)(packageJsonPath)) {
|
|
49
|
+
devkit_1.logger.error('❌ package.json not found in project root');
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
const packageJson = require(packageJsonPath);
|
|
54
|
+
const hasAstro = (packageJson.dependencies && packageJson.dependencies.astro) ||
|
|
55
|
+
(packageJson.devDependencies && packageJson.devDependencies.astro);
|
|
56
|
+
if (!hasAstro) {
|
|
57
|
+
devkit_1.logger.error('❌ Astro is not installed in this project');
|
|
58
|
+
devkit_1.logger.info('💡 Install it with: npm install -D astro');
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
devkit_1.logger.error('❌ Failed to read package.json');
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Setup signal handlers for graceful process termination
|
|
70
|
+
*/
|
|
71
|
+
function setupSignalHandlers(childProcess) {
|
|
72
|
+
const killProcess = () => {
|
|
73
|
+
if (childProcess && !childProcess.killed) {
|
|
74
|
+
childProcess.kill('SIGTERM');
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
process.on('SIGTERM', killProcess);
|
|
78
|
+
process.on('SIGINT', killProcess);
|
|
79
|
+
process.on('exit', killProcess);
|
|
80
|
+
}
|
package/executors.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"executors": {
|
|
4
|
+
"dev": {
|
|
5
|
+
"implementation": "./executors/dev/executor",
|
|
6
|
+
"schema": "./executors/dev/schema.json",
|
|
7
|
+
"description": "Run Astro development server"
|
|
8
|
+
},
|
|
9
|
+
"build": {
|
|
10
|
+
"implementation": "./executors/build/executor",
|
|
11
|
+
"schema": "./executors/build/schema.json",
|
|
12
|
+
"description": "Build Astro application for production"
|
|
13
|
+
},
|
|
14
|
+
"preview": {
|
|
15
|
+
"implementation": "./executors/preview/executor",
|
|
16
|
+
"schema": "./executors/preview/schema.json",
|
|
17
|
+
"description": "Preview production build locally"
|
|
18
|
+
},
|
|
19
|
+
"add": {
|
|
20
|
+
"implementation": "./executors/add/executor",
|
|
21
|
+
"schema": "./executors/add/schema.json",
|
|
22
|
+
"description": "Add an integration to Astro application"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
dist
|
|
2
|
+
node_modules
|
|
3
|
+
.astro
|
|
4
|
+
|
|
5
|
+
# Package manager lock files
|
|
6
|
+
<% if (packageManager === 'npm') { %>package-lock.json<% } %>
|
|
7
|
+
<% if (packageManager === 'yarn') { %>yarn.lock<% } %>
|
|
8
|
+
<% if (packageManager === 'pnpm') { %>pnpm-lock.yaml<% } %>
|
|
9
|
+
<% if (packageManager === 'bun') { %>bun.lockb<% } %>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# <%= name %>
|
|
2
|
+
|
|
3
|
+
This is an Astro application created with the Nx Astro plugin.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
Start the development server:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
nx dev <%= projectName %>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Build
|
|
14
|
+
|
|
15
|
+
Build for production:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
nx build <%= projectName %>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Preview
|
|
22
|
+
|
|
23
|
+
Preview the production build:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
nx preview <%= projectName %>
|
|
27
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { defineConfig } from 'astro/config';<% if (mdx) { %>
|
|
3
|
+
import mdx from '@astrojs/mdx';<% } %><% if (tailwind) { %>
|
|
4
|
+
import tailwindcss from '@tailwindcss/vite';<% } %>
|
|
5
|
+
|
|
6
|
+
// https://astro.build/config
|
|
7
|
+
export default defineConfig({<% if (mdx) { %>
|
|
8
|
+
integrations: [mdx()],<% } %><% if (tailwind) { %>
|
|
9
|
+
vite: {
|
|
10
|
+
plugins: [tailwindcss()],
|
|
11
|
+
},<% } %>
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="astro/client" />
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Welcome to <%= className %>'<% if (tailwind) { %>
|
|
3
|
+
import '../../styles/global.css';<% } %>
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!doctype html>
|
|
7
|
+
<html lang="en">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8" />
|
|
10
|
+
<meta name="viewport" content="width=device-width" />
|
|
11
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
12
|
+
<title>{title}</title>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<main>
|
|
16
|
+
<h1>Welcome to <%= className %></h1>
|
|
17
|
+
<p>This is your Astro application powered by Nx.</p>
|
|
18
|
+
</main>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {<% if (strict) { %>
|
|
4
|
+
"strict": true,
|
|
5
|
+
"strictNullChecks": true,<% } %>
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
"jsxImportSource": "react"
|
|
8
|
+
},
|
|
9
|
+
"include": ["src/**/*"],
|
|
10
|
+
"exclude": ["node_modules", "dist"]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
export interface AstroAppGeneratorSchema {
|
|
3
|
+
name: string;
|
|
4
|
+
directory?: string;
|
|
5
|
+
strict?: boolean;
|
|
6
|
+
mdx?: boolean;
|
|
7
|
+
tailwind?: boolean;
|
|
8
|
+
tags?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function (tree: Tree, options: AstroAppGeneratorSchema): Promise<() => Promise<string>>;
|
|
11
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../packages/nx-astro/generators/app/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EASL,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAiID,yBAA+B,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,uBAAuB,kCAsC1E"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
function normalizeOptions(tree, options) {
|
|
7
|
+
const name = (0, devkit_1.names)(options.name).fileName;
|
|
8
|
+
const projectDirectory = options.directory
|
|
9
|
+
? `${(0, devkit_1.names)(options.directory).fileName}/${name}`
|
|
10
|
+
: name;
|
|
11
|
+
const projectName = projectDirectory.replace(/\//g, '-');
|
|
12
|
+
const projectRoot = (0, devkit_1.joinPathFragments)('apps', projectDirectory);
|
|
13
|
+
const parsedTags = options.tags
|
|
14
|
+
? options.tags.split(',').map((s) => s.trim())
|
|
15
|
+
: [];
|
|
16
|
+
return {
|
|
17
|
+
...options,
|
|
18
|
+
projectName,
|
|
19
|
+
projectRoot,
|
|
20
|
+
projectDirectory,
|
|
21
|
+
parsedTags,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function addFiles(tree, options) {
|
|
25
|
+
const packageManager = (0, devkit_1.detectPackageManager)(tree.root);
|
|
26
|
+
const templateOptions = {
|
|
27
|
+
...(0, devkit_1.names)(options.name),
|
|
28
|
+
template: '',
|
|
29
|
+
projectName: options.projectName,
|
|
30
|
+
projectRoot: options.projectRoot,
|
|
31
|
+
projectDirectory: options.projectDirectory,
|
|
32
|
+
parsedTags: options.parsedTags,
|
|
33
|
+
packageManager,
|
|
34
|
+
// Ensure optional template variables have defaults
|
|
35
|
+
mdx: options.mdx ?? false,
|
|
36
|
+
tailwind: options.tailwind ?? false,
|
|
37
|
+
strict: options.strict ?? false,
|
|
38
|
+
};
|
|
39
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, 'files'), options.projectRoot, templateOptions);
|
|
40
|
+
// Add Tailwind-specific files if enabled
|
|
41
|
+
if (options.tailwind) {
|
|
42
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, 'files-tailwind'), options.projectRoot, templateOptions);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function addDependencies(tree, options) {
|
|
46
|
+
const dependencies = {};
|
|
47
|
+
const devDependencies = {
|
|
48
|
+
astro: '^5.1.4', // Ensure astro is always present
|
|
49
|
+
};
|
|
50
|
+
if (options.mdx) {
|
|
51
|
+
dependencies['@astrojs/mdx'] = '^4.1.1';
|
|
52
|
+
}
|
|
53
|
+
if (options.tailwind) {
|
|
54
|
+
// Tailwind 4 uses Vite plugin instead of Astro integration
|
|
55
|
+
devDependencies['tailwindcss'] = '^4.1.0';
|
|
56
|
+
devDependencies['@tailwindcss/vite'] = '^4.1.0';
|
|
57
|
+
}
|
|
58
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDependencies);
|
|
59
|
+
}
|
|
60
|
+
function addProjectConfiguration(tree, options) {
|
|
61
|
+
const projectConfig = {
|
|
62
|
+
name: options.projectName,
|
|
63
|
+
projectType: 'application',
|
|
64
|
+
sourceRoot: `${options.projectRoot}/src`,
|
|
65
|
+
targets: {
|
|
66
|
+
dev: {
|
|
67
|
+
executor: '@ludena-studio/nx-astro:dev',
|
|
68
|
+
options: {},
|
|
69
|
+
},
|
|
70
|
+
serve: {
|
|
71
|
+
executor: '@ludena-studio/nx-astro:dev',
|
|
72
|
+
options: {},
|
|
73
|
+
},
|
|
74
|
+
build: {
|
|
75
|
+
executor: '@ludena-studio/nx-astro:build',
|
|
76
|
+
options: {
|
|
77
|
+
outputPath: `dist/${options.projectRoot}`,
|
|
78
|
+
},
|
|
79
|
+
outputs: [`{options.outputPath}`],
|
|
80
|
+
},
|
|
81
|
+
preview: {
|
|
82
|
+
executor: '@ludena-studio/nx-astro:preview',
|
|
83
|
+
options: {},
|
|
84
|
+
dependsOn: ['build'],
|
|
85
|
+
},
|
|
86
|
+
add: {
|
|
87
|
+
executor: '@ludena-studio/nx-astro:add',
|
|
88
|
+
options: {},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
tags: options.parsedTags,
|
|
92
|
+
};
|
|
93
|
+
const projectJsonPath = (0, devkit_1.joinPathFragments)(options.projectRoot, 'project.json');
|
|
94
|
+
tree.write(projectJsonPath, JSON.stringify(projectConfig, null, 2));
|
|
95
|
+
}
|
|
96
|
+
async function default_1(tree, options) {
|
|
97
|
+
const normalizedOptions = normalizeOptions(tree, options);
|
|
98
|
+
const tasks = [];
|
|
99
|
+
addProjectConfiguration(tree, normalizedOptions);
|
|
100
|
+
addFiles(tree, normalizedOptions);
|
|
101
|
+
// Add dependencies if integrations are selected
|
|
102
|
+
if (normalizedOptions.mdx || normalizedOptions.tailwind) {
|
|
103
|
+
tasks.push(addDependencies(tree, normalizedOptions));
|
|
104
|
+
}
|
|
105
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
106
|
+
return async () => {
|
|
107
|
+
// Run install tasks
|
|
108
|
+
await (0, devkit_1.runTasksInSerial)(...tasks);
|
|
109
|
+
const nextSteps = `
|
|
110
|
+
✅ Astro application created successfully!
|
|
111
|
+
|
|
112
|
+
Next steps:
|
|
113
|
+
1. Run 'nx dev ${normalizedOptions.projectName}' to start the dev server
|
|
114
|
+
2. Run 'nx build ${normalizedOptions.projectName}' to build for production
|
|
115
|
+
3. Run 'nx preview ${normalizedOptions.projectName}' to preview the build${normalizedOptions.mdx
|
|
116
|
+
? `\n 4. MDX integration is configured and ready to use`
|
|
117
|
+
: ''}${normalizedOptions.tailwind
|
|
118
|
+
? `\n ${normalizedOptions.mdx ? '5' : '4'}. Tailwind CSS integration is configured and ready to use`
|
|
119
|
+
: ''}`;
|
|
120
|
+
console.log(nextSteps);
|
|
121
|
+
return nextSteps;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "AstroAppGenerator",
|
|
4
|
+
"title": "Create Astro Application",
|
|
5
|
+
"description": "Create a new Astro application in the Nx workspace",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the application",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "What name would you like to use for the application?",
|
|
16
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"directory": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Directory where the app should be created (relative to apps/)",
|
|
21
|
+
"default": "",
|
|
22
|
+
"x-prompt": "In which directory should the app be created? (leave empty for apps/)"
|
|
23
|
+
},
|
|
24
|
+
"strict": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Enable TypeScript strict mode",
|
|
27
|
+
"default": true,
|
|
28
|
+
"x-prompt": "Enable TypeScript strict mode?"
|
|
29
|
+
},
|
|
30
|
+
"mdx": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "Include MDX integration",
|
|
33
|
+
"default": true,
|
|
34
|
+
"x-prompt": "Include MDX integration?"
|
|
35
|
+
},
|
|
36
|
+
"tailwind": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Include Tailwind CSS integration",
|
|
39
|
+
"default": false,
|
|
40
|
+
"x-prompt": "Include Tailwind CSS?"
|
|
41
|
+
},
|
|
42
|
+
"tags": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Comma-separated tags for the project",
|
|
45
|
+
"default": ""
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["name"]
|
|
49
|
+
}
|
package/generators.json
ADDED
package/index.d.ts
ADDED
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/nx-astro/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./executors/dev/executor"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./executors/build/executor"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./executors/preview/executor"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./executors/add/executor"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./generators/app/generator"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ludena-studio/nx-astro",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Nx plugin for Astro integration",
|
|
5
|
+
"author": "Ludena Studio",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"generators": "./generators.json",
|
|
10
|
+
"executors": "./executors.json",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"nx",
|
|
13
|
+
"nx-plugin",
|
|
14
|
+
"astro",
|
|
15
|
+
"monorepo",
|
|
16
|
+
"ludena"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/ludena/nx-extensions.git",
|
|
21
|
+
"directory": "packages/nx-astro"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@nx/devkit": ">=18.0.0",
|
|
28
|
+
"nx": ">=18.0.0",
|
|
29
|
+
"tslib": "^2.3.0"
|
|
30
|
+
},
|
|
31
|
+
"type": "commonjs"
|
|
32
|
+
}
|