-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtangible.config.js
More file actions
105 lines (101 loc) · 2.45 KB
/
tangible.config.js
File metadata and controls
105 lines (101 loc) · 2.45 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import { visualizer } from 'rollup-plugin-visualizer'
export default {
build: [
/**
* Script: Common for all contexts
*/
{
src: 'assets/src/global.ts',
dest: 'assets/build/index.min.js',
react: 'wp',
rollupPlugins: [
visualizer({
filename: '.rollup-plugin-visualizer.html',
})
],
},
/**
* Style: One stylesheet per context
*/
{
src: 'assets/src/contexts/default/index.scss',
dest: 'assets/build/default/index.min.css'
},
{
src: 'assets/src/contexts/wp/index.scss',
dest: 'assets/build/wp/index.min.css'
},
{
src: 'assets/src/contexts/elementor/index.scss',
dest: 'assets/build/elementor/index.min.css'
},
{
src: 'assets/src/contexts/beaver-builder/index.scss',
dest: 'assets/build/beaver-builder/index.min.css'
},
/**
* Example
*/
{
src: 'assets/src/example/index.ts',
dest: 'assets/build/example.min.js',
react: 'wp',
},
{
src: 'assets/src/example/index.scss',
dest: 'assets/build/example.min.css',
},
],
archive: {
root: 'tangible-fields',
src: [
'*.php',
'assets/**',
'dynamic-values/**',
'elements/**',
'example/**',
'fields/**',
'vendor/tangible/**',
'readme.txt'
],
dest: 'publish/tangible-fields.zip',
exclude: [
'assets/src',
'**/tests',
'**/*.scss',
'**/*.jsx',
'**/*.ts',
'**/*.tsx'
],
},
/**
* Dependencies for production are installed in `vendor/tangible`, which is included
* in the published zip package. Those for development are in `tangible-dev`, which
* is excluded from the archive.
*
* In the file `.wp-env.json`, these folders are mounted to the virtual file system
* for local development and testing.
*/
install: [
{
git: 'git@github.com:tangibleinc/framework',
dest: 'vendor/tangible/framework',
branch: 'main',
},
{
git: 'git@github.com:tangibleinc/updater',
dest: 'vendor/tangible/updater',
branch: 'main',
},
],
installDev: [
{
zip: 'https://downloads.wordpress.org/plugin/beaver-builder-lite-version.latest-stable.zip',
dest: 'vendor/tangible-dev/beaver-builder-lite-version'
},
{
zip: 'https://downloads.wordpress.org/plugin/elementor.latest-stable.zip',
dest: 'vendor/tangible-dev/elementor'
},
]
}