-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwpackio.project.js
62 lines (61 loc) · 1.22 KB
/
wpackio.project.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const pkg = require('./package.json');
module.exports = {
appName: 'everyAction',
type: 'plugin',
slug: 'every-action',
bannerConfig: {
name: 'every-action',
author: 'Tiny Pixel Collective, Kelly Mears',
license: 'MIT',
link: 'https://tinypixel.io/every-action',
version: pkg.version,
copyrightText: 'This software is released under the MIT license. © 2018 Tiny Pixel Colletive, LLC.',
credit: true,
},
files: [
{
name: 'blocks',
entry: {
editor: ['./src/blocks/editor.js'],
public: ['./src/blocks/public.js']
},
webpackConfig: undefined,
},
],
outputPath: 'scripts',
hasReact: true,
hasSass: true,
hasFlow: false,
externals: {
jquery: 'jQuery',
},
alias: undefined,
errorOverlay: true,
optimizeSplitChunks: true,
watch: './inc|includes/**/*.php|./src/**/*.js',
jsBabelOverride: defaults => ({
...defaults,
plugins: ['react-hot-loader/babel',
[
"transform-react-jsx",
{
"pragma": "wp.element.createElement"
}
]
],
}),
packageFiles: [
'inc/**',
'vendor/**',
'scripts/**',
'*.php',
'*.md',
'readme.txt',
'languages/**',
'layouts/**',
'LICENSE',
'*.css',
],
// Path to package directory, relative to the root
packageDirPath: 'package',
};