Skip to content

Commit a542f4d

Browse files
authored
feat: create Extensions.tsx file in apps/website (#4336)
1 parent 391a782 commit a542f4d

File tree

18 files changed

+176
-2
lines changed

18 files changed

+176
-2
lines changed

apps/website/src/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import React from "react";
22
import { Website } from "@webiny/app-website";
33
import "./App.scss";
4+
import { Extensions } from "./Extensions";
45

56
export const App = () => {
6-
return <Website />;
7+
return (
8+
<Website>
9+
<Extensions />
10+
</Website>
11+
);
712
};

apps/website/src/Extensions.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This file is automatically updated via scaffolding utilities.
2+
import React from "react";
3+
4+
export const Extensions = () => {
5+
return <></>;
6+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@webiny/project-utils").createBabelConfigForNode({ path: __dirname });
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const defaultConfig = require("../../.eslintrc");
2+
3+
module.exports = {
4+
...defaultConfig,
5+
rules: {
6+
...defaultConfig.rules,
7+
"import/dynamic-import-chunkname": 0
8+
}
9+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Webiny
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# @webiny/cli-plugin-extensions
2+
[![](https://img.shields.io/npm/dw/@webiny/cli-plugin-extensions.svg)](https://www.npmjs.com/package/@webiny/cli-plugin-extensions)
3+
[![](https://img.shields.io/npm/v/@webiny/cli-plugin-extensions.svg)](https://www.npmjs.com/package/@webiny/cli-plugin-extensions)
4+
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
5+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
6+
7+
## Install
8+
```
9+
npm install --save @webiny/cli-plugin-extensions
10+
```
11+
12+
Or if you prefer yarn:
13+
```
14+
yarn add @webiny/cli-plugin-extensions
15+
```
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "@webiny/cli-plugin-extensions",
3+
"version": "0.0.0",
4+
"description": "Scaffolds essential files for creating a new plugin.",
5+
"main": "index.js",
6+
"types": "index.d.ts",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/webiny/webiny-js.git",
10+
"directory": "packages/cli-plugin-extensions"
11+
},
12+
"author": {
13+
"name": "Webiny",
14+
"url": "https://www.webiny.com"
15+
},
16+
"license": "MIT",
17+
"bugs": {
18+
"url": "https://github.com/webiny/webiny-js/issues"
19+
},
20+
"homepage": "https://github.com/webiny/webiny-js#readme",
21+
"devDependencies": {
22+
"@babel/cli": "^7.23.9",
23+
"@babel/core": "^7.24.0",
24+
"@babel/preset-env": "^7.24.0",
25+
"@types/inquirer": "8.2.10",
26+
"@types/ncp": "^2.0.4",
27+
"@types/pluralize": "^0.0.29",
28+
"@types/validate-npm-package-name": "^3.0.3",
29+
"@webiny/cli": "0.0.0",
30+
"@webiny/project-utils": "0.0.0",
31+
"rimraf": "^5.0.5",
32+
"typescript": "4.9.5"
33+
},
34+
"scripts": {
35+
"build": "yarn webiny run build",
36+
"watch": "yarn webiny run watch"
37+
},
38+
"publishConfig": {
39+
"access": "public",
40+
"directory": "dist"
41+
},
42+
"adio": {
43+
"ignoreDirs": [
44+
"template"
45+
]
46+
}
47+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => [];
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "../../tsconfig.build.json",
3+
"include": ["src"],
4+
"references": [],
5+
"compilerOptions": {
6+
"rootDir": "./src",
7+
"outDir": "./dist",
8+
"declarationDir": "./dist",
9+
"paths": {
10+
"~/*": ["./src/*"],
11+
"~tests/*": ["./__tests__/*"]
12+
},
13+
"baseUrl": "."
14+
}
15+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src", "__tests__"],
4+
"references": [],
5+
"compilerOptions": {
6+
"rootDirs": ["./src", "./__tests__"],
7+
"outDir": "./dist",
8+
"declarationDir": "./dist",
9+
"paths": {},
10+
"baseUrl": "."
11+
}
12+
}

0 commit comments

Comments
 (0)