create-ssam
Advanced tools
Comparing version 0.2.4 to 0.2.8
@@ -13,2 +13,6 @@ import fs from 'fs'; | ||
var cwd = process.cwd(); | ||
var ssamPluginPkgs = `vite-plugin-ssam-git vite-plugin-ssam-timelapse`; | ||
var oglPkg = `ogl@0.0.110`; | ||
var viteGlslPkg = `vite-plugin-glsl@1.1.2`; | ||
var threePkg = `three`; | ||
var templates = [ | ||
@@ -26,3 +30,3 @@ { | ||
`npm install ssam@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install -D @types/node ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -36,3 +40,3 @@ }, | ||
`npm install ssam@latest --prefix TARGET_DIR`, | ||
`npm install -D vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install -D ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -52,4 +56,4 @@ } | ||
customCommands: [ | ||
`npm install ssam@latest ogl@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${oglPkg} --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -63,4 +67,4 @@ }, | ||
`git clone --no-tags --depth 1 --single-branch --branch=main https://github.com/patriciogonzalezvivo/lygia.git`, | ||
`npm install ssam@latest ogl@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${oglPkg} --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -73,4 +77,4 @@ }, | ||
customCommands: [ | ||
`npm install ssam@latest ogl@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${oglPkg} --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/ogl@npm:ogl-types ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -90,4 +94,4 @@ } | ||
customCommands: [ | ||
`npm install ssam@latest three@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/three vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${threePkg} --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/three ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -101,4 +105,4 @@ }, | ||
`git clone --no-tags --depth 1 --single-branch --branch=main https://github.com/patriciogonzalezvivo/lygia.git`, | ||
`npm install ssam@latest three@latest --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/three vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${threePkg} --prefix TARGET_DIR`, | ||
`npm install -D @types/node @types/three ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -111,4 +115,4 @@ }, | ||
customCommands: [ | ||
`npm install ssam@latest three@latest --prefix TARGET_DIR`, | ||
`npm install -D vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${threePkg} --prefix TARGET_DIR`, | ||
`npm install -D ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -122,4 +126,4 @@ }, | ||
`git clone --no-tags --depth 1 --single-branch --branch=main https://github.com/patriciogonzalezvivo/lygia.git`, | ||
`npm install ssam@latest three@latest --prefix TARGET_DIR`, | ||
`npm install -D vite-plugin-glsl@latest vite-plugin-ssam-git --prefix TARGET_DIR` | ||
`npm install ssam@latest ${threePkg} --prefix TARGET_DIR`, | ||
`npm install -D ${viteGlslPkg} ${ssamPluginPkgs} --prefix TARGET_DIR` | ||
] | ||
@@ -151,2 +155,3 @@ } | ||
[ | ||
// project name | ||
{ | ||
@@ -161,2 +166,3 @@ type: "text", | ||
}, | ||
// handle directory | ||
{ | ||
@@ -174,2 +180,3 @@ type: () => { | ||
}, | ||
// | ||
{ | ||
@@ -184,2 +191,3 @@ type: (_, { overwrite: overwrite2 }) => { | ||
}, | ||
// package name | ||
{ | ||
@@ -192,2 +200,3 @@ type: () => isValidPackageName(getProjectName()) ? null : "text", | ||
}, | ||
// template | ||
{ | ||
@@ -205,2 +214,3 @@ type: "select", | ||
}, | ||
// template option | ||
{ | ||
@@ -207,0 +217,0 @@ type: "select", |
{ | ||
"name": "create-ssam", | ||
"version": "0.2.4", | ||
"version": "0.2.8", | ||
"description": "Quickstart a creative coding sketch with ssam", | ||
@@ -10,3 +10,2 @@ "type": "module", | ||
"files": [ | ||
"index.js", | ||
"template-*", | ||
@@ -41,3 +40,4 @@ "dist", | ||
"vite-plugin-glsl": "^1.1.2", | ||
"vite-plugin-ssam-git": "^0.0.2" | ||
"vite-plugin-ssam-git": "^0.0.2", | ||
"vite-plugin-ssam-timelapse": "^0.0.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "repository": { |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [glsl(), ssamGit()], | ||
plugins: [glsl(), ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -8,0 +9,0 @@ outDir: "./dist", |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
@@ -11,2 +12,3 @@ export default defineConfig({ | ||
ssamGit(), | ||
ssamTimelapse(), | ||
], | ||
@@ -13,0 +15,0 @@ build: { |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [glsl(), ssamGit()], | ||
plugins: [glsl(), ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -8,0 +9,0 @@ outDir: "./dist", |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [glsl(), ssamGit()], | ||
plugins: [glsl(), ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -8,0 +9,0 @@ outDir: "./dist", |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
@@ -11,2 +12,3 @@ export default defineConfig({ | ||
ssamGit(), | ||
ssamTimelapse(), | ||
], | ||
@@ -13,0 +15,0 @@ build: { |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
@@ -11,2 +12,3 @@ export default defineConfig({ | ||
ssamGit(), | ||
ssamTimelapse(), | ||
], | ||
@@ -13,0 +15,0 @@ build: { |
import { defineConfig } from "vite"; | ||
import glsl from "vite-plugin-glsl"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [glsl(), ssamGit()], | ||
plugins: [glsl(), ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -8,0 +9,0 @@ outDir: "./dist", |
import { defineConfig } from "vite"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [ssamGit()], | ||
plugins: [ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -7,0 +8,0 @@ outDir: "./dist", |
import { defineConfig } from "vite"; | ||
import { ssamGit } from "vite-plugin-ssam-git"; | ||
import { ssamTimelapse } from "vite-plugin-ssam-timelapse"; | ||
export default defineConfig({ | ||
plugins: [ssamGit()], | ||
plugins: [ssamGit(), ssamTimelapse()], | ||
build: { | ||
@@ -7,0 +8,0 @@ outDir: "./dist", |
82773
1120
13