Skip to content

Commit

Permalink
[1.0] Add plop to simplify creating a new package as well as stub out…
Browse files Browse the repository at this point in the history
… a number of packages we'll add to core (gatsbyjs#1059)

* Add plot templates for creating a new package

* Add stubs for a number of packages we'll be building on
  • Loading branch information
KyleAMathews authored May 30, 2017
1 parent b47e49c commit a48b771
Show file tree
Hide file tree
Showing 74 changed files with 1,200 additions and 9 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"iflow-react-router": "^1.2.1",
"jest": "^20.0.4",
"lerna": "^2.0.0-rc.5",
"plop": "^1.7.4",
"prettier-eslint-cli": "3.4.x",
"prop-types": "^15.5.8",
"purdy": "^2.2.1",
Expand All @@ -48,6 +49,7 @@
"lerna": "lerna",
"lint": "eslint --ext .js,.jsx --ignore-path .gitignore .",
"lint:flow": "babel-node scripts/flow-check.js",
"plop": "plop",
"postinstall": "lerna bootstrap",
"publish-canary": "lerna run build; lerna publish --canary --yes",
"publish-next": "lerna run build; lerna publish --npm-tag=next",
Expand Down
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-aphrodite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-aphrodite/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-aphrodite/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-aphrodite

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-aphrodite/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-aphrodite/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-aphrodite",
"version": "",
"description": "Stub description for gatsby-plugin-aphrodite",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-cxs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-cxs/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-cxs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-cxs

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-cxs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-cxs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-cxs",
"version": "",
"description": "Stub description for gatsby-plugin-cxs",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-glamorous/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-glamorous/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-glamorous/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-glamorous

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-glamorous/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-glamorous/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-glamorous",
"version": "",
"description": "Stub description for gatsby-plugin-glamorous",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-jss/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-jss/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-jss/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-jss

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-jss/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-jss/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-jss",
"version": "",
"description": "Stub description for gatsby-plugin-jss",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-less/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-less/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-less/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-less

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-less/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-less/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-less",
"version": "",
"description": "Stub description for gatsby-plugin-less",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-styled-jsx/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
34 changes: 34 additions & 0 deletions packages/gatsby-plugin-styled-jsx/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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
src
flow-typed
coverage
decls
examples
3 changes: 3 additions & 0 deletions packages/gatsby-plugin-styled-jsx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gatsby-plugin-styled-jsx

Stub README
1 change: 1 addition & 0 deletions packages/gatsby-plugin-styled-jsx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// noop
18 changes: 18 additions & 0 deletions packages/gatsby-plugin-styled-jsx/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "gatsby-plugin-styled-jsx",
"version": "",
"description": "Stub description for gatsby-plugin-styled-jsx",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"keywords": [
"gatsby"
],
"author": "Kyle Mathews <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1"
}
}
2 changes: 2 additions & 0 deletions packages/gatsby-plugin-styletron/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*.js
!index.js
Loading

0 comments on commit a48b771

Please sign in to comment.