Skip to content

Commit b38c425

Browse files
committed
feat: Snapshot Commit.
1 parent c1698ab commit b38c425

Some content is hidden

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

67 files changed

+12770
-20390
lines changed

.babelrc

-11
This file was deleted.

.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
BROWSERSYNC_PROXY_URL=http://tofino.test
2-
THEME_PATH=/wp-content/themes/tofino
1+
VITE_ASSET_URL=http://tofino.test
2+
VITE_THEME_PATH=/wp-content/themes/tofino
33
DEPLOYMENT_PATH=
44
SSH_LOGIN=
55
DEPLOY=FALSE

.eslintrc.js

+5-26
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,11 @@
11
module.exports = {
2-
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
3-
env: {
4-
browser: true,
5-
commonjs: true,
6-
es6: true,
7-
jest: true,
8-
node: true,
9-
},
2+
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', 'prettier'],
103
globals: {
4+
browser: true,
115
tofinoJS: true,
126
},
13-
rules: {
14-
// 'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
15-
'jsx-a11y/href-no-hash': ['off'],
16-
'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
17-
'max-len': [
18-
'warn',
19-
{
20-
code: 100,
21-
tabWidth: 2,
22-
comments: 100,
23-
ignoreComments: false,
24-
ignoreTrailingComments: true,
25-
ignoreUrls: true,
26-
ignoreStrings: true,
27-
ignoreTemplateLiterals: true,
28-
ignoreRegExpLiterals: true,
29-
},
30-
],
7+
env: {
8+
node: true,
9+
es2021: true,
3110
},
3211
};

.git-ftp-ignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
.vscode
44
.editorconfig
55
.env
6+
.eslintrc.js
67
.git
78
.github
89
.gitignore
@@ -11,16 +12,14 @@ node_modules
1112
.git-ftp-include
1213
.gitattributes
1314
.gitignore
14-
.babelrc
1515
.stylelintrc.js
1616
.prettierrc.js
17-
.eslintrc.js
1817
.npmrc
19-
postcss.config.js
2018
composer.json
2119
composer.lock
2220
package.json
2321
package-lock.json
22+
postcss.config.js
2423
tailwind.config.js
25-
webpack.mix.js
24+
vite.config.js
2625
*.md

.github/workflows/dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
- name: Install NPM Dependencies
4242
run: npm install
4343

44-
- name: Build Dev Scripts
45-
run: npm run dev
44+
- name: Build Prod Scripts
45+
run: npm run prod
4646

4747
- name: Get .env Variables
4848
id: dotenv

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
!.git-ftp-ignore
1616
!.github
1717
!.npmrc
18+
!.prettierignore
1819

1920
# ignore node/grunt dependency directories
2021
node_modules/

___.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

archive.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php get_header(); ?>
22

33
<?php
4-
$slug = isset(get_queried_object()->slug) ? get_queried_object()->slug: null;
5-
$taxonomy = isset(get_queried_object()->taxonomy) ? get_queried_object()->taxonomy: null;
4+
$slug = isset(get_queried_object()->slug) ? get_queried_object()->slug : null;
5+
$taxonomy = isset(get_queried_object()->taxonomy) ? get_queried_object()->taxonomy : null;
66
$post_type = isset(get_queried_object()->name) ? get_queried_object()->name : null;
77

88
if (locate_template('templates/archive-' . $slug . '.php') != '') { // archive-{category-slug}
@@ -16,7 +16,7 @@
1616
} elseif ($post_type && (locate_template('templates/archive-' . $post_type . '.php') != '')) { // archive-{posttype}
1717
get_template_part('templates/archive', $post_type);
1818
} else {
19-
echo('<div class="error notice"><p>' . __('Error: Unable to locate an archive template. Did you create the file in /templates?.', 'tofino') . '</p></div>');
19+
echo ('<div class="error notice"><p>' . __('Error: Unable to locate an archive template. Did you create the file in /templates?.', 'tofino') . '</p></div>');
2020
} ?>
2121

2222
<?php get_footer(); ?>

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
],
1919
"keywords": ["WordPress", "theme", "tofino"],
2020
"require": {
21-
"php": ">=7.3.0",
21+
"php": ">=7.4.0",
2222
"composer/installers": "~v1.10.0",
23-
"mindkomm/theme-lib-mix": "^1.1"
23+
"idleberg/wordpress-vite-assets": "^0.5.0"
2424
},
2525
"autoload": {
2626
"psr-4": {

0 commit comments

Comments
 (0)