Skip to content

Commit

Permalink
chore(example): update plugin example
Browse files Browse the repository at this point in the history
Update docker file and readme.
  • Loading branch information
swashata committed Apr 14, 2019
1 parent b98c1b3 commit 9095bcf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions examples/plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ the following features.
b. Password: `root`
6. Activate `WPack.io Sample Plugin Development` plugin.
7. Check the homepage and check your browser's console.
8. Publish a page with a shortcode `[wpackio-reactapp]`.
9. Check the page content.
> It is not a requirement to use docker for `@wpackio/scripts`. It is just
> required for this example. You can very well spin up any local server you
Expand Down
10 changes: 5 additions & 5 deletions examples/plugin/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions examples/plugin/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ services:
DB_HOST: db # must match db service name below
DB_NAME: wordpress
DB_PASS: root # must match below
PLUGINS: >-
academic-bloggers-toolkit,
co-authors-plus,
[WP-API]https://github.com/WP-API/WP-API/archive/master.zip,
URL_REPLACE: localhost:8080
WP_DEBUG: 'true'
WP_DEBUG: 'false'
db:
image: mysql:5.7 # or mariadb:10
volumes:
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/src/app/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: black !important;
background-color: gainsboro !important;
}

/* CSS HMR */
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/src/ts/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable spaced-comment */
///<reference types="webpack-env" />

import { strRepeat } from './module';

console.log('Hello from typescript, I am gonna say foo 30 times');
console.log(strRepeat('foo', 10));
console.log(strRepeat('foo', 10));
console.log(strRepeat('foo', 10));
Expand Down

0 comments on commit 9095bcf

Please sign in to comment.