-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from soup-bowl/beta
Ionic verison
- Loading branch information
Showing
71 changed files
with
7,063 additions
and
3,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: ["plugin:react/recommended", "eslint:recommended"], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
}, | ||
rules: { | ||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off", | ||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
version: "3.6" | ||
services: | ||
db: | ||
image: docker.io/library/mariadb:10.5.15 | ||
volumes: | ||
- db_persist:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: wordpress | ||
wp: | ||
depends_on: | ||
- db | ||
build: | ||
context: . | ||
volumes: | ||
- "wp_persist:/var/www/html" | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: db | ||
WORDPRESS_DB_USER: root | ||
WORDPRESS_DB_PASSWORD: password | ||
WORDPRESS_DEBUG: 1 | ||
WORDPRESS_CONFIG_EXTRA: | | ||
define( 'WP_ALLOW_MULTISITE', true ); | ||
db: | ||
image: docker.io/library/mariadb:10.5.15 | ||
volumes: | ||
- db_persist:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: password | ||
MYSQL_DATABASE: wordpress | ||
wp: | ||
depends_on: | ||
- db | ||
build: | ||
context: . | ||
volumes: | ||
- "wp_persist:/var/www/html" | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: db | ||
WORDPRESS_DB_USER: root | ||
WORDPRESS_DB_PASSWORD: password | ||
WORDPRESS_DEBUG: 1 | ||
WORDPRESS_CONFIG_EXTRA: | | ||
define( 'WP_ALLOW_MULTISITE', true ); | ||
volumes: | ||
wp_persist: | ||
db_persist: | ||
wp_persist: | ||
db_persist: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
tasks: | ||
- name: WordPress Mock Site | ||
before: | | ||
docker-compose -f .github/docker-compose.yml build | ||
command: | | ||
docker-compose -f .github/docker-compose.yml up -d | ||
echo "Pausing for MySQL to complete..." && sleep 30 | ||
docker-compose -f .github/docker-compose.yml exec wp wp core install --url="$(gp url 8080)" --title="Dummy Site" \ | ||
--admin_user="admin" --admin_password="password" --admin_email="[email protected]" --allow-root | ||
docker-compose -f .github/docker-compose.yml exec wp wp rewrite structure '/%year%/%monthnum%/%postname%' \ | ||
--allow-root | ||
docker-compose -f .github/docker-compose.yml logs -f | ||
- name: WordPress App | ||
before: | | ||
npm install | ||
command: | | ||
echo "PUBLIC_URL=$(gp url 3000)" > .env.development.local | ||
echo "REACT_APP_VERSION=\$npm_package_version" >> .env.development.local | ||
cp .env.development.local .env.production.local | ||
npm start | ||
- name: WordPress Mock Site | ||
before: | | ||
docker-compose -f .github/docker-compose.yml build | ||
command: | | ||
docker-compose -f .github/docker-compose.yml up -d | ||
echo "Pausing for MySQL to complete..." && sleep 30 | ||
docker-compose -f .github/docker-compose.yml exec wp wp core install --url="$(gp url 8080)" --title="Dummy Site" \ | ||
--admin_user="admin" --admin_password="password" --admin_email="[email protected]" --allow-root | ||
docker-compose -f .github/docker-compose.yml exec wp wp rewrite structure '/%year%/%monthnum%/%postname%' \ | ||
--allow-root | ||
docker-compose -f .github/docker-compose.yml logs -f | ||
- name: WordPress App | ||
before: | | ||
npm i -g @ionic/cli | ||
npm ci | ||
command: | | ||
npm i -g @ionic/cli | ||
echo "PUBLIC_URL=$(gp url 3000)" > .env.development.local | ||
echo "REACT_APP_VERSION=\$npm_package_version" >> .env.development.local | ||
cp .env.development.local .env.production.local | ||
ionic serve --no-open | ||
ports: | ||
- name: Frontend | ||
port: 3000 | ||
description: React PWA app | ||
visibility: public | ||
onOpen: open-browser | ||
- name: Mock WordPress | ||
port: 8080 | ||
description: To run tests against. | ||
visibility: public | ||
onOpen: ignore | ||
- name: Frontend | ||
port: 8100 | ||
description: Ionic app | ||
visibility: public | ||
onOpen: open-browser | ||
- name: Mock WordPress | ||
port: 8080 | ||
description: To run tests against. | ||
visibility: public | ||
onOpen: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
"trailingComma": "es5", | ||
"printWidth": 120, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"semi": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["ionic.ionic"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { CapacitorConfig } from "@capacitor/cli" | ||
|
||
const config: CapacitorConfig = { | ||
appId: "io.ionic.starter", | ||
appName: "pressify2", | ||
webDir: "dist", | ||
} | ||
|
||
export default config |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "pressify2", | ||
"integrations": { | ||
"capacitor": {} | ||
}, | ||
"type": "react-vite" | ||
} |
Oops, something went wrong.