Skip to content

Commit

Permalink
#1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ddryo committed Sep 25, 2020
1 parent dc50e9b commit 992462b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bin/memo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# テーマのzip化

```
bash ./bin/zip.sh 1-0-0
```
21 changes: 21 additions & 0 deletions bin/zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

version=$1
version=${version//-/.}

# style.css のバージョン書き換え
# sed -i '' -e "s/Version: .*/Version: ${version}/g" style.css;

# readme.txt のバージョン書き換え
# sed -i '' -e "s/Stable tag: .*/Stable tag: ${version}/g" readme.txt;

#上の階層へ
cd ../

# 不要なファイルを除いてzip化
zip -r custom_css_for_fe.zip custom-css-for-fe -x "*/.*" "*/__*" "*bin*" "*node_modules*" "*vendor*" "*package.json" "*package-lock.json" "*composer.json" "*composer.lock" "*gulpfile.js" "*webpack.config.js" "*phpcs.xml"

# zipから不要なファイルを削除#設定ファイル系削除
# zip --delete arkhe.zip "arkhe/.*" "arkhe/README.md" "arkhe/phpcs.xml"

mv custom_css_for_fe.zip _versions/custom_css_for_fe-${1}.zip
2 changes: 1 addition & 1 deletion css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
/* ブロックエディターにのみ読み込ませたいCSS */

.block-editor .editor-styles-wrapper {
background-color: #fff !important;
background-color: #fff;
color: #333;
}
2 changes: 1 addition & 1 deletion custom_css_for_fe.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Custom CSS for Front & Editor
* Plugin URI: https://github.com/ddryo/Custom-CSS-for-Front-Editor
* Description: ブロックエディター用とフロント用のCSSを追加し、管理画面からも編集できるようになります。
* Version: 1.0
* Version: 1.0.0
* Author: 了
* Author URI: https://twitter.com/ddryo_loos
* License: GPL2 or later
Expand Down

0 comments on commit 992462b

Please sign in to comment.