Skip to content

Commit d892455

Browse files
authored
Merge pull request #1209 from vektor-inc/fix/vk-compo/composer
VK Compo を Composer から取得
2 parents bc074a4 + a6ac5cd commit d892455

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+183
-4811
lines changed

.github/workflows/build_check.yml

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,11 @@
1-
name: Build Check
1+
name: PHP Unit Test
22

33
on:
44
pull_request:
55
branches:
66
- master
77
- develop
88
jobs:
9-
buid_check:
10-
name: build test
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
15-
with:
16-
node-version: 20.x
17-
18-
- run: cp _g2/assets/js/lightning.min.js lightning.min.js.before
19-
- run: cp _g2/assets/css/common.css common.css.before
20-
- run: cp _g2/assets/css/common_editor.css common_editor.css.before
21-
- run: cp _g2/assets/css/wp-embed.css wp-embed.css.before
22-
23-
- run: cp _g2/library/bootstrap-4/css/bootstrap.css bootstrap4.css.before
24-
- run: cp _g2/library/bootstrap-3/css/bootstrap.css bootstrap3.css.before
25-
26-
- run: cp _g2/design-skin/origin/css/style.css origin.style.css.before
27-
- run: cp _g2/design-skin/origin/css/editor.css origin.editor.css.before
28-
29-
- run: cp _g2/design-skin/origin2/css/style.css origin2.style.css.before
30-
- run: cp _g2/design-skin/origin2/css/editor.css origin2.editor.css.before
31-
32-
- run: cp _g2/plugin-support/woocommerce/css/woo.css woo.css.before
33-
34-
- run: npm install -D
35-
36-
# js forget compile check
37-
- name: build Javascript
38-
run: npm run build:script
39-
- run: diff _g2/assets/js/lightning.min.js lightning.min.js.before
40-
41-
# common css forget compile check
42-
- name: build Common StyleSheet
43-
run: npx gulp sass
44-
- run: diff _g2/assets/css/common.css common.css.before
45-
- run: diff _g2/assets/css/common_editor.css common_editor.css.before
46-
- run: diff _g2/assets/css/wp-embed.css wp-embed.css.before
47-
- run: diff _g2/library/bootstrap-4/css/bootstrap.css bootstrap4.css.before
48-
- run: diff _g2/library/bootstrap-3/css/bootstrap.css bootstrap3.css.before
49-
- run: diff _g2/design-skin/origin/css/style.css origin.style.css.before
50-
- run: diff _g2/design-skin/origin/css/editor.css origin.editor.css.before
51-
- run: diff _g2/design-skin/origin2/css/style.css origin2.style.css.before
52-
- run: diff _g2/design-skin/origin2/css/editor.css origin2.editor.css.before
53-
- run: diff _g2/plugin-support/woocommerce/css/woo.css woo.css.before
54-
559
php_unit:
5610
name: php unittest
5711
runs-on: ubuntu-latest
@@ -84,6 +38,10 @@ jobs:
8438
php-version: ${{ matrix.php }}
8539
- name: install npm scripts
8640
run: npm install
41+
- name: install Composer dependencies
42+
run: composer install
43+
- name: Build
44+
run: npm run build
8745
- name: wp-env start
8846
run: ./node_modules/@wordpress/env/bin/wp-env start
8947
- name: install composer

.github/workflows/github_release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 20.x
19+
- name: Install NPM Scripts
20+
run: npm install
21+
- name: install Composer dependencies
22+
run: composer install
23+
- name: Build
24+
run: npm run build
1625
- run: bash bin/dist
1726
- run: echo "DIST_VERSION=$(echo ${{ github.ref }} | sed -E 's/^refs\/tags\/v?(.*)$/\1/')" >> $GITHUB_ENV
1827
- run: test -e dist/${{ env.dist_name }}.zip

_g2/assets/_scss/_vk_compo_overwrite.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@charset "utf-8";
22
@import "../../design-skin/foundation/_scss/variables";
3+
@import "../../../vendor/vektor-inc/vk-component/src/assets/scss/variables.scss";
34

45
// メインセクション直下の投稿リストで1カラムの時だけ文字を大きくする
56
.mainSection > .vk_posts,

_g2/assets/_scss/common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "variables";
33
@import "../../inc/vk-mobile-nav/package/_scss/vk-mobile-nav-bright.scss";
44
// VK Components is no using image that using sass is no probrem.
5-
@import "../../inc/vk-components/package/_scss/vk-components.scss";
5+
@import "../../../vendor/vektor-inc/vk-component/src/assets/scss/vk-components.scss";
66
@import "block/block";
77
@import "vk_compo_overwrite";
88
@import "veu_overwrite";

_g2/assets/_scss/common_editor.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@charset "utf-8";
22
@import "variables";
3-
@import "../../inc/vk-components/package/_scss/vk-components.scss";
3+
// VK Components is no using image that using sass is no probrem.
4+
@import "../../../vendor/vektor-inc/vk-component/src/assets/scss/vk-components.scss";
45
@import "block/block";
56
@import "block/block_editor";
67
@import "block/block_editor_width";

_g2/assets/css/common.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_g2/assets/css/common_editor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_g2/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function lightning_theme_setup() {
155155
/*-------------------------------------------*/
156156
require __DIR__ . '/inc/package-manager.php';
157157
require __DIR__ . '/inc/term-color/term-color-config.php';
158-
require __DIR__ . '/inc/vk-components/vk-components-config.php';
158+
require __DIR__ . '/inc/vk-component/config.php';
159159
require __DIR__ . '/inc/template-redirect.php';
160160
require __DIR__ . '/inc/layout-controller/layout-controller.php';
161161
require __DIR__ . '/inc/vk-footer-customize/vk-footer-customize-config.php';

_g2/inc/vk-component/config.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* VK Component Config
4+
*/
5+
use VektorInc\VK_Component\VK_Component_Button;
6+
use VektorInc\VK_Component\VK_Component_Mini_Contents;
7+
use VektorInc\VK_Component\VK_Component_Posts;
8+
9+
VK_Component_Button::init();
10+
VK_Component_Mini_Contents::init();
11+
VK_Component_Posts::init();

0 commit comments

Comments
 (0)