Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Upgrade Node.js to v16
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsManta committed Jan 13, 2024
1 parent 8a09ef9 commit fd3987f
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 114 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/api-report.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- master
- docs-revamp

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn

- run: yarn install --frozen-lockfile

- run: yarn docs:build

- uses: peaceiris/actions-gh-pages@8457ade3d7045b4842e5a10f733d4153b7d05238
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn

- run: yarn install --frozen-lockfile

- run: yarn lint

- run: yarn test

- run: yarn build

build:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- run: yarn install --frozen-lockfile

- name: Update API reports
run: mkdir -p api && yarn api-extractor run --local

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update API report as of ${{ github.sha }}
file_pattern: api
commit_user_name: rebasecop
commit_user_email: [email protected]
commit_author: rebasecop <[email protected]>
23 changes: 0 additions & 23 deletions .github/workflows/docs.yml

This file was deleted.

31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@
"name": "prescript",
"version": "0.55555555.0",
"description": "Object-oriented acceptance test tool",
"main": "./lib/singletonApi.js",
"types": "./api/prescript.d.ts",
"author": "Thai Pangsakulyanont <[email protected]>",
"license": "MIT",
"main": "./lib/singletonApi.js",
"types": "./api/prescript.d.ts",
"bin": "./bin/prescript",
"files": [
"lib",
"bin",
"api/prescript.d.ts",
"cli.js"
],
"scripts": {
"lint": "eslint . --ext .ts,.js",
"build": "tsc",
"prepare": "rm -rf lib && yarn build",
"test": "jest",
"test-examples": "node examples/testAll.js",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"dependencies": {
"@types/cosmiconfig": "^5.0.3",
"allure-js-commons": "^2.0.0-beta.7",
Expand All @@ -32,7 +42,7 @@
"@types/invariant": "^2.2.29",
"@types/jest": "^22.2.3",
"@types/ms": "^0.7.30",
"@types/node": "^10.0.0",
"@types/node": "^16.0.0",
"@typescript-eslint/parser": "^2.2.0",
"allure-commandline": "^2.13.0",
"eslint": "^6.3.0",
Expand All @@ -42,19 +52,10 @@
"jest": "^22.4.3",
"prettier": "^1.18.2",
"ts-jest": "^22.4.4",
"typescript": "~3.5.1",
"typescript": "^5.3.3",
"vuepress": "^1.4.1"
},
"scripts": {
"lint": "eslint . --ext .ts,.js",
"build": "tsc",
"prepare": "rm -rf lib && yarn build",
"test": "jest",
"test-examples": "node examples/testAll.js",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"bin": {
"prescript": "./bin/prescript"
"volta": {
"node": "16.20.2"
}
}
17 changes: 9 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es2017",
"module": "commonjs",
"strict": true,
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"outDir": "lib",
"skipLibCheck": true,
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
"noUnusedLocals": true,
"rootDir": "src"
"outDir": "lib",
"rootDir": "src",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "es2017",
"useUnknownInCatchVariables": false
},
"include": ["src/**/*"]
}
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1065,10 +1065,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.13.tgz#ccebcdb990bd6139cd16e84c39dc2fb1023ca90c"
integrity sha512-pMCcqU2zT4TjqYFrWtYHKal7Sl30Ims6ulZ4UFXxI4xbtQqK/qqKwkDoBFCfooRqqmRu9vY3xaJRwxSh673aYg==

"@types/node@^10.0.0":
version "10.17.28"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.28.tgz#0e36d718a29355ee51cec83b42d921299200f6d9"
integrity sha512-dzjES1Egb4c1a89C7lKwQh8pwjYmlOAG9dW1pBgxEk57tMrLnssOfEthz8kdkNaBd7lIqQx7APm5+mZ619IiCQ==
"@types/node@^16.0.0":
version "16.18.70"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.70.tgz#d4c819be1e9f8b69a794d6f2fd929d9ff76f6d4b"
integrity sha512-8eIk20G5VVVQNZNouHjLA2b8utE2NvGybLjMaF4lyhA9uhGwnmXF8o+icdXKGSQSNANJewXva/sFUoZLwAaYAg==

"@types/q@^1.5.1":
version "1.5.4"
Expand Down Expand Up @@ -9650,10 +9650,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@~3.5.1:
version "3.5.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977"
integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==
typescript@^5.3.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==

typescript@~4.3.5:
version "4.3.5"
Expand Down

0 comments on commit fd3987f

Please sign in to comment.