Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use npx for calling JS apps #1906

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions examples/next/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"private": true,
"type": "module",
"scripts": {
"dev": "faust dev",
"build": "faust build",
"generate": "faust generatePossibleTypes",
"stylesheet": "faust generateGlobalStylesheet",
"start": "faust start"
"dev": "npx faust dev",
"build": "npx faust build",
"generate": "npx faust generatePossibleTypes",
"stylesheet": "npx faust generateGlobalStylesheet",
"start": "npx faust start"
},
"dependencies": {
"@apollo/client": "^3.8.0",
Expand All @@ -31,4 +31,4 @@
"next-secure-headers": "^2.2.0",
"typescript": "^5.2.2"
}
}
}
14 changes: 7 additions & 7 deletions examples/next/block-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"private": true,
"version": "0.2.0",
"scripts": {
"predev": "faust generatePossibleTypes && faust generateGlobalStylesheet",
"prebuild": "faust generatePossibleTypes && faust generateGlobalStylesheet",
"dev": "faust dev",
"build": "faust build",
"blockset": "faust blockset",
"start": "faust start"
"predev": "npx faust generatePossibleTypes && faust generateGlobalStylesheet",
"prebuild": "npx faust generatePossibleTypes && faust generateGlobalStylesheet",
"dev": "npx faust dev",
"build": "npx faust build",
"blockset": "npx faust blockset",
"start": "npx faust start"
},
"dependencies": {
"@apollo/client": "^3.8.8",
Expand All @@ -33,4 +33,4 @@
"node": ">=18",
"npm": ">=10"
}
}
}
10 changes: 5 additions & 5 deletions examples/next/custom-toolbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "@faustwp/custom-toolbar",
"private": true,
"scripts": {
"dev": "faust dev",
"build": "faust build",
"generate": "faust generatePossibleTypes",
"start": "faust start"
"dev": "npx faust dev",
"build": "npx faust build",
"generate": "npx faust generatePossibleTypes",
"start": "npx faust start"
},
"dependencies": {
"@apollo/client": "^3.7.7",
Expand All @@ -16,4 +16,4 @@
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
}
10 changes: 5 additions & 5 deletions examples/next/faustwp-getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"private": true,
"version": "0.1.0",
"scripts": {
"dev": "faust dev",
"build": "faust build",
"generate": "faust generatePossibleTypes",
"stylesheet": "faust generateGlobalStylesheet",
"start": "faust start"
"dev": "npx faust dev",
"build": "npx faust build",
"generate": "npx faust generatePossibleTypes",
"stylesheet": "npx faust generateGlobalStylesheet",
"start": "npx faust start"
},
"dependencies": {
"@apollo/client": "^3.10.4",
Expand Down
14 changes: 7 additions & 7 deletions examples/next/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"npm": ">=6.0.0"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"clean": "rimraf .next node_modules",
"lint": "next lint",
"generate": "gqty generate",
"wpe-build": "next build"
"dev": "npx next dev",
"build": "npx next build",
"start": "npx next start",
"clean": "npx rimraf .next node_modules",
"lint": "npx next lint",
"generate": "npx gqty generate",
"wpe-build": "npx next build"
},
"dependencies": {
"@faustjs/core": "^0.15.13",
Expand Down
14 changes: 7 additions & 7 deletions internal/legacy.faustjs.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"dev": "npm run downloadChangelogs && docusaurus start",
"start": "npm run downloadChangelogs && docusaurus serve",
"build": "npm run downloadChangelogs && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"swizzle": "npx docusaurus swizzle",
"deploy": "npx docusaurus deploy",
"clear": "npx docusaurus clear",
"serve": "npx docusaurus serve",
"downloadChangelogs": "node ./scripts/downloadChangelogs.js",
"serve:prod": "npm run serve -- --build --port 8080 --host 0.0.0.0",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
"write-translations": "npx docusaurus write-translations",
"write-heading-ids": "npx docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.0.1",
Expand Down Expand Up @@ -43,4 +43,4 @@
"last 1 safari version"
]
}
}
}
60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"test": "npm run build && npm test --workspace=@faustjs/core --workspace=@faustjs/react --workspace=@faustjs/next --workspace=@faustwp/core --workspace=@faustwp/cli --workspace=@faustwp/blocks --workspace=@faustwp/block-editor-utils",
"test:coverage": "npm run build && npm run test:coverage --workspace=@faustjs/core --workspace=@faustjs/react --workspace=@faustjs/next --workspace=@faustwp/block-editor-utils",
"wpe-build": "exit 1",
"changeset": "changeset",
"version": "changeset version && node scripts/versionPlugin.js",
"changeset": "npx changeset",
"version": "npx changeset version && node scripts/versionPlugin.js",
"version:nightly": "changeset version --snapshot && node scripts/versionPlugin.js",
"version:status": "changeset status",
"release": "npm run build && npm run build:experimental-app-router && changeset publish",
"release:nightly": "npm run build && npm run build:experimental-app-router && changeset publish --tag canary",
"lint": "eslint ./packages --ext js,jsx,ts,tsx --max-warnings=0",
"lint:fix": "eslint ./packages --ext js,jsx,ts,tsx --max-warnings=0 --fix"
"lint": "npx eslint ./packages --ext js,jsx,ts,tsx --max-warnings=0",
"lint:fix": "npx eslint ./packages --ext js,jsx,ts,tsx --max-warnings=0 --fix"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
Expand Down Expand Up @@ -80,4 +80,4 @@
"postcss": "8.4.31",
"axios": "^1.6.1"
}
}
}
12 changes: 6 additions & 6 deletions packages/block-editor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"scripts": {
"prebuild": "npm run clean",
"postbuild": "npm run package",
"clean": "rimraf dist",
"clean": "npx rimraf dist",
"package": "node ../../scripts/package.js",
"test": "jest",
"test": "npx jest",
"build": "npm run build-esm && npm run build-cjs",
"build-esm": "tsc -p .",
"build-cjs": "tsc -p tsconfig.cjs.json",
"dev": "tsc -p tsconfig.json --watch"
"build-esm": "npx tsc -p .",
"build-cjs": "npx tsc -p tsconfig.cjs.json",
"dev": "npx tsc -p tsconfig.json --watch"
},
"repository": {
"type": "git",
Expand All @@ -59,4 +59,4 @@
"node": ">=18",
"npm": ">=8"
}
}
}
12 changes: 6 additions & 6 deletions packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"scripts": {
"prebuild": "npm run clean",
"postbuild": "npm run package",
"clean": "rimraf dist",
"clean": "npx rimraf dist",
"package": "node ../../scripts/package.js",
"test": "jest",
"test": "npx jest",
"build": "npm run build-esm && npm run build-cjs",
"build-esm": "tsc -p .",
"build-cjs": "tsc -p tsconfig.cjs.json",
"dev": "tsc -p tsconfig.json --watch"
"build-esm": "npx tsc -p .",
"build-cjs": "npx tsc -p tsconfig.cjs.json",
"dev": "npx tsc -p tsconfig.json --watch"
},
"repository": {
"type": "git",
Expand All @@ -46,4 +46,4 @@
"node": ">=18",
"npm": ">=8"
}
}
}
24 changes: 12 additions & 12 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
"scripts": {
"build": "npm run clean && npm run ts && npm run ts:cjs && npm run package",
"dev": "npm run ts:watch",
"clean": "rimraf dist",
"clean": "npx rimraf dist",
"package": "node ../../scripts/package.js",
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --parser-options=project:tsconfig.json --fix",
"lint": "eslint \"src/**/*.{ts,tsx}\" --parser-options=project:tsconfig.json",
"lint:fix": "npx eslint \"src/**/*.{ts,tsx}\" --parser-options=project:tsconfig.json --fix",
"lint": "npx eslint \"src/**/*.{ts,tsx}\" --parser-options=project:tsconfig.json",
"prepublish": "npm run build",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:coverage:ci": "jest --ci --json --coverage --testLocationInResults --outputFile=report.json",
"ts": "tsc -p .",
"ts:cjs": "tsc -p tsconfig-cjs.json",
"ts:watch": "tsc -p . --watch",
"format": "prettier --write ."
"test": "npx jest",
"test:watch": "npx jest --watch",
"test:coverage": "npx jest --coverage",
"test:coverage:ci": "npx jest --ci --json --coverage --testLocationInResults --outputFile=report.json",
"ts": "npx tsc -p .",
"ts:cjs": "npx tsc -p tsconfig-cjs.json",
"ts:watch": "npx tsc -p . --watch",
"format": "npx prettier --write ."
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -86,4 +86,4 @@
"typescript": "^4.4.4",
"fetch-mock": "9.11.0"
}
}
}
16 changes: 8 additions & 8 deletions packages/experimental-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"dev": "concurrently \"npm:watch-*\" --prefix-colors \"auto\"",
"build": "concurrently \"npm:build-*\" --prefix-colors \"auto\"",
"prebuild": "npm run clean",
"clean": "rimraf dist",
"format": "prettier --write .",
"clean": "npx rimraf dist",
"format": "npx prettier --write .",
"prepublish": "npm run build",
"test:coverage:ci": "jest --ci --json --coverage --testLocationInResults --outputFile=report.json",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"test": "jest",
"build-js": "tsc -p .",
"test:coverage:ci": "npx jest --ci --json --coverage --testLocationInResults --outputFile=report.json",
"test:coverage": "npx jest --coverage",
"test:watch": "npx jest --watch",
"test": "npx jest",
"build-js": "npx tsc -p .",
"watch-js": "concurrently \"npm:build-js -- --watch\""
},
"repository": {
Expand Down Expand Up @@ -73,4 +73,4 @@
"ts-loader": "^9.4.4",
"typescript": "^5.1.6"
}
}
}
18 changes: 9 additions & 9 deletions packages/faustwp-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"webpack-cli": "5.1.4"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"clean": "rimraf dist",
"dev": "tsc -p tsconfig.json --watch",
"format": "prettier --write .",
"test": "jest",
"test:coverage:ci": "jest --ci --json --coverage --testLocationInResults --passWithNoTests --outputFile=report.json",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch"
"build": "npx tsc -p tsconfig.json",
"clean": "npx rimraf dist",
"dev": "npx tsc -p tsconfig.json --watch",
"format": "npx prettier --write .",
"test": "npx jest",
"test:coverage:ci": "npx jest --ci --json --coverage --testLocationInResults --passWithNoTests --outputFile=report.json",
"test:coverage": "npx jest --coverage",
"test:watch": "npx jest --watch"
},
"repository": {
"type": "git",
Expand All @@ -58,4 +58,4 @@
"node": ">=18",
"npm": ">=8"
}
}
}
Loading
Loading