Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
generalpiston committed Sep 18, 2020
1 parent cbb23d2 commit 8b70401
Show file tree
Hide file tree
Showing 9 changed files with 3,841 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
["@babel/preset-env", {
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}],
"@babel/react"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/transform-flow-strip-types"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

/gatsby-browser.js
/gatsby-ssr.js
33 changes: 33 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
*.un~
yarn.lock
flow-typed
coverage
decls
examples
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# gatsby-plugin-reddit-pixel
A Gatsby plugin to add the reddit pixel onto a site

A Gatsby plugin to add the reddit pixel onto a site. At this time, 'ViewContent' event is triggered via onRouteUpdate.

## Install

`npm install --save gatsby-plugin-reddit-pixel`

## How to use

```javascript
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-reddit-pixel`,
options: {
pixelId: 'pixel id here',
},
},
];
```
Empty file added index.js
Empty file.
Loading

0 comments on commit 8b70401

Please sign in to comment.