create-qwik
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "create-qwik", | ||
"version": "0.0.10", | ||
"description": "Interactive CLI for generating Qwik projects.", | ||
"version": "0.0.11", | ||
"description": "Interactive CLI and API for generating Qwik projects.", | ||
"bin": { | ||
"create-qwik": "index.js" | ||
"create-qwik": "create-qwik" | ||
}, | ||
"main": "index.js", | ||
"files": [ | ||
"starters" | ||
"create-qwik", | ||
"starters/" | ||
], | ||
@@ -12,0 +13,0 @@ "author": "Builder.io Team", |
@@ -21,2 +21,21 @@ # Create Qwik | ||
## API | ||
```javascript | ||
const { getStarters, generateStarter } = require('create-qwik'); | ||
const starters = await getStarters(); | ||
console.log(starters); | ||
const opts = { | ||
projectName: 'my-project', | ||
appId: 'todo', | ||
serverId: 'express', | ||
outDir: '/path/to/output/dir', | ||
}; | ||
const result = await generateStarter(opts); | ||
console.log(result); | ||
``` | ||
## Community | ||
@@ -23,0 +42,0 @@ |
@@ -12,3 +12,3 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "0.0.16-4", | ||
"@builder.io/qwik": "0.0.16-6", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
@@ -15,0 +15,0 @@ "@rollup/plugin-typescript": "^8.3.0", |
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import { qwikRollup } from '@builder.io/qwik/optimizer'; | ||
import { writeFile, mkdir } from "fs/promises"; | ||
import { dirname } from "path"; | ||
import { writeFileSync, mkdirSync } from 'fs'; | ||
import { dirname } from 'path'; | ||
@@ -37,5 +37,5 @@ export default async function () { | ||
async function outputJSON(path, data) { | ||
await mkdir(dirname(path), {recursive: true}); | ||
await writeFile(path, JSON.stringify(data, null, 2)); | ||
function outputJSON(path, data) { | ||
mkdirSync(dirname(path), { recursive: true }); | ||
writeFileSync(path, JSON.stringify(data, null, 2)); | ||
} |
@@ -9,2 +9,3 @@ { | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"moduleResolution": "node", | ||
@@ -11,0 +12,0 @@ "esModuleInterop": true, |
@@ -12,3 +12,3 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "0.0.16-4", | ||
"@builder.io/qwik": "0.0.16-6", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
@@ -15,0 +15,0 @@ "@rollup/plugin-typescript": "^8.3.0", |
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import { qwikRollup } from '@builder.io/qwik/optimizer'; | ||
import { writeFile, mkdir } from "fs/promises"; | ||
import { dirname } from "path"; | ||
import { writeFileSync, mkdirSync } from 'fs'; | ||
import { dirname } from 'path'; | ||
@@ -37,5 +37,5 @@ export default async function () { | ||
async function outputJSON(path, data) { | ||
await mkdir(dirname(path), {recursive: true}); | ||
await writeFile(path, JSON.stringify(data, null, 2)); | ||
function outputJSON(path, data) { | ||
mkdirSync(dirname(path), { recursive: true }); | ||
writeFileSync(path, JSON.stringify(data, null, 2)); | ||
} |
@@ -6,6 +6,6 @@ { | ||
"lib": ["es2020", "DOM"], | ||
"jsx": "react", | ||
"jsxFactory": "h", | ||
"jsxFragmentFactory": "Fragment", | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "@builder.io/qwik", | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"moduleResolution": "node", | ||
@@ -12,0 +12,0 @@ "esModuleInterop": true, |
@@ -12,3 +12,3 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "0.0.16-4", | ||
"@builder.io/qwik": "0.0.16-6", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
@@ -15,0 +15,0 @@ "@rollup/plugin-typescript": "^8.3.0", |
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import { qwikRollup } from '@builder.io/qwik/optimizer'; | ||
import { writeFile, mkdir } from "fs/promises"; | ||
import { dirname } from "path"; | ||
import { writeFileSync, mkdirSync } from 'fs'; | ||
import { dirname } from 'path'; | ||
@@ -37,5 +37,5 @@ export default async function () { | ||
async function outputJSON(path, data) { | ||
await mkdir(dirname(path), {recursive: true}); | ||
await writeFile(path, JSON.stringify(data, null, 2)); | ||
function outputJSON(path, data) { | ||
mkdirSync(dirname(path), { recursive: true }); | ||
writeFileSync(path, JSON.stringify(data, null, 2)); | ||
} |
@@ -6,6 +6,6 @@ { | ||
"lib": ["es2020", "DOM"], | ||
"jsx": "react", | ||
"jsxFactory": "h", | ||
"jsxFragmentFactory": "Fragment", | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "@builder.io/qwik", | ||
"strict": true, | ||
"resolveJsonModule": true, | ||
"moduleResolution": "node", | ||
@@ -12,0 +12,0 @@ "esModuleInterop": true, |
@@ -12,3 +12,3 @@ { | ||
"devDependencies": { | ||
"@builder.io/qwik": "0.0.16-4", | ||
"@builder.io/qwik": "0.0.16-6", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
@@ -15,0 +15,0 @@ "@rollup/plugin-typescript": "^8.3.0", |
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import { qwikRollup } from '@builder.io/qwik/optimizer'; | ||
import { terser } from "rollup-plugin-terser"; | ||
import { writeFile, mkdir } from "fs/promises"; | ||
import { dirname } from "path"; | ||
import { terser } from 'rollup-plugin-terser'; | ||
import { writeFileSync, mkdirSync } from 'fs'; | ||
import { dirname } from 'path'; | ||
@@ -39,5 +39,5 @@ export default async function () { | ||
async function outputJSON(path, data) { | ||
await mkdir(dirname(path), {recursive: true}); | ||
await writeFile(path, JSON.stringify(data, null, 2)); | ||
function outputJSON(path, data) { | ||
mkdirSync(dirname(path), { recursive: true }); | ||
writeFileSync(path, JSON.stringify(data, null, 2)); | ||
} |
@@ -6,5 +6,4 @@ { | ||
"lib": ["es2020", "DOM"], | ||
"jsx": "react", | ||
"jsxFactory": "h", | ||
"jsxFragmentFactory": "Fragment", | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "@builder.io/qwik", | ||
"strict": true, | ||
@@ -11,0 +10,0 @@ "resolveJsonModule": true, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
52
9
149167
41
1415
1