-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/issue 25 remove lit dependency (#67)
* refactor components to native HTMLElement * remove lit dependency from the project * remove dependency on greenwood import-css plugin * clear up TODO * remove import-css plugin * refactor to use observedAttribute getter * fix linting
- Loading branch information
1 parent
a36b4f7
commit e60a046
Showing
10 changed files
with
172 additions
and
224 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
ecmaVersion: 2022, | ||
sourceType: 'module' | ||
}, | ||
env: { | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# greenwood-starter-presentation | ||
|
||
Greenwood plugin and kickstarter repo for creating and authoring a slide deck from markdown, powered by [**GreenwoodJS**](https://www.greenwoodjs.io/)! ♻️ | ||
Greenwood plugin and kick-starter repo for creating and authoring a slide deck from markdown, powered by [**GreenwoodJS**](https://www.greenwoodjs.io/)! ♻️ | ||
|
||
![greenwood-starter-presentation](./.github/images/greenwood-starter-presentation.png) | ||
|
||
|
@@ -18,23 +18,19 @@ This project is principally intended to be consumed by a Greenwood project as a | |
To add this plugin to an _existing_ Greenwood project (where `@greenwood/cli` has already been installed), please do the following: | ||
|
||
1. Install the plugin and its dependencies | ||
1. Install the plugin as a dev dependency | ||
```sh | ||
$ npm install @greenwood/plugin-import-css greenwood-starter-presentation --save-dev | ||
$ npm install lit | ||
$ npm install greenwood-starter-presentation --save-dev | ||
``` | ||
1. Add this plugin and all dependent plugins to your _greenwood.config.js_ | ||
```js | ||
import { greenwoodPluginImportCss } from '@greenwood/plugin-import-css'; | ||
import { greenwoodThemeStarterPresentation } from 'greenwood-starter-presentation'; | ||
export default { | ||
. | ||
. | ||
// ... | ||
plugins: [ | ||
...greenwoodPluginImportCss(), | ||
...greenwoodThemeStarterPresentation() | ||
greenwoodThemeStarterPresentation() | ||
] | ||
}; | ||
|
@@ -109,7 +105,7 @@ When you are running the app, the following controls and behaviors are available | |
### Slide Templates and Layouts | ||
To organize your slide content, this plugin provides the following template that can be specificed in markdown file's frontmatter. | ||
To organize your slide content, this plugin provides the following template that can be specified in markdown file's frontmatter. | ||
ex. | ||
```md | ||
|
@@ -216,7 +212,7 @@ Empty page body with an h1 at the top with `--color-secondary` color behind it a | |
---- | ||
> _Remember, you can always add your own HTML and <style> tags right into markdown. Additionaly, Greenwood also supports ad-hoc and one off imports of CSS and JS via [frontmatter imports]() for extra customization!_ | ||
> _Remember, you can always add your own HTML and <style> tags right into markdown. Additionally, Greenwood also supports ad-hoc and one off imports of CSS and JS via [frontmatter imports](https://www.greenwoodjs.io/docs/front-matter/#imports) for extra customization!_ | ||
### Theming and Design System | ||
The following global variables are provided to you to customize and override using [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties). | ||
|
@@ -257,7 +253,7 @@ To stay up to date with this repo depends on how you initialized your project or | |
#### Plugin | ||
If you using the plugin, any upgrades should just be as simple as uprading the version of this plugin in your _package.json_ using your package manager of choice. | ||
If you using the plugin, any upgrades should just be as simple as upgrading the version of this plugin in your _package.json_ using your package manager of choice. | ||
```sh | ||
# npm | ||
|
@@ -277,7 +273,7 @@ $ git pull origin master | |
If you forked, make sure to add this repo as an upstream and pull changes in as needed | ||
```sh | ||
# use SSH (recommended) or HTTPS depending on your needs | ||
$ git remote add upsteam [email protected]:thescientist13/greenwood-starter-presentation.git | ||
$ git remote add upstream [email protected]:thescientist13/greenwood-starter-presentation.git | ||
$ git fetch upstream master | ||
$ git checkout master | ||
$ git merge upstream/master | ||
|
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
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
Oops, something went wrong.