Skip to content

Commit

Permalink
Move to TypeScript (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
baileyherbert authored Sep 9, 2021
1 parent 8567e9e commit f361d13
Show file tree
Hide file tree
Showing 17 changed files with 7,703 additions and 2,308 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pnpm-lock.yaml merge=binary
shrinkwrap.yaml merge=binary
npm-shrinkwrap.json merge=binary
yarn.lock merge=binary
*.json linguist-language=JSON-with-Comments
*.ts text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
.cpp text eol=lf
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ jobs:
npm install request
# Build on the current platform
- name: Build
- name: Build native addon
run: npm run build

# Compile the module with tsc
- name: Build module
run: npm run tsc

# Runs all tests with the current build
- name: Test
run: npm test
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

# Build on the current platform
- name: Build
- name: Build native addon
run: npm run build

# Compile the module with tsc
- name: Build module
run: npm run tsc

# Runs all tests with the current build
- name: Test
run: npm test
Expand Down Expand Up @@ -114,6 +118,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run tsc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68 changes: 62 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,62 @@
.DS_Store
binding.node
build
node_modules
utimes_fixtures
lib
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
pids
*.pid
*.seed
*.pid.lock
lib-cov
coverage
*.lcov
.nyc_output
.grunt
bower_components
.lock-wscript
build/
node_modules/
jspm_packages/
typings/
*.tsbuildinfo
.npm
.eslintcache
.stylelintcache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
.node_repl_history
*.tgz
.yarn-integrity
.env
.env.test
.env*.local
.cache
.parcel-cache
.next
.nuxt
dist
.out
.storybook-out
storybook-static
dist/
.cache/
.vuepress/dist
.serverless/
.fusebox/
.dynamodb/
.tern-port
.vscode-test
.vscode/*
!.vscode/tasks.json
!.vscode/launch.json
*.code-workspace
.vs
tmp/
temp/
.history
.ionide
artifacts/
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
},
"sources": [
"src/addon/binding.cc"
"cpp/binding.cc"
],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")"
Expand Down
File renamed without changes.
Loading

0 comments on commit f361d13

Please sign in to comment.