Skip to content
Snippets Groups Projects
Commit 9f4b2465 authored by Erick Hitter's avatar Erick Hitter
Browse files

Scaffold build process using wp-scripts

parent be659782
No related branches found
No related tags found
1 merge request!14Add native block-editor support
......@@ -8,6 +8,7 @@
.travis.yml
.DS_Store
Thumbs.db
assets/src/*
behat.yml
bitbucket-pipelines.yml
bin
......@@ -34,3 +35,4 @@ node_modules
*.sql
*.tar.gz
*.zip
webpack.config.js
......@@ -8,6 +8,7 @@
/.travis.yml export-ignore
/.DS_Store export-ignore
/Thumbs.db export-ignore
/assets/src export-ignore
/behat.yml export-ignore
/bitbucket-pipelines.yml export-ignore
/bin export-ignore
......@@ -31,6 +32,7 @@
/tests export-ignore
/vendor export-ignore
/node_modules export-ignore
/webpack.config.js export-ignore
/*.sql export-ignore
/*.tar.gz export-ignore
/*.zip export-ignore
<?php return array('dependencies' => array(), 'version' => '31d6cfe0d16ae931b73c');
import './js/index';
This diff is collapsed.
{
"name": "external-permalinks-redux",
"version": "0.1.0",
"description": "Allows you to point WordPress objects (posts, pages, custom post types) to a URL of your choosing.",
"main": "Gruntfile.js",
"author": "Erick Hitter",
"devDependencies": {
"@wordpress/scripts": "^23.2.0",
"grunt": "^1.5.3",
"grunt-wp-i18n": "^1.0.3",
"grunt-wp-readme-to-markdown": "^2.1.0"
},
"scripts": {
"build": "wp-scripts build",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format": "wp-scripts format",
"grunt": "grunt",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:md:docs": "wp-scripts lint-md-docs",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"start": "wp-scripts start",
"test:e2e": "wp-scripts test-e2e",
"test:unit": "wp-scripts test-unit-js"
}
}
const config = require( './node_modules/@wordpress/scripts/config/webpack.config' );
const { resolve } = require( 'path' );
config.entry = {
index: './assets/src/index.js',
};
config.output.path = resolve( process.cwd(), 'assets/build' );
module.exports = config;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment