-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core as subtree #119
Merged
Merged
Core as subtree #119
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7472474
Remove stac-spec git submodule
duckontheweb b544f2d
Squashed 'stac-spec/' content from commit ebd16753
duckontheweb b1d985e
Add [email protected] as subtree
duckontheweb 65661d7
Remove CI step to init submodules
duckontheweb db61173
Add PR template check that core spec was not changed.
duckontheweb e1cc965
Fix extension links
duckontheweb 2f81a04
Add CI check for changes to stac-spec directory
duckontheweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 was deleted.
Oops, something went wrong.
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
Submodule stac-spec
deleted from
4988a4
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
version: 2 | ||
jobs: | ||
test_examples: | ||
working_directory: ~/stac | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: validate | ||
command: npm run check-examples | ||
test_docs: | ||
working_directory: ~/stac | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- run: | ||
name: validate | ||
command: npm run check-markdown | ||
publish_schemas: | ||
working_directory: ~/stac | ||
docker: | ||
- image: circleci/node:12 | ||
steps: | ||
- checkout | ||
- run: | ||
name: install | ||
command: npm install | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "9b:0a:88:ff:12:d1:29:9a:ff:bb:72:ab:7d:81:df:59" | ||
- run: | ||
name: publish | ||
command: npm run publish-schemas -- $CIRCLE_TAG | ||
workflows: | ||
version: 2 | ||
ci: | ||
jobs: | ||
- test_examples | ||
- test_docs | ||
- publish_schemas: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
ignore: /^((?!dev).)*$/ |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const klaw = require('klaw-sync'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
const ghpages = require('gh-pages'); | ||
|
||
function filterFn (item) { | ||
const basename = path.basename(item.path); | ||
return basename === '.' || basename === 'node_modules' || basename[0] !== '.'; | ||
} | ||
|
||
let args = process.argv.slice(2); | ||
let tag = 'dev'; | ||
if (args.length && args[0].trim().length > 0) { | ||
tag = args[0]; | ||
} | ||
|
||
var folder = '.'; | ||
var jsonSchemaFolderPattern = path.sep + 'json-schema' + path.sep; | ||
for (let file of klaw(folder, {filter: filterFn})) { | ||
if (file.path.includes(jsonSchemaFolderPattern) && path.extname(file.path) === '.json') { | ||
let source = file.path; | ||
let target = 'schemas' + path.sep + tag + path.sep + path.relative(folder, file.path); | ||
fs.mkdirSync(path.dirname(target), { recursive: true }); | ||
fs.copyFileSync(source, target); | ||
console.log(target); | ||
} | ||
} | ||
|
||
ghpages.publish('schemas/' + tag, { | ||
src: '**', | ||
dest: tag, | ||
message: 'Publish JSON Schemas [ci skip]', | ||
user: { | ||
name: 'STAC CI', | ||
email: '[email protected]' | ||
} | ||
}, error => { | ||
console.error(error ? error : 'Deployed to gh-pages'); | ||
process.exit(error ? 1 : 0); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
plugins: | ||
# Check links | ||
- validate-links | ||
# Apply some recommended defaults for consistency | ||
- remark-preset-lint-consistent | ||
- remark-preset-lint-recommended | ||
# No HTML for security - can't activate yet due to STAC logo in README.md | ||
# - lint-no-html | ||
# General formatting | ||
# - - remark-lint-emphasis-marker | ||
# - '*' | ||
- remark-lint-hard-break-spaces | ||
- remark-lint-blockquote-indentation | ||
- remark-lint-no-consecutive-blank-lines | ||
# Detect overly long lines - be liberal for now and don't restrict to 80 yet | ||
# - - remark-lint-maximum-line-length | ||
# - 150 | ||
# Code | ||
- remark-lint-fenced-code-flag | ||
- remark-lint-fenced-code-marker | ||
- remark-lint-no-shell-dollars | ||
- - remark-lint-code-block-style | ||
- 'fenced' | ||
# Headings | ||
- remark-lint-heading-increment | ||
- remark-lint-no-duplicate-headings | ||
- remark-lint-no-multiple-toplevel-headings | ||
- remark-lint-no-heading-punctuation | ||
- - remark-lint-maximum-heading-length | ||
- 70 | ||
- - remark-lint-heading-style | ||
- atx | ||
# Lists | ||
- remark-lint-list-item-bullet-indent | ||
- remark-lint-ordered-list-marker-style | ||
- remark-lint-ordered-list-marker-value | ||
- remark-lint-checkbox-character-style | ||
# - - remark-lint-unordered-list-marker-style | ||
# - '-' | ||
- - remark-lint-list-item-indent | ||
- space | ||
# Tables | ||
- remark-lint-table-pipes | ||
# - remark-lint-table-pipe-alignment # Wait for https://github.com/remarkjs/remark-lint/issues/226 | ||
# Urls | ||
- remark-lint-no-literal-urls |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**Related Issue(s):** # | ||
|
||
|
||
**Proposed Changes:** | ||
|
||
1. | ||
2. | ||
|
||
**PR Checklist:** | ||
|
||
- [ ] This PR is made against the dev branch (all proposed changes except releases should be against dev, not master). | ||
- [ ] This PR has **no** breaking changes. | ||
- [ ] I have added my changes to the [CHANGELOG](https://github.com/radiantearth/stac-spec/blob/dev/CHANGELOG.md) **or** a CHANGELOG entry is not required. | ||
- [ ] This PR affects the [STAC API spec](https://github.com/radiantearth/stac-api-spec), and I have opened issue/PR #XXX to track the change. |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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/ | ||
package-lock.json | ||
|
||
# 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 | ||
|
||
# next.js build output | ||
.next | ||
|
||
# IntelliJ IDEA files | ||
.idea/ | ||
*.iml | ||
|
||
# Folder created when CI puhlishes JSON Schemas | ||
schemas/ |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/CHANGELOG.md |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant to be used by CI only, right? As I think this would fail on any other system (at least on Win), maybe just use that command directly in the CI without exposing it as npm script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be run locally (I've been using it to test prior to putting in the PR to avoid unexpected CI failures). You just need to pass in the
--compare-to
option manually when running it locally:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may be right about Windows, I've only tested on Linux and MacOS.