wp-advads 1.0.10 → 1.0.11

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/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## 1.0.11 - 08.08.2023
5
+
6
+ Improve: Remove company questions
7
+ Update: README.md
8
+ Add: CAHNGELOG.md
9
+
10
+ ## 1.0.10 - 07.08.2023
11
+
12
+ Refactor: the whole pluign
13
+
14
+ ## 1.0.5 - 24.07.2023
15
+
16
+ Update: PHPCS file
17
+
18
+ ## 1.0.0 - 10.05.2023
19
+
20
+ Initial release
package/README.md CHANGED
@@ -0,0 +1,49 @@
1
+ # WordPress Scaffolding
2
+
3
+ [![NPM](https://img.shields.io/npm/v/wp-advads.svg)](https://www.npmjs.com/package/wp-advads) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
+
5
+ <p align="center">
6
+ <img src="https://img.icons8.com/nolan/256/wordpress.png"/>
7
+ </p>
8
+
9
+ ## 📃 Introduction
10
+
11
+ Quickly bootstrap your next awesome WordPress plugin with just one command!
12
+
13
+ ## 💾 Installation
14
+
15
+ ```js
16
+ npx wp-advads
17
+ ```
18
+
19
+ ## 🕹 Usage
20
+
21
+ ### Create plugin
22
+ Run `wp-advads make:plugin` command in your terminal and answer the questions and boom, it will auto-magically generate a WordPress plugin for you without stress!
23
+
24
+ ```js
25
+ npx wp-advads make:plugin
26
+ npx wp-advads make:plugin --folder=my-awesome-plugin
27
+ ```
28
+
29
+ ### Create files
30
+ Generate files within the plugin folder using the answer from creating plugin step.
31
+ ```js
32
+ npx wp-advads make:file --file="Dashboard"
33
+ npx wp-advads make:file --file="Admin\Report\Dashboard"
34
+ npx wp-advads make:file --file="Admin\Report\Dashboard" --singleton
35
+ ```
36
+
37
+ 1. This one generate a file named `class-dashboard.php` in `includes` folder with namespace `${rootNamespace}`.
38
+ 2. This one generate a file name `class-dashboard.php` in `includes/admin/report` folder with namespace `${rootNamespace}\Admin\Report`.
39
+ 3. This one generate a file name `class-dashboard.php` in `includes/admin/report` folder with namespace `${rootNamespace}\Admin\Report` and it will be a singleton class.
40
+
41
+ ### Create release
42
+ Create the release branch performing checks and tasks required for it.
43
+ ```js
44
+ npx wp-advads make:release
45
+ ```
46
+
47
+ ## 📖 Changelog
48
+
49
+ [See the changelog file](./CHANGELOG.md)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "wp-advads",
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "description": "Create a Advanced Ads wordPress plugin eco system.",
6
6
  "author": {
7
7
  "name": "Shakeeb Ahmed",
@@ -100,7 +100,19 @@ export default ( next ) => {
100
100
  inquirer.prompt( questions )
101
101
  .then( ( answers ) => {
102
102
  const date = new Date()
103
- answers.year = date.getFullYear()
103
+ answers = {
104
+ ...answers,
105
+ year: date.getFullYear(),
106
+ company: {
107
+ name: 'Advanced Ads',
108
+ url: 'https://wpadvancedads.com/',
109
+ },
110
+ author: {
111
+ name: 'Advanced Ads',
112
+ email: 'info@wpadvancedads.com',
113
+ url: 'https://wpadvancedads.com/',
114
+ }
115
+ }
104
116
 
105
117
  // Validation.
106
118
  if ( '' === answers.wp.textDomain ) {