Skip to content

Commit

Permalink
Refactor to use wp-scripts #4
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jul 28, 2021
1 parent abb742d commit 17b7b39
Show file tree
Hide file tree
Showing 20 changed files with 20,536 additions and 426 deletions.
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
34 changes: 29 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
node_modules
node_modules-renamed
package-lock.json
.idea/
.~lock*
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env

.phpunit.result.cache
56 changes: 56 additions & 0 deletions block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"apiVersion": 2,
"name": "oik-mp/magnetic-poetry",
"title": "Magnetic poetry",
"category": "formatting",
"icon": "editor-customchar",
"description": "Write magnetic poetry refrigerator messages",
"attributes": {
"content": {
"type": "string"
},
"textAlign": {
"type": "string"
},
"className": {
"type": "string"
},
"textColor": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"style": {
"type": "object"
},
"fontSize": {
"type": "string"
},
"gradient": {
"type": "string"
}
},
"example": {
},
"supports": {
"html": false,
"customClassName": true,
"className": true,
"color": {
"gradients": true,
"text": true,
"background": true,
"link": true
},
"typography": {
"fontSize": true,
"lineHeight": true
}
},
"keywords": [ "magnetic", "poetry", "oik", "verse" ],
"textdomain": "oik-magnetic-poetry",
"editorScript": "file:./build/index.js",
"editorStyle": "file:./build/index.css",
"style": "file:./build/style-index.css"
}
1 change: 0 additions & 1 deletion blocks/build/css/blocks.style.css

This file was deleted.

208 changes: 0 additions & 208 deletions blocks/build/js/editor.blocks.js

This file was deleted.

1 change: 1 addition & 0 deletions build/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => 'a7ef1c714ce135e43d25289680a09627');
Loading

0 comments on commit 17b7b39

Please sign in to comment.