wp-advads 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/setup/create-plugin.js +9 -1
- package/template/configs/gitignore +38 -0
- package/template/configs/webpack.mix.js +1 -1
- /package/template/configs/{.gitattributes → gitattributes} +0 -0
- /package/template/configs/{webpack.mix.dev.js → webpack.mix.local.js} +0 -0
package/package.json
CHANGED
|
@@ -92,6 +92,14 @@ class CreatePlugin {
|
|
|
92
92
|
this.template + '/configs',
|
|
93
93
|
this.folder
|
|
94
94
|
)
|
|
95
|
+
fs.renameSync(
|
|
96
|
+
this.folder + '/gitattributes',
|
|
97
|
+
this.folder + '/.gitattributes',
|
|
98
|
+
)
|
|
99
|
+
fs.renameSync(
|
|
100
|
+
this.folder + '/gitignore',
|
|
101
|
+
this.folder + '/.gitignore',
|
|
102
|
+
)
|
|
95
103
|
next()
|
|
96
104
|
}
|
|
97
105
|
|
|
@@ -111,7 +119,7 @@ class CreatePlugin {
|
|
|
111
119
|
this.folder + '/composer.json',
|
|
112
120
|
this.folder + '/package.json',
|
|
113
121
|
this.folder + '/webpack.mix.js',
|
|
114
|
-
this.folder + '/webpack.mix.
|
|
122
|
+
this.folder + '/webpack.mix.local.js',
|
|
115
123
|
]
|
|
116
124
|
|
|
117
125
|
eachSeries( configs, ( file, nextConfig ) => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Wordpress - ignore core, configuration, examples, uploads and logs.
|
|
2
|
+
# https://github.com/github/gitignore/blob/main/WordPress.gitignore
|
|
3
|
+
|
|
4
|
+
# Operating System files
|
|
5
|
+
.DS_Store
|
|
6
|
+
Thumbs.db
|
|
7
|
+
|
|
8
|
+
# IDE files
|
|
9
|
+
.vscode/*
|
|
10
|
+
project.xml
|
|
11
|
+
project.properties
|
|
12
|
+
.project
|
|
13
|
+
.settings*
|
|
14
|
+
*.sublime-project
|
|
15
|
+
*.sublime-workspace
|
|
16
|
+
.sublimelinterrc
|
|
17
|
+
|
|
18
|
+
# Caches
|
|
19
|
+
.eslintcache
|
|
20
|
+
.stylelintcache
|
|
21
|
+
|
|
22
|
+
# Environment files
|
|
23
|
+
wp-cli.local.yml
|
|
24
|
+
.wp-env.override.json
|
|
25
|
+
npm-debug.log
|
|
26
|
+
.pnpm-debug.log
|
|
27
|
+
|
|
28
|
+
# Node Package Dependencies
|
|
29
|
+
node_modules/
|
|
30
|
+
|
|
31
|
+
# Composer
|
|
32
|
+
vendor/
|
|
33
|
+
bin/composer/**/vendor/
|
|
34
|
+
|
|
35
|
+
# Support .gitkeep Files
|
|
36
|
+
!.gitkeep
|
|
37
|
+
webpack.mix.local.js
|
|
38
|
+
mix-manifest.json
|
|
File without changes
|
|
File without changes
|