Skip to content

Commit

Permalink
Initial source
Browse files Browse the repository at this point in the history
  • Loading branch information
arowM committed Apr 24, 2023
1 parent 6db63a3 commit 032ad6b
Show file tree
Hide file tree
Showing 11 changed files with 717 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Frontend test
on:
- push
- pull_request
jobs:
Frontend-Test:
name: Frontend test
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, '[skip ci]') }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install deps
run: npm install
- name: Run test
run: npm test
144 changes: 144 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
package-lock.json

### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Node.gitignore

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


### https://raw.github.com/github/gitignore/4488915eec0b3a45b5c63ead28f286819c0917de/Elm.gitignore

# elm-package generated files
elm-stuff
# elm-repl generated files
repl-temp-*


21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Sakura-chan the Goat, https://arow.info

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# elm-decimal-char

[![test](https://github.com/arowM/elm-decimal-char/actions/workflows/test.yaml/badge.svg)](https://github.com/arowM/elm-decimal-char/actions/workflows/test.yaml)
[Document](https://package.elm-lang.org/packages/arowM/elm-decimal-char/latest/)

Elm library for handling Unicode decimal characters, which are listed in [DerivedNumericType-15.0.0.txt](https://www.unicode.org/Public/15.0.0/ucd/extracted/DerivedNumericType.txt) as `Numeric_Type=Decimal`.
17 changes: 17 additions & 0 deletions elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "package",
"name": "arowM/elm-decimal-char",
"summary": "Handle Unicode decimal characters",
"license": "MIT",
"version": "1.0.0",
"exposed-modules": [
"DecimalChar"
],
"elm-version": "0.19.0 <= v < 0.20.0",
"dependencies": {
"elm/core": "1.0.0 <= v < 2.0.0"
},
"test-dependencies": {
"elm-explorations/test": "1.2.0 <= v < 2.0.0"
}
}
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"private": true,
"scripts": {
"format": "elm-format src",
"start": "elm-doc-preview",
"review": "elm-review --fix",
"test": "elm-review && elm-format --validate src && elm-verify-examples -r && elm make --docs=/tmp/docs.json"
},
"devDependencies": {
"@elm-tooling/elm-language-server": "^2.6.0",
"elm-doc-preview": "^5.0.5",
"elm-format": "^0.8.7",
"elm-review": "^2.10.1",
"elm-verify-examples": "^5.2.0"
},
"dependencies": {
"elm": "^0.19.1-5"
}
}
44 changes: 44 additions & 0 deletions review/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/core": "1.0.5",
"jfmengels/elm-review": "2.13.0",
"jfmengels/elm-review-common": "1.3.2",
"jfmengels/elm-review-debug": "1.0.8",
"jfmengels/elm-review-license": "1.0.4",
"jfmengels/elm-review-performance": "1.0.2",
"jfmengels/elm-review-simplify": "2.0.29",
"jfmengels/elm-review-the-elm-architecture": "1.0.3",
"jfmengels/elm-review-unused": "1.1.29",
"sparksp/elm-review-always": "1.0.6",
"stil4m/elm-syntax": "7.2.9"
},
"indirect": {
"elm/bytes": "1.0.8",
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/parser": "1.1.0",
"elm/project-metadata-utils": "1.0.2",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3",
"elm-community/list-extra": "8.7.0",
"elm-explorations/test": "2.1.1",
"miniBill/elm-unicode": "1.0.3",
"pzp1997/assoc-list": "1.0.0",
"rtfeldman/elm-hex": "1.0.0",
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "2.1.1"
},
"indirect": {}
}
}
74 changes: 74 additions & 0 deletions review/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
module ReviewConfig exposing (config)

{-| Do not rename the ReviewConfig module or the config function, because
`elm-review` will look for these.
To add packages that contain rules, add them to this review project using
`elm install author/packagename`
when inside the directory containing this file.
-}

import Review.Rule as Rule exposing (Rule)
import NoAlways
import NoDebug.Log
import NoDebug.TodoOrToString
import NoExposingEverything
import NoImportingEverything
import NoMissingTypeAnnotation
import NoMissingTypeExpose
import NoUnapprovedLicense
import NoUnoptimizedRecursion
import NoUnused.CustomTypeConstructorArgs
import NoUnused.CustomTypeConstructors
import NoUnused.Dependencies
import NoUnused.Exports
import NoUnused.Modules
import NoUnused.Parameters
import NoUnused.Patterns
import NoUnused.Variables
import Simplify


config : List Rule
config =
[ NoAlways.rule
, NoDebug.Log.rule
, NoDebug.TodoOrToString.rule
, NoExposingEverything.rule
|> Rule.ignoreErrorsForFiles
[ "src/Internal/Test.elm" ]
, NoImportingEverything.rule
[ "Internal.Test"
]
, NoMissingTypeAnnotation.rule
, NoMissingTypeExpose.rule
, NoUnapprovedLicense.rule
{ allowed = [ "BSD-3-Clause", "MIT" ]
, forbidden = [ "GPL-3.0-only", "GPL-3.0-or-later" ]
}
, NoUnoptimizedRecursion.rule (NoUnoptimizedRecursion.optOutWithComment "IGNORE TCO")
, NoUnused.CustomTypeConstructorArgs.rule
|> Rule.ignoreErrorsForFiles
[ "src/Internal/Test.elm"
, "src/Internal.elm"
]
, NoUnused.CustomTypeConstructors.rule []
|> Rule.ignoreErrorsForFiles
[ "src/Internal/Markup.elm"
]
, NoUnused.Dependencies.rule
, NoUnused.Exports.rule
, NoUnused.Modules.rule
, NoUnused.Parameters.rule
, NoUnused.Patterns.rule
, NoUnused.Variables.rule
, Simplify.rule Simplify.defaults
]
|> List.map
( Rule.ignoreErrorsForDirectories
[ "tests/VerifyExamples"
]
)
Loading

0 comments on commit 032ad6b

Please sign in to comment.