@haxtheweb/create 9.0.2 → 9.0.3

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/dist/create.js CHANGED
@@ -65,6 +65,7 @@ async function main() {
65
65
  } catch (e) {
66
66
  console.log(e);
67
67
  }
68
+ var port = "3000";
68
69
  // delay so that we clear and then let them visually react to change
69
70
  const siteData = await hax.systemStructureContext();
70
71
  // delay so that we clear and then let them visually react to change
@@ -337,6 +338,7 @@ async function main() {
337
338
  await (0, _promises.setTimeout)(500);
338
339
  break;
339
340
  case 'webcomponent':
341
+ port = "8000";
340
342
  // option to build github repo link for the user
341
343
  if (project.extras.includes('git')) {
342
344
  project.gitRepo = await p.text({
@@ -404,13 +406,13 @@ async function main() {
404
406
  p.note(`${merlinSays(`I have summoned a sub-process daemon 👹`)}
405
407
 
406
408
  🚀 Running your ${_picocolors.default.bold(project.type)} ${_picocolors.default.bold(project.name)}:
407
- ${_picocolors.default.underline(_picocolors.default.cyan('http://localhost:8000'))}
409
+ ${_picocolors.default.underline(_picocolors.default.cyan(`http://localhost:${port}`))}
408
410
 
409
- 🏠 Launched from: ${_picocolors.default.underline(_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`${optionPath}`))))}
410
- 💻 Navigate to folder: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`cd ${optionPath}`)))}
411
- 🚧 Launch later with command: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`${command}`)))}
411
+ 🏠 Launched: ${_picocolors.default.underline(_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`${optionPath}`))))}
412
+ 💻 Folder: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`cd ${optionPath}`)))}
412
413
  📂 Open folder: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`open ${optionPath}`)))}
413
414
  📘 VS Code Project: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`code ${optionPath}`)))}
415
+ 🚧 Launch later: ${_picocolors.default.bold(_picocolors.default.yellow(_picocolors.default.bgBlack(`${command}`)))}
414
416
 
415
417
  ⌨️ To resume 🧙 Merlin press: ${_picocolors.default.bold(_picocolors.default.black(_picocolors.default.bgRed(` CTRL + C `)))}
416
418
  `);
@@ -0,0 +1,41 @@
1
+ name: Build and Deploy
2
+ on: [push]
3
+ jobs:
4
+ build-and-deploy:
5
+ permissions:
6
+ contents: write
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: ACTIONS_ALLOW_UNSECURE_COMMANDS
10
+ id: ACTIONS_ALLOW_UNSECURE_COMMANDS
11
+ run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
12
+
13
+ - name: set env variable actor
14
+ run: echo 'GITHUB_ACTOR=$GITHUB_ACTOR' >> $GITHUB_ENV
15
+
16
+ - name: set env variable repo
17
+ run: echo 'GITHUB_REPOSITORY=$GITHUB_REPOSITORY' >> $GITHUB_ENV
18
+
19
+ - name: Checkout 🛎️
20
+ uses: actions/checkout@v4.1.7 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
21
+ with:
22
+ persist-credentials: false
23
+
24
+ - name: Read CNAME
25
+ id: cname
26
+ uses: juliangruber/read-file-action@v1
27
+ with:
28
+ path: ./CNAME
29
+ - name: set env variable CNAME
30
+ run: echo 'CNAME=${{ steps.cname.outputs.content }}' >> $GITHUB_ENV
31
+
32
+ - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
33
+ run: |
34
+ npm install
35
+ npm run build
36
+ - name: Deploy to GitHub Pages
37
+ uses: JamesIves/github-pages-deploy-action@v4.6.3
38
+ with:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+ BRANCH: gh-pages # The branch the action should deploy to.
41
+ FOLDER: public # The folder the action should deploy.
File without changes
@@ -0,0 +1,21 @@
1
+ [build]
2
+ publish = "public"
3
+ command = "npm run build"
4
+
5
+ [[headers]]
6
+ for = "/*"
7
+ [headers.values]
8
+ Cache-Control = "max-age=31536001"
9
+ Cross-Origin-Opener-Policy = "same-origin"
10
+ Cross-Origin-Embedder-Policy = "require-corp"
11
+
12
+
13
+ [[headers]]
14
+ for = "/"
15
+ [headers.values]
16
+ Cache-Control = "no-cache"
17
+
18
+ [[headers]]
19
+ for = "/*.html"
20
+ [headers.values]
21
+ Cache-Control = "no-cache"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haxtheweb/create",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@clack/core": "0.3.4",
46
46
  "@clack/prompts": "0.7.0",
47
- "@haxtheweb/haxcms-nodejs": "^9.0.2",
47
+ "@haxtheweb/haxcms-nodejs": "^9.0.3",
48
48
  "ejs": "3.1.10",
49
49
  "picocolors": "1.0.1"
50
50
  },