Skip to content

Commit a48b771

Browse files
authored
[1.0] Add plop to simplify creating a new package as well as stub out 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
1 parent b47e49c commit a48b771

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1200
-9
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"iflow-react-router": "^1.2.1",
3232
"jest": "^20.0.4",
3333
"lerna": "^2.0.0-rc.5",
34+
"plop": "^1.7.4",
3435
"prettier-eslint-cli": "3.4.x",
3536
"prop-types": "^15.5.8",
3637
"purdy": "^2.2.1",
@@ -48,6 +49,7 @@
4849
"lerna": "lerna",
4950
"lint": "eslint --ext .js,.jsx --ignore-path .gitignore .",
5051
"lint:flow": "babel-node scripts/flow-check.js",
52+
"plop": "plop",
5153
"postinstall": "lerna bootstrap",
5254
"publish-canary": "lerna run build; lerna publish --canary --yes",
5355
"publish-next": "lerna run build; lerna publish --npm-tag=next",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-aphrodite
2+
3+
Stub README
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-aphrodite",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-aphrodite",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}

packages/gatsby-plugin-cxs/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js

packages/gatsby-plugin-cxs/.npmignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples

packages/gatsby-plugin-cxs/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-cxs
2+
3+
Stub README

packages/gatsby-plugin-cxs/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-cxs",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-cxs",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-glamorous
2+
3+
Stub README
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-glamorous",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-glamorous",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}

packages/gatsby-plugin-jss/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js

packages/gatsby-plugin-jss/.npmignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples

packages/gatsby-plugin-jss/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-jss
2+
3+
Stub README

packages/gatsby-plugin-jss/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-jss",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-jss",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples

packages/gatsby-plugin-less/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-less
2+
3+
Stub README

packages/gatsby-plugin-less/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-less",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-less",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# Compiled binary addons (http://nodejs.org/api/addons.html)
23+
build/Release
24+
25+
# Dependency directory
26+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27+
node_modules
28+
*.un~
29+
yarn.lock
30+
src
31+
flow-typed
32+
coverage
33+
decls
34+
examples
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# gatsby-plugin-styled-jsx
2+
3+
Stub README
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// noop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "gatsby-plugin-styled-jsx",
3+
"version": "",
4+
"description": "Stub description for gatsby-plugin-styled-jsx",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "babel src --out-dir . --ignore __tests__",
8+
"watch": "babel -w src --out-dir . --ignore __tests__"
9+
},
10+
"keywords": [
11+
"gatsby"
12+
],
13+
"author": "Kyle Mathews <[email protected]>",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"babel-cli": "^6.24.1"
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*.js
2+
!index.js

0 commit comments

Comments
 (0)