Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Feb 3, 2024
0 parents commit bbf2008
Show file tree
Hide file tree
Showing 10 changed files with 173 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: ivanjermakov
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: main

on:
- push
- pull_request

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: npm install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: |
npm install
- name: npm build
run: |
npm run build
- name: npm ci
run: |
npm run ci
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
node_modules
dist
pnpm-lock.yaml
data/test.no
0x
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) 2022 Ivan Ermakov

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.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# future-js

Future POC in JS for [Nois](https://nois.ivnj.org/)
40 changes: 40 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"formatter": {
"lineWidth": 120,
"indentStyle": "space",
"indentWidth": 4
},
"linter": {
"rules": {
"recommended": true,
"correctness": {
"noSwitchDeclarations": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noShadowRestrictedNames": "off",
"noConfusingVoidType": "off"
},
"complexity": {
"noForEach": "off"
},
"style": {
"noNonNullAssertion": "off",
"noUnusedTemplateLiteral": "off",
"noInferrableTypes": "off",
"noUselessElse": "off",
"useTemplate": "off",
"noParameterAssign": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "none",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded"
}
}
}
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "future-js",
"version": "0.0.1",
"description": "Future POC in JS for [Nois](https://nois.ivnj.org/)",
"scripts": {
"run": "bun run src/index.ts",
"build": "tsc && npm run build:prepublish",
"build:prepublish": "cp package.json dist && find dist -name \"*.spec.*\" -delete",
"test": "bun test",
"ci": "npm run test",
"clean": "rm -r dist"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "",
"license": "MIT",
"devDependencies": {
"@types/jasmine": "~4.3.5",
"@types/node": "~18.16.20",
"bun": "~1.0.23",
"typescript": "~5.3.3"
}
}
1 change: 1 addition & 0 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
it('should initialize', () => {})
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('hello')
28 changes: 28 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"incremental": true,
"lib": [
"esnext.array"
],
"skipLibCheck": true
},
"include": [
"src"
],
"exclude": [
"**/node_modules"
]
}

0 comments on commit bbf2008

Please sign in to comment.