Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

Commit 3a3b037

Browse files
committed
base theme commit
1 parent 6ccd6dd commit 3a3b037

File tree

10 files changed

+118
-0
lines changed

10 files changed

+118
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
.DS_Store
3+
node_modules
4+
vendor
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9+
<head>
10+
</head>
11+
<body>
12+
</body>
13+
</page>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9+
<head>
10+
</head>
11+
</page>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
/**
8+
* Try not to put things in this file.
9+
*/
10+
11+
// @codingStandardsIgnoreFile
12+
/** @var $block Magento\Pwa\Block\Bundle */
13+
?>
14+
<!doctype html>
15+
<html>
16+
<head>
17+
<?= /* @escapeNotVerified */ $headContent ?>
18+
<?= /* @escapeNotVerified */ $headAdditional ?>
19+
</head>
20+
<body>
21+
<div id="root"></div>
22+
<script src="/client.js"></script>
23+
</body>
24+
</html>

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
# pwa-base-theme
2+
23
Required base theme for Magento PWA Studio.
4+
5+
⚠️ **This theme contains no UI or presentational code.** Its role is to
6+
configure the Magento 2 layout system to render the Application Shell for a PWA,
7+
and to serve as a common base theme for Magento PWAs that helps Magento to
8+
identify PWA-enabled themes.
9+
10+
## Usage
11+
12+
Add this repository to the `repositories` section of `composer.json`, and then
13+
declare theme inheritance as usual.

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "magento/pwa-base-theme",
3+
"description": "Required base theme for Magento PWAs",
4+
"require": {
5+
"php": "~5.5.0|~5.6.0|~7.0.0",
6+
"magento/framework": "100.0.*"
7+
},
8+
"type": "magento2-theme",
9+
"version": "100.0.1",
10+
"license": [
11+
"OSL-3.0",
12+
"AFL-3.0"
13+
],
14+
"autoload": {
15+
"files": [
16+
"registration.php"
17+
]
18+
}
19+
}

etc/view.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
<?xml version="1.0" encoding="UTF-8"?>
3+
<!--
4+
/**
5+
* Copyright © Magento, Inc. All rights reserved.
6+
* See COPYING.txt for license details.
7+
*/
8+
-->
9+
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
10+
</view>

media/preview.jpg

38.4 KB
Loading

registration.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
use \Magento\Framework\Component\ComponentRegistrar;
8+
9+
ComponentRegistrar::register(
10+
ComponentRegistrar::THEME,
11+
'frontend/Magento/pwa_base',
12+
__DIR__
13+
);

theme.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
9+
<title>Magento PWA Base</title>
10+
<media>
11+
<preview_image>media/preview.jpg</preview_image>
12+
</media>
13+
</theme>

0 commit comments

Comments
 (0)