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

Performance and building updates *v1.2.0 #1

Merged
merged 8 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 15 additions & 15 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 240
tab_width = 2
trim_trailing_whitespace = true

[{*.markdown,*.md}]
indent_size = 4
tab_width = 4
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 240
tab_width = 2
trim_trailing_whitespace = true
[{*.markdown,*.md}]
indent_size = 4
tab_width = 4
19 changes: 8 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
module.exports = {
env: {
browser: true,
es6: true
"env": {
"browser": true,
"node": true,
"commonjs": true
},
extends: 'standard-with-typescript',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['tsconfig.json']
}
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
}
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [lts/*, latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/tsDoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Simple workflow for deploying static content to GitHub Pages
name: TypeDoc generation

on:
release:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
# Single deploy job since we're just deploying
deploy:
name: Deploy Documentation

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: TypeDoc Action
uses: erikyo/tsdoc-action@v1
with:
source_dir: ./src/**/*
output_dir: ./docs
skipErrorChecking: true
darkHighlightTheme: dark-plus

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ coverage
# Dependency directories
node_modules/

# Builded files
lib/

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

Expand Down
22 changes: 22 additions & 0 deletions .swcrc-cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs",
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
},
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"target": "es5",
"minify": {
"compress": true,
"mangle": true
}
},
"sourceMaps": true
}
22 changes: 22 additions & 0 deletions .swcrc-esm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "http://json.schemastore.org/swcrc",
"module": {
"type": "es6"
},
"jsc": {
"target": "es2021",
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": false,
"dynamicImport": false
},
"minify": {
"compress": {
"unused": true
},
"mangle": true
}
},
"isModule": true
}
File renamed without changes.
2 changes: 0 additions & 2 deletions dist/color-2-name.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/color-2-name.js.map

This file was deleted.

10 changes: 0 additions & 10 deletions dist/types/color-utils.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/types/color-utils.d.ts.map

This file was deleted.

62 changes: 0 additions & 62 deletions dist/types/common.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/types/common.d.ts.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/types/data/colorSet.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/types/data/colorSet.d.ts.map

This file was deleted.

Loading