Skip to content

Commit

Permalink
feat(cli): new command upgrade
Browse files Browse the repository at this point in the history
- Add .gitignore file
- Upgrade actions in CI.yml
- Using the new cross compile image for x86_64-linux-gnu and aarch64-linux-gnu
  • Loading branch information
Brooooooklyn committed May 3, 2022
1 parent a91a8b4 commit 652aa3c
Show file tree
Hide file tree
Showing 7 changed files with 282 additions and 56 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ jobs:
push: true
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian

- name: Build and push debian aarch64 cross
uses: docker/build-push-action@v2
with:
file: debian-aarch64.Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian-aarch64

- name: Build and push debian with zig
uses: docker/build-push-action@v2
with:
Expand Down
190 changes: 190 additions & 0 deletions cli/src/new/.gitignore-template.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
export const GitIgnore = `# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-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/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# 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 variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# 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
# 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
# End of https://www.toptal.com/developers/gitignore/api/node
# Created by https://www.toptal.com/developers/gitignore/api/macos
# Edit at https://www.toptal.com/developers/gitignore?templates=macos
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### macOS Patch ###
# iCloud generated files
*.icloud
# End of https://www.toptal.com/developers/gitignore/api/macos
# Created by https://www.toptal.com/developers/gitignore/api/windows
# Edit at https://www.toptal.com/developers/gitignore?templates=windows
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/windows
#Added by cargo
/target
Cargo.lock
*.node
`
Loading

1 comment on commit 652aa3c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 652aa3c Previous: a91a8b4 Ratio
noop#napi-rs 55785567 ops/sec (±0.29%) 56045092 ops/sec (±0.21%) 1.00
noop#JavaScript 713520386 ops/sec (±0.11%) 713788793 ops/sec (±0.14%) 1.00
Plus number#napi-rs 17979451 ops/sec (±0.78%) 17697801 ops/sec (±0.77%) 0.98
Plus number#JavaScript 709981730 ops/sec (±0.48%) 710320741 ops/sec (±0.23%) 1.00
Create buffer#napi-rs 415121 ops/sec (±8.85%) 409271 ops/sec (±8.02%) 0.99
Create buffer#JavaScript 1910124 ops/sec (±8.02%) 1769307 ops/sec (±7.71%) 0.93
createArray#createArrayJson 37370 ops/sec (±0.12%) 37445 ops/sec (±0.13%) 1.00
createArray#create array for loop 7279 ops/sec (±0.1%) 7509 ops/sec (±0.1%) 1.03
createArray#create array with serde trait 7338 ops/sec (±0.11%) 7487 ops/sec (±0.1%) 1.02
getArrayFromJs#get array from json string 16415 ops/sec (±0.17%) 16067 ops/sec (±0.35%) 0.98
getArrayFromJs#get array from serde 9014 ops/sec (±0.06%) 10516 ops/sec (±0.06%) 1.17
getArrayFromJs#get array with for loop 11996 ops/sec (±0.03%) 12249 ops/sec (±0.02%) 1.02
Get Set property#Get Set from native#u32 422555 ops/sec (±5.25%) 420211 ops/sec (±5.26%) 0.99
Get Set property#Get Set from JavaScript#u32 352149 ops/sec (±5.29%) 351313 ops/sec (±5.13%) 1.00
Get Set property#Get Set from native#string 367228 ops/sec (±5.16%) 373221 ops/sec (±5.1%) 1.02
Get Set property#Get Set from JavaScript#string 341294 ops/sec (±5.08%) 342113 ops/sec (±5.23%) 1.00
Async task#spawn task 38043 ops/sec (±1.1%) 37078 ops/sec (±1.23%) 0.97
Async task#ThreadSafeFunction 1165 ops/sec (±34.17%) 1066 ops/sec (±26.53%) 0.92
Async task#Tokio future to Promise 29960 ops/sec (±0.41%) 29651 ops/sec (±1.4%) 0.99
Query#query * 100 2117 ops/sec (±1.86%) 2079 ops/sec (±1.88%) 0.98
Query#query * 1 30589 ops/sec (±1.1%) 29887 ops/sec (±0.51%) 0.98

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.