Skip to content
Permalink
Browse files

πŸŽ‰ Initial commit

  • Loading branch information...
AileenCGN committed Feb 25, 2019
1 parent f946071 commit b07d1a6f33159f217cd9e51f30c2e0db667bcf95
Showing with 869 additions and 141 deletions.
  1. +11 βˆ’0 .babelrc
  2. +4 βˆ’71 .gitignore
  3. 0 app.js
  4. +1 βˆ’0 index.js
  5. +38 βˆ’22 package.json
  6. +26 βˆ’0 src/.editorconfig
  7. +59 βˆ’0 src/.eslintrc.js
  8. +156 βˆ’0 src/BaseSiteMapGenerator.js
  9. +45 βˆ’0 src/IndexMapGenerator.js
  10. +12 βˆ’0 src/PageMapGenerator.js
  11. +12 βˆ’0 src/PostMapGenerator.js
  12. +61 βˆ’0 src/SiteMapManager.js
  13. +11 βˆ’0 src/TagMapGenerator.js
  14. +16 βˆ’0 src/UserMapGenerator.js
  15. +86 βˆ’0 src/defaults.js
  16. +161 βˆ’0 src/gatsby-node.js
  17. +24 βˆ’0 src/gatsby-ssr.js
  18. +12 βˆ’0 src/utils.js
  19. +134 βˆ’0 static/sitemap.xsl
  20. +0 βˆ’6 test/.eslintrc.js
  21. +0 βˆ’10 test/hello.test.js
  22. +0 βˆ’11 test/utils/assertions.js
  23. +0 βˆ’11 test/utils/index.js
  24. +0 βˆ’10 test/utils/overrides.js
@@ -0,0 +1,11 @@
{
"presets": [
[
"babel-preset-gatsby-package",
{
"browser": true
}
]
]
}

@@ -1,71 +1,4 @@
# Node template

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

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

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

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

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# IDE
.idea/*
*.iml
*.sublime-*
.vscode/*

# OSX
.DS_Store

# Gatsby Plugin Advanced Sitemap Custom
/*.js
/__tests__
!index.js
yarn.lock
0 app.js
No changes.
@@ -0,0 +1 @@
// noop
@@ -1,32 +1,48 @@
{
"name": "gatsby-plugin-advanced-sitemap",
"version": "0.0.0",
"repository": "git@github.com:TryGhost/gatsby-plugin-advanced-sitemap.git",
"author": "Ghost Foundation",
"description": "Gatsby plugin that automatically creates a sitemap for your site",
"version": "1.0.0",
"license": "MIT",
"main": "app.js",
"scripts": {
"dev": "echo \"Implement me!\"",
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
"lint": "eslint . --ext .js --cache",
"posttest": "yarn lint",
"preship": "yarn test",
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; fi"
"author": "Ghost Foundation",
"homepage": "https://docs.ghost.org/api/gatsby/",
"repository": {
"type": "git",
"url": "git+https://github.com/tryghost/gatsby-plugin-advanced-sitemap.git"
},
"engines": {
"node": ">= 8.9.0"
},
"files": [
"app.js",
"lib"
"bugs": {
"url": "https://github.com/tryghost/gatsby-plugin-advanced-sitemap/issues"
},
"main": "index.js",
"keywords": [
"gatsby",
"gatsby-plugin"
],
"scripts": {
"build": "babel src --out-dir . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production npm run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__"
},

"peerDependencies": {
"gatsby": "^2.0.0"
},
"devDependencies": {
"eslint": "5.14.1",
"eslint-plugin-ghost": "0.1.0",
"mocha": "6.0.1",
"should": "13.2.3",
"sinon": "7.2.4"
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"babel-preset-gatsby-package": "^0.1.3",
"cross-env": "^5.1.4",
"eslint": "^5.14.1",
"eslint-plugin-ghost": "^0.1.0",
"eslint-plugin-react": "^7.12.4"
},
"dependencies": {
"bluebird": "^3.5.3",
"ghost-ignition": "^3.0.2",
"lodash": "^4.17.11"
"@babel/runtime": "^7.0.0",
"fs-extra": "^7.0.1",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"xml": "^1.0.1"
}
}
@@ -0,0 +1,26 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.hbs]
insert_final_newline = false

[*.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[Makefile]
indent_style = tab
@@ -0,0 +1,59 @@
module.exports = {
'parser': 'babel-eslint',
'parserOptions': {
'ecmaVersion': 6,
'ecmaFeatures': {
'jsx': true,
'experimentalObjectRestSpread': true
}
},
plugins: ['ghost', 'react'],
extends: [
'plugin:ghost/node',
'plugin:ghost/ember',
'plugin:react/recommended'
],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.0",
"flowVersion": "0.53"
},
"propWrapperFunctions": ["forbidExtraProps"]
},
"rules": {
"ghost/sort-imports-es6-autofix/sort-imports-es6": "off",
"ghost/ember/use-ember-get-and-set": "off",
"no-console": "off",
"no-inner-declarations": "off",
"valid-jsdoc": "off",
"require-jsdoc": "off",
"quotes": ["error", "backtick"],
"consistent-return": ["error"],
"arrow-body-style": [
"error",
"as-needed",
{ "requireReturnForObjectLiteral": true }
],
"jsx-quotes": ["error", "prefer-double"],
"semi": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"react/prop-types": [
"error",
{
"ignore": ["children"]
}
]
}
};

0 comments on commit b07d1a6

Please sign in to comment.
You can’t perform that action at this time.