Skip to content

Commit

Permalink
remove all config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher committed Mar 30, 2024
1 parent 23afa37 commit 1b117e0
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions my-template/index.js
Expand Up @@ -3,39 +3,4 @@
*/
const { join } = require("path");

module.exports = {
defaultValues: {
transformer: (view) => {
const {
variantVars: { isInteractiveVariant },
} = view;
return {
...view,
requiresAtLeast: isInteractiveVariant ? "6.5" : "6.1",
};
},
version: "1.0.0",
namespace: "developer-blog",
description:
"A plugin created by the create-block tool using a custom external project template.",
render: "file:./render.php",
customPackageJSON: {
prettier: "@wordpress/prettier-config",
},
},
variants: {
dynamic: {},
interactive: {
viewScriptModule: "file:./view.js",
customScripts: {
build: "wp-scripts build --experimental-modules",
start: "wp-scripts start --experimental-modules",
},
supports: {
interactive: true,
},
},
},
pluginTemplatesPath: join(__dirname, "files/plugin"),
blockTemplatesPath: join(__dirname, "files/block"),
};
module.exports = {};

0 comments on commit 1b117e0

Please sign in to comment.