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
Branches
Tags
1 merge request!14Add native block-editor support
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
.travis.yml .travis.yml
.DS_Store .DS_Store
Thumbs.db Thumbs.db
assets/src/*
behat.yml behat.yml
bitbucket-pipelines.yml bitbucket-pipelines.yml
bin bin
...@@ -34,3 +35,4 @@ node_modules ...@@ -34,3 +35,4 @@ node_modules
*.sql *.sql
*.tar.gz *.tar.gz
*.zip *.zip
webpack.config.js
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
/.travis.yml export-ignore /.travis.yml export-ignore
/.DS_Store export-ignore /.DS_Store export-ignore
/Thumbs.db export-ignore /Thumbs.db export-ignore
/assets/src export-ignore
/behat.yml export-ignore /behat.yml export-ignore
/bitbucket-pipelines.yml export-ignore /bitbucket-pipelines.yml export-ignore
/bin export-ignore /bin export-ignore
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
/tests export-ignore /tests export-ignore
/vendor export-ignore /vendor export-ignore
/node_modules export-ignore /node_modules export-ignore
/webpack.config.js export-ignore
/*.sql export-ignore /*.sql export-ignore
/*.tar.gz export-ignore /*.tar.gz export-ignore
/*.zip export-ignore /*.zip export-ignore
<?php return array('dependencies' => array(), 'version' => '31d6cfe0d16ae931b73c');
import './js/index';
Source diff could not be displayed: it is too large. Options to address this: view the blob.
{ {
"name": "external-permalinks-redux", "name": "external-permalinks-redux",
"version": "0.1.0", "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", "main": "Gruntfile.js",
"author": "Erick Hitter", "author": "Erick Hitter",
"devDependencies": { "devDependencies": {
"@wordpress/scripts": "^23.2.0",
"grunt": "^1.5.3", "grunt": "^1.5.3",
"grunt-wp-i18n": "^1.0.3", "grunt-wp-i18n": "^1.0.3",
"grunt-wp-readme-to-markdown": "^2.1.0" "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.
Please register or to comment