Skip to content

Commit a0926ff

Browse files
committed
feat: install the plugin into the playground
1 parent 520029a commit a0926ff

File tree

8 files changed

+899
-14
lines changed

8 files changed

+899
-14
lines changed

admin/src/pages/HomePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const HomePage = () => {
88

99
return (
1010
<Main>
11-
<h1>Welcome to {formatMessage({ id: getTranslation('plugin.name') })}</h1>
11+
<h1>Welcome to {formatMessage({ id: getTranslation('plugin.name'), defaultMessage: 'Boilerplate' })}</h1>
1212
</Main>
1313
);
1414
};

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
"watch:link": "strapi-plugin watch:link",
2929
"verify": "strapi-plugin verify",
3030
"test:ts:front": "tsc -p admin/tsconfig.json",
31-
"test:ts:back": "tsc -p server/tsconfig.json"
31+
"test:ts:back": "tsc -p server/tsconfig.json",
32+
"playground:install": "yarn playground:yalc-add-link && cd playground && yarn install",
33+
"playground:yalc-add": "cd playground && yalc add strapi-plugin-boilerplate",
34+
"playground:yalc-add-link": "cd playground && yalc add --link strapi-plugin-boilerplate",
35+
"playground:build": "cd playground && yarn build",
36+
"playground:develop": "cd playground && yarn develop",
37+
"playground:start": "cd playground && yarn start"
3238
},
3339
"dependencies": {
3440
"@strapi/design-system": "^2.0.0-rc.14",
@@ -58,7 +64,7 @@
5864
},
5965
"strapi": {
6066
"kind": "plugin",
61-
"name": "strapi-plugin-boilerplate",
67+
"name": "boilerplate",
6268
"displayName": "Boilerplate",
6369
"description": "A test-driven template for building reliable Strapi Plugins"
6470
},

playground/.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,11 @@ exports
128128
dist
129129
build
130130
.strapi-updater.json
131-
.strapi-cloud.json
131+
.strapi-cloud.json
132+
133+
############################
134+
# Yalc
135+
############################
136+
137+
.yalc
138+
yalc.lock

playground/config/plugins.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
export default () => ({});
1+
export default () => ({
2+
boilerplate: {
3+
enabled: true,
4+
config: {},
5+
},
6+
});

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"react": "^18.0.0",
1919
"react-dom": "^18.0.0",
2020
"react-router-dom": "^6.0.0",
21+
"strapi-plugin-boilerplate": "link:.yalc/strapi-plugin-boilerplate",
2122
"styled-components": "^6.0.0"
2223
},
2324
"devDependencies": {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
* The app doesn't have any components yet.
3+
*/

0 commit comments

Comments
 (0)