Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
1a40dc6
first commit
florianbgt Oct 2, 2024
8efd064
bootstrap repo
florianbgt Oct 2, 2024
336c526
fix tsc
florianbgt Oct 2, 2024
92aad40
implement codesplit algorithm
florianbgt Oct 2, 2024
fb715d1
general improvements
florianbgt Oct 4, 2024
522172c
Use tree sitter
florianbgt Oct 6, 2024
83d6d42
remove hard coded extension when resolving path. And use parent file …
florianbgt Oct 6, 2024
2be1274
fix dependencies
florianbgt Oct 7, 2024
3216aaa
rename project
florianbgt Oct 7, 2024
f19e49d
cleanup
florianbgt Oct 7, 2024
013ab01
refactor to use function only
florianbgt Oct 8, 2024
e156b08
open AI annotations (#3)
florianbgt Oct 9, 2024
637b801
imporve javascript support, remove code using cursor indexes instead …
florianbgt Oct 9, 2024
6e4fa66
remove unused import (#5)
florianbgt Oct 10, 2024
427be5d
bootstrap FE
florianbgt Oct 14, 2024
25b41e0
bootstrap API endpoints
florianbgt Oct 14, 2024
d1f873f
wi[
florianbgt Oct 14, 2024
c384000
implement node detail modal
florianbgt Oct 15, 2024
0a20af0
handle group change and sync
florianbgt Oct 15, 2024
5d172fd
split
florianbgt Oct 15, 2024
be78f4e
Merge pull request #6 from Nano-API/feature/FE-bootstrap
florianbgt Oct 16, 2024
4d4d5d1
add zod for payload validation
florianbgt Oct 16, 2024
dbcd287
use new annotations
florianbgt Oct 16, 2024
163a4ed
Merge pull request #7 from Nano-API/feature/use-new-annotations
florianbgt Oct 16, 2024
5fe833d
Add scan endpoint
erbesharat Oct 16, 2024
11b2112
openai annotation new format
florianbgt Oct 16, 2024
a6e2948
Fix response types on api and app for scan
erbesharat Oct 16, 2024
a7ef227
Remove prettier config
erbesharat Oct 16, 2024
49a89cc
Merge pull request #8 from Nano-API/feature/scan-api
erbesharat Oct 16, 2024
2b741a8
Merge pull request #9 from Nano-API/fix/openai-annotation-new-format
florianbgt Oct 16, 2024
ae98b92
Add split endpoint and clean-up scan endpoint (#10)
erbesharat Oct 17, 2024
5c619a9
feature/sync (#11)
florianbgt Oct 17, 2024
2ef83b8
use npm workspaces
florianbgt Oct 17, 2024
83a9c5e
some improvements
florianbgt Oct 17, 2024
f04a2dc
improve design
florianbgt Oct 17, 2024
503a8ee
Merge pull request #12 from Nano-API/feature/use-npm-workspaces
florianbgt Oct 17, 2024
a5f1a8c
Add support for building binaries
erbesharat Oct 18, 2024
6c1a781
Remove extra log
erbesharat Oct 18, 2024
cfbbde8
Merge pull request #13 from Nano-API/feature/pkg
erbesharat Oct 18, 2024
4fedb66
fix dependency tree function
florianbgt Oct 18, 2024
53873bc
Merge pull request #15 from Nano-API/fix/getDependencyTree
florianbgt Oct 18, 2024
3ed95d3
npm package (#14)
florianbgt Oct 18, 2024
50cce10
publish new version to npm
florianbgt Oct 18, 2024
aea38c3
fallback when port is busy
florianbgt Oct 18, 2024
0ece759
release workflow (#17)
florianbgt Oct 21, 2024
a0aff53
fix workflow
florianbgt Oct 21, 2024
19c7471
fix dependencies
florianbgt Oct 21, 2024
a0ea296
fix
florianbgt Oct 21, 2024
8f09e84
fix
florianbgt Oct 21, 2024
d02623f
fix
florianbgt Oct 21, 2024
5d2ac63
fix
florianbgt Oct 21, 2024
297b0c9
fix
florianbgt Oct 21, 2024
48abc1d
fix
florianbgt Oct 21, 2024
0d579e7
add change log
florianbgt Oct 21, 2024
dd1f8fe
fix
florianbgt Oct 21, 2024
f9eccf2
[skip ci] update change log
florianbgt Oct 21, 2024
a6bd39d
release-it
florianbgt Oct 21, 2024
1c5c7c0
release it
florianbgt Oct 21, 2024
ec936d4
change log and add previous version
florianbgt Oct 21, 2024
38f6746
add unreleased section in changelog
florianbgt Oct 21, 2024
ed55def
add registry explicitely in package.json
florianbgt Oct 21, 2024
5bbf782
fix
florianbgt Oct 21, 2024
ce509c5
fix
florianbgt Oct 21, 2024
8cc85cf
fix
florianbgt Oct 21, 2024
e0c1997
fix
florianbgt Oct 21, 2024
be77de2
revert to hold version
florianbgt Oct 21, 2024
65ccf22
chore: release v1.0.8
florianbgt Oct 21, 2024
dc81485
bump version
florianbgt Oct 21, 2024
83c3a4a
chore: release v1.0.9
florianbgt Oct 22, 2024
7348093
fix
florianbgt Oct 22, 2024
550436c
fix
florianbgt Oct 22, 2024
aaf9874
chore: release v1.0.10
florianbgt Oct 22, 2024
61557af
chore: release v1.0.11
florianbgt Oct 22, 2024
f4422ec
fix
florianbgt Oct 22, 2024
5e86c6b
fix
florianbgt Oct 22, 2024
1e94772
login with git
florianbgt Oct 22, 2024
51ab439
fix version
florianbgt Oct 22, 2024
45f89df
chore: release v1.0.14
florianbgt Oct 22, 2024
200695c
add skip ci
florianbgt Oct 22, 2024
1394791
renemae release cli and fix changelog
florianbgt Oct 22, 2024
f8759ef
[skip ci] chore: release v1.0.15
florianbgt Oct 22, 2024
671b246
feature/lint and tests (#18)
florianbgt Oct 22, 2024
c500b6b
Merge branch 'compile-history'
florianbgt Oct 22, 2024
1028f6d
Merge pull request #19 from nanoapi-io/chore/compile-history
florianbgt Oct 22, 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
40 changes: 40 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lint and tests

on:
push:
branches-ignore: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint:check

tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"

- name: Install dependencies
run: npm install

- name: Tests
run: npm run test
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release CLI

permissions:
contents: write
packages: write

on:
workflow_dispatch:
inputs:
release_type:
description: "Release type: patch, minor, major"
required: true
default: patch

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "22"

- name: Install dependencies
run: npm install

- name: Build the cli
run: npm run build

- name: Generate binaries
run: npm run binaries

- name: Login with git
run: |
git config --global user.email "florian@nanoapi.io"
git config --global user.name "Florian Bigot"

- name: Login to npm registry
run: npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"

- name: Run release-it
run: npm run release -- --ci --${{ github.event.inputs.release_type }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 5 additions & 3 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/
dist/
node_modules/
node_modules
dist
nanoapi-split
.env
binaries
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
}
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# nAPI-compile
A project containing the transpilation step for deploying nAPIs.

## Running
Simply running `node .` or `npm start` in the root folder will run the transpilation for the `'test-api'`.

You can update the deploy path by setting the `DIST_PATH` env variable
# nanoapi
21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// @ts-check

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
eslintPluginPrettierRecommended,
{
ignores: [
"**/node_modules/**/*",
"dist",
"packages/app/dist",
"packages/cli/dist",
],
},
);
26 changes: 0 additions & 26 deletions index.js

This file was deleted.

Loading
Loading