This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from zarathustra323/fix-builds
Create basic example website sandbox
- Loading branch information
Showing
25 changed files
with
176 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,6 @@ typings/ | |
*.marko.js | ||
.marko-cli | ||
.marko-devtools | ||
|
||
# Build assets | ||
**/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.marko.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.marko'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:vue/recommended', | ||
], | ||
env: { | ||
browser: true, | ||
}, | ||
rules: { | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: 3, | ||
multiline: { | ||
max: 1, | ||
allowFirstLine: false, | ||
}, | ||
}], | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Browser from '@parameter1/base-cms-marko-web/browser'; | ||
|
||
export default Browser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const { startServer } = require('@parameter1/base-cms-marko-web'); | ||
|
||
const document = require('./server/components/document'); | ||
const coreConfig = require('./config/core'); | ||
const siteConfig = require('./config/site'); | ||
const routes = require('./server/routes'); | ||
|
||
const { log } = console; | ||
|
||
module.exports = startServer({ | ||
rootDir: __dirname, | ||
document, | ||
coreConfig, | ||
siteConfig, | ||
routes, | ||
onStart: (app) => { | ||
app.set('trust proxy', 'loopback, linklocal, uniquelocal'); | ||
}, | ||
}).then(() => log('Website started!')).catch(e => setImmediate(() => { throw e; })); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "@parameter1/base-cms-example-website", | ||
"version": "2.46.2", | ||
"description": "Example BaseCMS website.", | ||
"main": "src/index.js", | ||
"author": "Jacob Bare <[email protected]>", | ||
"repository": "https://github.com/parameter1/base-cms/tree/master/services/example-website", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"dev": "basecms-website dev index.js", | ||
"build": "basecms-website build", | ||
"compile": "basecms-marko-compile compile --dir ./ --silent true", | ||
"lint": "yarn lint:js && yarn lint:css", | ||
"lint:js": "eslint --ext .js --ext .vue --max-warnings 5 --ignore-path ../../.eslintignore ./", | ||
"lint:css": "stylelint ./**/*.scss --max-warnings 5", | ||
"test": "yarn lint && yarn compile && yarn build" | ||
}, | ||
"dependencies": { | ||
"@parameter1/base-cms-marko-core": "^2.46.0", | ||
"@parameter1/base-cms-marko-web": "^2.46.1", | ||
"@parameter1/base-cms-marko-web-theme-default": "^2.45.0", | ||
"@parameter1/base-cms-object-path": "^2.45.0", | ||
"@parameter1/base-cms-utils": "^2.22.2", | ||
"@parameter1/base-cms-web-cli": "^2.46.2", | ||
"graphql": "^14.7.0", | ||
"graphql-tag": "^2.12.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<marko-web-document ...input> | ||
<@head> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<${input.head} /> | ||
</@head> | ||
<@above-container> | ||
<${input.aboveContainer} /> | ||
</@above-container> | ||
<@below-container> | ||
<${input.belowContainer} /> | ||
</@below-container> | ||
</marko-web-document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"<site-document>": { | ||
"template": "./document.marko", | ||
"<head>": {}, | ||
"<above-container>": {}, | ||
"<container>": { | ||
"<above-page>": {}, | ||
"<page>": {}, | ||
"<below-page>": {} | ||
}, | ||
"<below-container>": {}, | ||
"<foot>": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"taglib-imports": [ | ||
"./components/marko.json" | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# www.robotstxt.org/ | ||
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 | ||
|
||
User-agent: * | ||
Disallow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const index = require('../templates/index'); | ||
|
||
module.exports = (app) => { | ||
app.get('/', (_, res) => { | ||
res.marko(index); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "../../node_modules/@parameter1/base-cms-marko-web-theme-default/scss/theme"; | ||
|
||
body { | ||
-webkit-font-smoothing: antialiased; | ||
letter-spacing: .25px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<marko-web-default-page-layout | ||
type="test" | ||
title="Test Page" | ||
description="This is a test page." | ||
> | ||
<@page> | ||
<h1>Hello World!</h1> | ||
</@page> | ||
</marko-web-default-page-layout> |