Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
4208f05
FIX: Remove files 💯
Jan 12, 2018
c7f1ccc
NEW: First Iteration 💯
Jan 12, 2018
9e86e67
:bug: FIX: blockNamePHPUpper usage
Jan 13, 2018
c7e68cc
:package: NEW: Lerna is here
Jan 13, 2018
916aa63
:ok_hand: IMPROVE: Scripts
Jan 13, 2018
5a750ef
:package: NEW: Dev Utilities
Jan 13, 2018
539d3eb
:ok_hand: IMPROVE: Architechture
Jan 13, 2018
b490602
:package: NEW: CGB Internal
Jan 13, 2018
9957587
:ok_hand: IMPROVE: dotFiles
Jan 13, 2018
f571ff7
:ok_hand: IMPROVE: Lerna Formatting
Jan 13, 2018
ab37f68
:package: NEW: devDep Lerna
Jan 13, 2018
5fd5179
:package: NEW: Lerna bootstrap
Jan 13, 2018
8bfa173
:bug: FIX: Versions
Jan 13, 2018
d6ab6df
:bug: FIX: Task names
Jan 13, 2018
575304b
:bug: FIX: Publish routine
Jan 13, 2018
cf01c2a
:bug: FIX: Version
Jan 13, 2018
f9cbcf6
Publish
Jan 13, 2018
7832389
:package: NEW: Add ReadMe
Jan 13, 2018
d9693b3
:bug: FIX: cgb-scripts version
Jan 13, 2018
07c7951
:ok_hand: IMPROVE: Better publish message
Jan 13, 2018
f0c3c92
:bug: FIX: Deps
Jan 13, 2018
3a9d228
🚀 RELEASE: New version → %s
Jan 13, 2018
6cce689
:ok_hand: IMPROVE: update cgb-scripts
Jan 13, 2018
8fc418a
:ok_hand: IMPROVE: Major UI Overhaul
Jan 13, 2018
c76abb7
🚀 RELEASE: New version → %s
Jan 13, 2018
8a00620
:ok_hand: IMPROVE: Update cgb-scripts
Jan 13, 2018
8b7e374
:package: NEW: Babel Preset for CGB
Jan 13, 2018
dd699af
:ok_hand: IMPROVE: Add babel-preset-cgb
Jan 13, 2018
4aef1b3
:bug: FIX: first version
Jan 13, 2018
d5c54dd
:bug: FIX: NPM Scripts
Jan 13, 2018
cca7468
🚀 RELEASE: New version → %s
Jan 13, 2018
842c52a
:bug: FIX: Redorder
Jan 13, 2018
f1e06a7
:package: NEW: Script updated for lerna
Jan 13, 2018
b351308
:bug: FIX: Remove build
Jan 13, 2018
970d123
:bug: FIX: Syntax
Jan 13, 2018
7efa957
:ok_hand: IMPROVE: Format
Jan 13, 2018
b6a156e
🚀 RELEASE: New version → %s
Jan 13, 2018
885e942
:ok_hand: IMPROVE: Update cgb-scripts
Jan 13, 2018
50248fb
👌 IMPROVE: Lerna to use Yarn and Workspaces
Jan 13, 2018
6ad5b5b
👌 IMPROVE: Better .gitignore
Jan 13, 2018
12b06c9
👌 IMPROVE: No argument handling
Jan 13, 2018
4a33fcf
📦 NEW: Private
Jan 13, 2018
83f4afc
🐛 FIX: path no more needed
Jan 13, 2018
f371303
📦 NEW: create-guten-block pkg
Jan 13, 2018
10cd767
📦 NEW: Remove dep
Jan 13, 2018
140a154
🐛 FIX: cgb task
Jan 13, 2018
d81ae9e
🐛 FIX: Typo
Jan 13, 2018
e76287a
📖 DOC: Better GitHub Docs
Jan 13, 2018
d81e359
🤔 TODO: Allow custom scripts
Jan 13, 2018
fa2c6a1
👌 IMPROVE: Private monorepo
Jan 13, 2018
be5904a
📖 DOC: Add docs
Jan 13, 2018
3721018
🐛 FIX: Remove soon
Jan 13, 2018
f4dd3a7
👌 IMPROVE: Scripts for yarn
Jan 13, 2018
929bde5
👌 IMPROVE: Always slice the arguments.
Jan 13, 2018
8604ae7
📖 DOC: Improvements 💯
Jan 13, 2018
0120785
🐛 FIX: No need to slice.
Jan 13, 2018
3c01ad1
🐛 FIX: Lingo
Jan 13, 2018
308e4ce
🐛 FIX: Publish Script
Jan 13, 2018
14b0667
🚀 RELEASE: New version %s
Jan 13, 2018
abc8962
🐛 FIX: Stray del
Jan 13, 2018
39b88fa
🚀 RELEASE: New version %s
Jan 13, 2018
13bf5a1
📖 DOC: Add
Jan 13, 2018
db2000c
🚀 RELEASE: New version %s
Jan 13, 2018
b43d6f0
🚀 RELEASE: New version %s
Jan 13, 2018
a7e85d1
👌 IMPROVE: Instal cgb-scripts later
Jan 13, 2018
fa84775
🚀 RELEASE: New version %s
Jan 13, 2018
3cb74a3
🐛 FIX: Release msg
Jan 13, 2018
054fc06
📦 NEW: Versions
Jan 13, 2018
580f8fe
👌 IMPROVE: Yarn
Jan 13, 2018
db17309
🐛 FIX: Versions
Jan 13, 2018
a4081de
🐛 FIX: Versions
Jan 13, 2018
d26e2d8
🐛 FIX: Rm Yarn lock
Jan 13, 2018
787b372
🐛 FIX: Better yarn lock
Jan 13, 2018
60d755e
👌 IMPROVE: Lerna ignore
Jan 13, 2018
fc829e0
🐛 FIX: Lerna
Jan 13, 2018
7c1c72b
🐛 FIX: Lerna JSON del comment
Jan 13, 2018
8e0f5ee
🚀 RELEASE
Jan 13, 2018
9995b12
🐛 FIX: DevDeps are Deps
Jan 13, 2018
7864957
🚀 RELEASE
Jan 13, 2018
8199dd1
🐛 FIX: cgb-scripts deps
Jan 13, 2018
b9bc90b
📦 NEW: Version
Jan 13, 2018
97dead3
🚀 RELEASE
Jan 13, 2018
f729dea
👌 IMPROVE: Better docs
Jan 13, 2018
d874931
📦 NEW: Build script
Jan 14, 2018
8754782
👌 IMPROVE: yarn
Jan 14, 2018
50eb885
🚀 RELEASE
Jan 14, 2018
6cbe46e
👌 IMPROVE: Publish Script
Jan 14, 2018
754af18
👌 IMPROVE: No block on existing dir
Jan 14, 2018
fadfb6f
👌 IMPROVE: Better Lingo
Jan 14, 2018
ad0a2cb
🐛 FIX: Uncomment the commands
Jan 14, 2018
fd9c56e
👌 IMPROVE: Better Lingo
Jan 14, 2018
ccd2147
👌 IMPROVE: Path resolution
Jan 14, 2018
bde1ead
🚀 RELEASE
Jan 14, 2018
1e22ae8
🐛 FIX: Path resolution
Jan 14, 2018
2f1c5e5
🚀 RELEASE
Jan 14, 2018
87e3145
📖 DOC: Add todo
Jan 14, 2018
349836f
📖 DOC: Better guide
Jan 14, 2018
4784eaa
🐛 FIX: Array syntax
Jan 14, 2018
8733505
📦 NEW: Build Script
Jan 14, 2018
cf14820
🚀 RELEASE
Jan 14, 2018
7594c42
🚀 RELEASE
Jan 14, 2018
ce4e3ea
🐛 FIX: Spacing
Jan 14, 2018
9d95a0b
📦 NEW: Eject Script
Jan 14, 2018
12734fd
👌 IMPROVE: Yarn
Jan 14, 2018
0f51380
🚀 RELEASE
Jan 14, 2018
cab5f31
🐛 FIX: Eject code removal
Jan 14, 2018
6ef941b
📦 NEW: Lerna Script
Jan 14, 2018
3d02137
🚀 RELEASE
Jan 14, 2018
f0f1ff2
📖 DOC: Publish workflow caveats
Jan 14, 2018
cfba6e6
📦 NEW: Eject Script PR #1
Jan 14, 2018
f20c052
🐛 FIX: Eject folder remove
Jan 14, 2018
4b485ef
📖 DOC: Better inline docs and interaction
Jan 14, 2018
4084947
📦 NEW: Update Notifier
Jan 14, 2018
e472f26
🚀 RELEASE
Jan 14, 2018
855911d
🐛 FIX: Path
Jan 14, 2018
1e9d9a9
🚀 RELEASE
Jan 14, 2018
45d3776
👌 IMPROVE: UI
Jan 14, 2018
88fac60
🚀 RELEASE
Jan 14, 2018
5e23d18
🐛 FIX: Update Notifier
Jan 14, 2018
6e29f76
🚀 RELEASE
Jan 14, 2018
0681934
🐛 FIX: Update Notifier
Jan 14, 2018
f76783c
🚀 RELEASE
Jan 14, 2018
976c3ff
📦 NEW: UI Docs
Jan 14, 2018
4181134
👌 IMPROVE: CGB no deps for cgb-scripts
Jan 14, 2018
a424efb
🚀 RELEASE
Jan 14, 2018
1176f86
🐛 FIX: Custom package.json creation
Jan 14, 2018
5ab1803
🚀 RELEASE
Jan 14, 2018
0cd77fe
🐛 FIX: Del dummy file
Jan 15, 2018
01d4e6a
👌 IMPROVE: Major overhaul — Remove cgb-scripts deps
Jan 15, 2018
23c6708
🐛 FIX: Remove the build step
Jan 15, 2018
9fbf0f5
👌 IMPROVE: Spacing
Jan 15, 2018
753517b
🐛 FIX: Stale pkgs
Jan 15, 2018
d8892f5
🚀 RELEASE
Jan 15, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/*.min.js
**/node_modules/**
**/vendor/**
**/block.build.js
**/block.build.js
**/*.min.js
16 changes: 8 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,35 +92,35 @@
},
{
"selector": "ImportDeclaration[source.value=/^blocks$/]",
"message": "Use @wordpress/blocks as import path instead."
"message": "Use @wordpress/blocks as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^components$/]",
"message": "Use @wordpress/components as import path instead."
"message": "Use @wordpress/components as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^date$/]",
"message": "Use @wordpress/date as import path instead."
"message": "Use @wordpress/date as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^editor$/]",
"message": "Use @wordpress/editor as import path instead."
"message": "Use @wordpress/editor as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^element$/]",
"message": "Use @wordpress/element as import path instead."
"message": "Use @wordpress/element as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^i18n$/]",
"message": "Use @wordpress/i18n as import path instead."
"message": "Use @wordpress/i18n as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^data$/]",
"message": "Use @wordpress/data as import path instead."
"message": "Use @wordpress/data as the import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^utils$/]",
"message": "Use @wordpress/utils as import path instead."
"message": "Use @wordpress/utils as the import path instead."
},
{
"selector":
Expand Down
113 changes: 113 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!--
PLEASE READ THE FIRST SECTION :-)
-->

### Is this a bug report?

<!--
If you answered "Yes":

Please note that your issue will be fixed much faster if you spend about
half an hour preparing it, including the exact reproduction steps and a demo.

If you're in a hurry or don't feel confident, it's fine to report bugs with
less details, but this makes it less likely they'll get fixed soon.

In either case, please fill as many fields below as you can.

If you answered "No":

If this is a question or a discussion, you may delete this template and write in a free form.
Note that we don't provide help for webpack questions after ejecting.
You can find webpack docs at https://webpack.js.org/.
-->


(Write your answer here.)


### Environment

<!--
Please fill in all the relevant fields by running these commands in terminal.
-->

1. `node -v`:
2. `npm -v`:
3. `yarn --version` (if you use Yarn):
4. `npm ls cgb-scripts` (if you haven’t ejected):

Then, specify:

1. Operating system:
2. Browser and version (if relevant):


### Steps to Reproduce

<!--
How would you describe your issue to someone who doesn’t know you or your project?
Try to write a sequence of steps that anybody can repeat to see the issue.
-->

(Write your steps here:)

1.
2.
3.


### Expected Behavior

<!--
How did you expect the tool to behave?
It’s fine if you’re not sure your understanding is correct.
Just write down what you thought would happen.
-->

(Write what you thought would happen.)


### Actual Behavior

<!--
Did something go wrong?
Is something broken, or not behaving as you expected?
Please attach screenshots if possible! They are extremely helpful for diagnosing issues.
-->

(Write what happened. Please add screenshots!)


### Reproducible Demo

<!--
If you can, please share a project that reproduces the issue.
This is the single most effective way to get an issue fixed soon.

There are two ways to do it:

* Create a new app and try to reproduce the issue in it.
This is useful if you roughly know where the problem is, or can’t share the real code.

* Or, copy your app and remove things until you’re left with the minimal reproducible demo.
This is useful for finding the root cause. You may then optionally create a new project.

This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve
Once you’re done, push the project to GitHub and paste the link to it below:
-->

(Paste the link to an example project and exact instructions to reproduce the issue.)

<!--
What happens if you skip this step?

We will try to help you, but in many cases it is impossible because crucial
information is missing. In that case we'll tag an issue as having a low priority,
and eventually close it if there is no clear direction.

We still appreciate the report though, as eventually somebody else might
create a reproducible example for it.

Thanks for helping us help you!
-->
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!--
Thank you for sending a PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots! I mean that.

Happy contributing!
-->
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ assets/bower_components/*
# NPM #
##########
node_modules
**/node_modules/**

# Compiled Files and Build Dirs #
##########
/README.html
/build/

# PhpStrom Project Files #
.idea/
Expand All @@ -69,3 +69,17 @@ assets/sass/HTML
assets/sass/Rails
HTML
Rails

# CGB
.idea/
.vscode/
node_modules/
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
45 changes: 45 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# CONTRIBUTING to `create-guten-block`

First of all, I'd like to welcome you for thinking about contributing to this project. I'd rather explain the flow of this project and explain all that in a later release (as right now I am focused at an early release).

## 🔥 TL;DR

- Git Clone `git clone https://github.com/ahmadawais/create-guten-block/`
- `yarn`
- `yarn create-guten-block demo-block`
- `yarn updated`
-

## 📖 Details

- `git clone https://github.com/ahmadawais/create-guten-block/`
- `yarn` or `sudo yarn`
- Installs all the node packages and deps/devDeps in all the workspaces.
- `yarn create-guten-block demo-block`
- This will run `tasks/cgb.js` file
- Which will run `./packages/create-guten-block/index.js`
- Which in turns runs `./packages/create-guten-block/createGutenBlock.js`
- That runs these functions
- `createPluginDir()`
- `copyTemplateToPluginDir()`
- `npmInstallBuild`
- And your new block plugin called `demo-block` gets added at the root of this project.
- Now go to `cd demo-block`
- Run `npm start` or `yarn start`
- This will compile your code in `dist` and you're good to go.
- Run `yarn updated` to check which npm packages were updated
- Finally publish with 'yarn publishNPM' since yarn has some issues with publishing with lerna not sure why.
- Check caveats for publishing.

### 🤔 Caveats

- Some issue with yarn not being able to publish via lerna
- Use yarn with everything else but lerna
- To publish always run via `npm` this command `npm run lerna`


### 🐵 Other Stuff

- Use `// @remove-file-on-eject` to do just that.
- Use `// @remove-on-eject-begin` to do just that.
- Use `// @remove-on-eject-end` to do just that.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# Create-Guten-Block [WIP]

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)

Create WordPress Gutenberg blocks with no build configuration.

Create-Guten-Block has been tested to work on macOS, but must also work on Windows, and Linux.
Expand Down Expand Up @@ -32,11 +34,19 @@ Just create a project, and you’re good to go.

## Changelog

### VERSION 2.0.0

Work in progress.

### VERSION 1.0.0

- ⚡️ NEW: NPM Module `create-guten-block`
- ⚡️ NEW: Create WordPress plugin folder
- ⚡️ NEW: Building WordPress plugin files
- ⚡️ NEW: Build custom Gutenberg Block
- ⚡️ NEW: Basic Webpack configurations
- ⚡️ NEW: Dynamic WP Pluing and Gutenberg Block Names
- ⚡️ NEW: Dynamic WP Pluing and Gutenberg Block Names

### Docs Init

- Install globally `npm install --global create-guten-block` (Run the same command again to update).
29 changes: 0 additions & 29 deletions files/.babelrc

This file was deleted.

27 changes: 0 additions & 27 deletions files/README.md

This file was deleted.

Loading