edge-functions 2.4.0 → 2.5.0-stage.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.5.0-stage.1](https://github.com/aziontech/vulcan/compare/v2.4.0...v2.5.0-stage.1) (2024-02-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * add gastby to <init> command ([#245](https://github.com/aziontech/vulcan/issues/245)) ([7b1f870](https://github.com/aziontech/vulcan/commit/7b1f870885809d18abc651952e0a92564ebae137))
7
+
1
8
  ## [2.4.0](https://github.com/aziontech/vulcan/compare/v2.3.0...v2.4.0) (2024-02-16)
2
9
 
3
10
 
@@ -9,6 +9,9 @@ const FrameworksDefaultVersions = {
9
9
  Astro: {
10
10
  options: [{ value: 'latest', message: 'static supported' }],
11
11
  },
12
+ Gatsby: {
13
+ options: [{ value: 'latest', message: 'static supported' }],
14
+ },
12
15
  Hexo: {
13
16
  options: [{ value: 'latest', message: 'static supported' }],
14
17
  },
@@ -94,6 +97,14 @@ export default function myWorker(event: FetchEvent): Response {
94
97
  true,
95
98
  );
96
99
  },
100
+ Gatsby: async (projectName, version = FrameworksDefaultVersions.Gatsby) => {
101
+ await exec(
102
+ `npx --yes gatsby@${version} new ${projectName}`,
103
+ 'Gatsby',
104
+ false,
105
+ true,
106
+ );
107
+ },
97
108
  Hexo: async (projectName, version = FrameworksDefaultVersions.Hexo) => {
98
109
  await exec(
99
110
  `npx --yes hexo@${version} init ${projectName}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "edge-functions",
3
3
  "type": "module",
4
- "version": "2.4.0",
4
+ "version": "2.5.0-stage.1",
5
5
  "description": "Tool to launch and build JavaScript/Frameworks. This tool automates polyfills for Edge Computing and assists in creating Workers, notably for the Azion platform.",
6
6
  "main": "lib/main.js",
7
7
  "bin": {