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

Schema v3 #176

Draft
wants to merge 64 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
eb9c479
docs: draft v3 schema
futrime Dec 30, 2024
4870886
docs: add required field to assets
futrime Dec 30, 2024
4ed72c1
Merge branch 'main' into feat/schema-v3
futrime Jan 3, 2025
1ea36a2
refactor: remove everything for a new start
futrime Jan 3, 2025
94bb3b3
chore: miscellaneous stuff
futrime Jan 3, 2025
e71b421
docs: fix typo in readme
futrime Jan 3, 2025
f143f53
refactor: initialize as a C# project
futrime Jan 3, 2025
bbd6699
ci: use YAML folded style for line splitting
futrime Jan 3, 2025
d9c100e
ci: still try to fix
futrime Jan 3, 2025
31e6493
ci: still try to fix
futrime Jan 3, 2025
3098ffa
ci: do not strip symbols in releases
futrime Jan 3, 2025
5d2649d
ci: try to fix
futrime Jan 3, 2025
576c8c5
ci: set assembly name to lip
futrime Jan 3, 2025
03d48e2
Revert "ci: set assembly name to lip"
futrime Jan 3, 2025
18c89f3
ci: set assembly name to lip
futrime Jan 3, 2025
c45ef17
docs: add documentation
futrime Jan 3, 2025
ba52ee4
docs: finish command design
futrime Jan 3, 2025
d0db3ca
docs: add tooth.json schema
futrime Jan 4, 2025
bd9cb01
docs: improve language expression
futrime Jan 4, 2025
32ccd38
feat: migrate to .NET 9.0
futrime Jan 5, 2025
9523030
feat: add PackageManifest
futrime Jan 5, 2025
b429aa6
feat: more complete
futrime Jan 5, 2025
3b1e3d0
feat: better handling package manifests
futrime Jan 5, 2025
4c1883a
feat: use Semver to validate versions
futrime Jan 5, 2025
282c7fd
feat: add ToBytes() for manifests
futrime Jan 5, 2025
4acbc9b
feat: string validator
futrime Jan 5, 2025
20a5438
feat: remove prerequisites in the schema
futrime Jan 6, 2025
1829143
docs: add .liprc schema
futrime Jan 6, 2025
479eb89
feat: add runtime config
futrime Jan 6, 2025
64c6cc2
docs: support variant label
futrime Jan 7, 2025
8925eb1
feat: add variant label support
futrime Jan 7, 2025
3c1cc33
feat: add Lip.Init()
futrime Jan 7, 2025
19075d8
ci: support core and app building
futrime Jan 9, 2025
1d320a9
ci: support core and app building
futrime Jan 9, 2025
01edd13
chore: fix misc stuff
futrime Jan 9, 2025
c96f84d
refactor: encoding seet to UTF-8 and line break set to LF
futrime Jan 9, 2025
cbaa031
test: fix line ending problem
futrime Jan 9, 2025
1d8fa12
style: format all
futrime Jan 9, 2025
d198d5c
feat: add interface for user interaction
futrime Jan 9, 2025
6ddb17f
test: update tests for user interaction
futrime Jan 9, 2025
faf6992
style: format all
futrime Jan 9, 2025
1a4b629
feat: too many features to record...
futrime Jan 11, 2025
04706c9
feat: implement Lip.Config
futrime Jan 12, 2025
40184ea
style: format all
futrime Jan 12, 2025
62a1820
test: flatten package manifest tests
futrime Jan 12, 2025
397a1ad
docs: rename liprc schema to runtime_config
futrime Jan 12, 2025
f33a736
docs: improve some docs
futrime Jan 12, 2025
06ec4e4
feat: get variant by label and platform
futrime Jan 12, 2025
4781595
feat: template string in tooth.json
futrime Jan 12, 2025
f63505f
style: format all
futrime Jan 12, 2025
88f06d4
refactor: rename some symbols
futrime Jan 12, 2025
cdd35a9
feat: add package lock file
futrime Jan 12, 2025
0c2b41e
style: fix EOL
futrime Jan 13, 2025
e056397
feat: add more strict validation
futrime Jan 15, 2025
0aa1003
test: pass existing tests
futrime Jan 19, 2025
59deea9
test: implement various tests
futrime Jan 20, 2025
d6739c0
fix: some logical problems
futrime Jan 20, 2025
4835472
feat: lip list
futrime Jan 20, 2025
308550d
feat: simplify class Lip constructor
futrime Jan 21, 2025
b58e7c6
feat: add git repo cache dir
futrime Jan 21, 2025
bb24aef
refactor: split external interfaces to independent Lip.Context package
futrime Jan 22, 2025
3e5f374
feat: parts of cache manager
futrime Jan 22, 2025
7a9ebac
refactor: move GoModule to an independent source file
futrime Jan 22, 2025
0b2a0f5
feat: no longer allow custom runtime identifier
futrime Jan 22, 2025
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
212 changes: 212 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# editorconfig.org

# top-most EditorConfig file
root = true

# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
[*]
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[project.json]
indent_size = 2

# C# and Visual Basic files
[*.{cs,vb}]
charset = utf-8-bom

# Analyzers
dotnet_analyzer_diagnostic.category-Security.severity = error
dotnet_code_quality.ca1802.api_surface = private, internal
# SYSLIB5001: Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
dotnet_diagnostic.SYSLIB5001.severity = suggestion

# Miscellaneous style rules
dotnet_sort_system_directives_first = true
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# avoid this. unless absolutely necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_naming_style.pascal_case_style.capitalization = pascal_case

# static fields should have s_ prefix
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
dotnet_naming_style.static_prefix_style.required_prefix = s_
dotnet_naming_style.static_prefix_style.capitalization = camel_case

# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case

# Code quality
dotnet_style_readonly_field = true:suggestion
dotnet_code_quality_unused_parameters = non_public:suggestion

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:refactoring
dotnet_style_prefer_conditional_expression_over_return = true:refactoring

# CA2208: Instantiate argument exceptions correctly
dotnet_diagnostic.CA2208.severity = error

# C# files
[*.cs]
# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_switch_labels = true
csharp_indent_labels = one_less_than_current

# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion

# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
csharp_prefer_braces = true:refactoring
csharp_preserve_single_line_blocks = true:none
csharp_preserve_single_line_statements = false:none
csharp_prefer_static_local_function = true:suggestion
csharp_prefer_simple_using_statement = false:none
csharp_style_prefer_switch_expression = true:suggestion

# Expression-bodied members
csharp_style_expression_bodied_methods = true:refactoring
csharp_style_expression_bodied_constructors = true:refactoring
csharp_style_expression_bodied_operators = true:refactoring
csharp_style_expression_bodied_properties = true:refactoring
csharp_style_expression_bodied_indexers = true:refactoring
csharp_style_expression_bodied_accessors = true:refactoring
csharp_style_expression_bodied_lambdas = true:refactoring
csharp_style_expression_bodied_local_functions = true:refactoring

# Pattern matching
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion

# Expression-level preferences
csharp_prefer_simple_default_expression = true:suggestion

# Null checking preferences
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion

# Other features
csharp_style_prefer_index_operator = false:none
csharp_style_prefer_range_operator = false:none
csharp_style_pattern_local_over_anonymous_function = false:none

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = do_not_ignore
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Namespace preference
csharp_style_namespace_declarations = file_scoped:suggestion

# Types: use keywords instead of BCL types, and permit var only when the type is clear
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = false:none
csharp_style_var_elsewhere = false:suggestion

# Visual Basic files
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion

# C++ Files
[*.{cpp,h,in}]
curly_bracket_next_line = true
indent_brace_style = Allman

# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
indent_size = 2

# Xml build files
[*.builds]
indent_size = 2

# Xml files
[*.{xml,stylecop,resx,ruleset}]
indent_size = 2

# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2

# Shell scripts
[*.sh]
end_of_line = lf

[*.{cmd, bat}]
end_of_line = crlf

# Markdown files
[*.md]
# Double trailing spaces can be used for BR tags, and other instances are enforced by Markdownlint
trim_trailing_whitespace = false
98 changes: 98 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
* text=auto

#
# The above will handle all files NOT found below
#

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text diff=markdown
*.mdx text diff=markdown
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text eol=crlf
*.tab text
*.tsv text
*.txt text
*.sql text
*.epub diff=astextplain

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as text by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.eps binary

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.ksh text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text

# Archives
*.7z binary
*.bz binary
*.bz2 binary
*.bzip2 binary
*.gz binary
*.lz binary
*.lzma binary
*.rar binary
*.tar binary
*.taz binary
*.tbz binary
*.tbz2 binary
*.tgz binary
*.tlz binary
*.txz binary
*.xz binary
*.Z binary
*.zip binary
*.zst binary

# Text files where line endings should be preserved
*.patch -text

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Thank you for your contribution to the repository.
Before submitting this PR, please make sure:

- [ ] Your code builds clean without any errors or warnings
- [ ] Your code follows [Google Go Style Guide](https://google.github.io/styleguide/go/)
- [ ] Your code follows our code style
- [ ] You have tested all functions
- [ ] You have not used code without license
- [ ] You have added statement for third-party code
41 changes: 41 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
pull_request:
paths:
- .github/workflows/build-docs.yml
- docs/**
push:
paths:
- .github/workflows/build-docs.yml
- docs/**
workflow_dispatch:

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: |
pip install -r requirements.txt
working-directory: docs

- run: |
mkdocs build

- uses: actions/upload-pages-artifact@v3
with:
path: site/

deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build-docs
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment
Loading
Loading