Skip to content
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

Add metalsmith build #279

Merged
merged 35 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f435192
Add TypeScript project structure
razor-x Jul 22, 2024
e1c082c
Add metalsmith
razor-x Jul 22, 2024
47ac595
Add blueprint and types
razor-x Jul 22, 2024
3f95e93
Add code-sample
razor-x Jul 23, 2024
f40e085
Add blueprint plugin
razor-x Jul 23, 2024
765b8c4
Add codeSampleDefinitions
razor-x Jul 23, 2024
63ee125
Add pages from endpoints
razor-x Jul 23, 2024
dbf42cc
Only format src
razor-x Jul 23, 2024
a70b367
Add metalsmith layouts plugin
razor-x Jul 23, 2024
61a1fe8
Add empty layouts
razor-x Jul 23, 2024
83435dc
Add .nvmrc
razor-x Jul 23, 2024
9025cda
Generate files for sdk and api
razor-x Jul 23, 2024
b3d4af7
Move metalsmith items to dependencies
razor-x Jul 23, 2024
1c8aded
Setup layouts
razor-x Jul 23, 2024
a7645f3
Remove empty yaml
razor-x Jul 23, 2024
e3f1203
Move output
razor-x Jul 23, 2024
d5286fb
Add workflows
razor-x Jul 23, 2024
6a598d5
ci: Format code
seambot Jul 23, 2024
dcaf496
Only lint src
razor-x Jul 23, 2024
e91a38b
Add .prettierignore
razor-x Jul 23, 2024
5e5393e
Set skipLibCheck
razor-x Jul 23, 2024
c1569b8
Remove matrix in workflows
razor-x Jul 23, 2024
64c7af7
Update blueprint
razor-x Jul 23, 2024
e7fcaa1
Update blueprint
razor-x Jul 23, 2024
eea639f
Update output path
razor-x Jul 23, 2024
6edaa51
Add README for development
razor-x Jul 23, 2024
830f0f2
Update package.json
razor-x Jul 23, 2024
da279a7
Run format
razor-x Jul 23, 2024
4fef6f5
ci: Generate code
seambot Jul 23, 2024
fa96a5f
Use list
razor-x Jul 23, 2024
88593da
Do not link to Dependabot
razor-x Jul 23, 2024
e89ebb5
Add doc gen step to generate
razor-x Jul 23, 2024
ee2ff92
Format after build
razor-x Jul 23, 2024
54de7e5
ci: Generate docs
seambot Jul 23, 2024
d478be1
Update types
razor-x Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
63 changes: 63 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"root": true,
"plugins": ["simple-import-sort", "unused-imports"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"no-console": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"import/extensions": ["error", "ignorePackages"],
"import/no-duplicates": ["error", { "prefer-inline": true }],
"import/no-relative-parent-imports": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000"],
["^node:"],
["^@?\\w"],
["@seamapi/makenew-tsmodule"],
["^lib/"],
["^"],
["^\\."]
]
}
],
"simple-import-sort/exports": "error"
},
"overrides": [
{
"files": ["*.js", "*.mjs", "*.cjs"],
"extends": ["standard", "prettier"]
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["standard-with-typescript", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}
219 changes: 218 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,219 @@
.deeper
# Parts of this file were adapted from
# GitHub’s collection of .gitignore file templates
# which are Copyright (c) 2023 GitHub, Inc.
# and released under the MIT License.
# For more details, visit the project page:
# https://github.com/github/gitignore

# TypeScript build output
*.d.ts
*.js
*.js.map
!src/**/*.d.ts
!ava.config.js

# Build directories
package

# Environment versions file
.versions

# Tern
.tern-project
.tern-port

# npm config
.npmrc

# Temporary development files
tmp

# Yarn lockfile (only package-lock.json supported)
yarn.lock

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

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# 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
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://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/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Windows

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# macOS

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
7 changes: 6 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{ "semi": false }
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"endOfLine": "lf"
}
1 change: 1 addition & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) 2021-2024 Seam Labs, Inc.
Loading