Skip to content

Commit

Permalink
Merge branch 'release/2.0.3' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 29, 2019
2 parents 12a4501 + 03b738c commit c68de2c
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 22 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENVIRONMENT="dev"
IS_SYSTEM_LIVE=1
RUN_QUEUE_AUTOMATICALLY=1
SECURITY_KEY=""
SITE_NAME=""

# Craft database settings
DB_DRIVER="mysql"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# CRAFT ENVIRONMENT
.env*
!.env.example

# COMPOSER
/vendor
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# nystudio107/craft Change Log

## 2.0.3 - 2018.08.29
### Added
* Added a default `config/project.yaml` for base setup

### Changed
* Updated `.gitignore` and `.env.example`
* Ignore CP and `.php` for Service Worker runtime caching
* Remove `siteUrl`, since it is now set via Project Config

## 2.0.2 - 2018.08.17
### Changed
* Added `maxUploadFileSize` to `general.php`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/craft",
"description": "nystudio107 Craft 3.2 CMS scaffolding project",
"version": "2.0.2",
"version": "2.0.3",
"keywords": [
"craft",
"cms",
Expand Down
1 change: 0 additions & 1 deletion config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
'resourceBasePath' => getenv('WEB_ROOT_PATH').'/cpresources',
'runQueueAutomatically' => (bool)getenv('RUN_QUEUE_AUTOMATICALLY'),
'securityKey' => getenv('SECURITY_KEY'),
'siteUrl' => getenv('SITE_URL'),
// Craft config settings from constants
'cacheDuration' => false,
'defaultSearchTermOptions' => [
Expand Down
182 changes: 182 additions & 0 deletions config/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
dateModified: 1566064218
email:
fromEmail: [email protected]
fromName: $SITE_NAME
transportType: craft\mail\transportadapters\Sendmail
fieldGroups:
d08a0d16-0e00-49e6-9cd4-465fa2d65d7d:
name: Errors
efc44cb8-5a29-4f4b-8977-cf6ee112e601:
name: Common
fields:
a5cb77be-c4d9-4d3e-88fb-d5384ca13941:
name: 'Error Image'
handle: errorImage
instructions: ''
searchable: true
translationMethod: site
translationKeyFormat: null
type: craft\fields\Assets
settings:
useSingleFolder: ''
defaultUploadLocationSource: 'volume:5c642d7e-b16b-4836-9575-668d75d242e5'
defaultUploadLocationSubpath: ''
singleUploadLocationSource: 'volume:5c642d7e-b16b-4836-9575-668d75d242e5'
singleUploadLocationSubpath: ''
restrictFiles: '1'
allowedKinds:
- image
sources:
- 'volume:5c642d7e-b16b-4836-9575-668d75d242e5'
source: null
targetSiteId: null
viewMode: large
limit: '1'
selectionLabel: ''
localizeRelations: false
validateRelatedElements: ''
contentColumnType: string
fieldGroup: d08a0d16-0e00-49e6-9cd4-465fa2d65d7d
b8ba7115-3804-4c06-8a96-501963d1fc5c:
name: 'Error Headline'
handle: errorHeadline
instructions: ''
searchable: true
translationMethod: none
translationKeyFormat: null
type: craft\fields\PlainText
settings:
placeholder: ''
code: ''
multiline: ''
initialRows: '4'
charLimit: ''
columnType: text
contentColumnType: text
fieldGroup: d08a0d16-0e00-49e6-9cd4-465fa2d65d7d
e6d658aa-c335-4f15-bbcd-59fe05d9e913:
name: 'Error Text'
handle: errorText
instructions: ''
searchable: true
translationMethod: none
translationKeyFormat: null
type: craft\fields\PlainText
settings:
placeholder: ''
code: ''
multiline: '1'
initialRows: '4'
charLimit: ''
columnType: text
contentColumnType: text
fieldGroup: d08a0d16-0e00-49e6-9cd4-465fa2d65d7d
plugins:
minify:
edition: standard
enabled: true
schemaVersion: 1.0.0
fastcgi-cache-bust:
edition: standard
enabled: true
schemaVersion: 1.0.0
image-optimize:
edition: standard
enabled: true
schemaVersion: 1.0.0
retour:
edition: standard
enabled: true
schemaVersion: 3.0.7
seomatic:
edition: standard
enabled: true
schemaVersion: 3.0.8
twigpack:
edition: standard
enabled: true
schemaVersion: 1.0.0
typogrify:
edition: standard
enabled: true
schemaVersion: 1.0.0
webperf:
edition: standard
enabled: true
schemaVersion: 1.0.1
sections:
54e60257-f31a-44aa-960e-bbd364197e28:
name: Homepage
handle: homepage
type: single
enableVersioning: false
propagationMethod: all
siteSettings:
66514b58-f1c7-480d-b3d5-aca0b7d78f45:
enabledByDefault: true
hasUrls: true
uriFormat: __home__
template: index
entryTypes:
fb3a8f31-d1cc-4c13-903b-a501f7e51f54:
name: Homepage
handle: homepage
hasTitleField: false
titleLabel: null
titleFormat: '{section.name|raw}'
sortOrder: 1
a72bfe0c-3389-4f9f-8ec1-ab318ec10b29:
name: Errors
handle: errors
type: channel
enableVersioning: false
propagationMethod: all
siteSettings:
66514b58-f1c7-480d-b3d5-aca0b7d78f45:
enabledByDefault: true
hasUrls: false
uriFormat: null
template: null
entryTypes:
faceb3ed-6771-453c-9c2a-aa330847f6db:
name: Errors
handle: errors
hasTitleField: true
titleLabel: Title
titleFormat: null
sortOrder: 1
siteGroups:
29a5becc-aa82-4ea8-a790-5056591e422d:
name: $SITE_NAME
sites:
66514b58-f1c7-480d-b3d5-aca0b7d78f45:
name: $SITE_NAME
handle: default
language: en-US
hasUrls: true
baseUrl: $SITE_URL
sortOrder: 1
primary: true
siteGroup: 29a5becc-aa82-4ea8-a790-5056591e422d
system:
edition: solo
name: $SITE_NAME
live: true
schemaVersion: 3.2.16
timeZone: America/New_York
users:
requireEmailVerification: true
allowPublicRegistration: false
defaultGroup: null
photoVolumeUid: null
photoSubpath: ''
volumes:
5c642d7e-b16b-4836-9575-668d75d242e5:
name: Site
handle: site
type: craft\volumes\Local
hasUrls: true
url: '@assetsUrl/assets/site'
settings:
path: '@webroot/assets/site'
sortOrder: 1
19 changes: 0 additions & 19 deletions config/volumes.php

This file was deleted.

9 changes: 8 additions & 1 deletion webpack.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ module.exports = {
"/dist/workbox-catch-handler.js"
],
exclude: [
/\/admin.*$/,
/\.(png|jpe?g|gif|svg|webp)$/i,
/\.map$/,
/^manifest.*\\.js(?:on)?$/,
Expand All @@ -125,6 +124,14 @@ module.exports = {
],
offlineGoogleAnalytics: true,
runtimeCaching: [
{
urlPattern: /\/admin.*$/,
handler: "networkOnly"
},
{
urlPattern: /\.php$/,
handler: "networkOnly"
},
{
urlPattern: /\.(?:png|jpg|jpeg|svg|webp)$/,
handler: "cacheFirst",
Expand Down

0 comments on commit c68de2c

Please sign in to comment.