Browse Source

Updated the build system

main
Cédric Belin 1 month ago
parent
commit
cd6c0bbf9d
5 changed files with 5 additions and 8 deletions
  1. +2
    -2
      .github/workflows/build.yaml
  2. +1
    -0
      package.json
  3. +1
    -1
      tool/coverage.ps1
  4. +1
    -1
      tool/dist.ps1
  5. +0
    -4
      tool/upgrade.ps1

+ 2
- 2
.github/workflows/build.yaml View File

@@ -31,9 +31,9 @@ jobs:
- name: Run tests
run: |
haxe test.hxml
npm test
npm run test
- name: Collect code coverage
env:
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: success()
run: npm run-script coverage
run: npm run coverage

+ 1
- 0
package.json View File

@@ -54,6 +54,7 @@
},
"scripts": {
"coverage": "coveralls var/lcov.info",
"dist": "ncc build bin/setup_dart.js --minify --out=var",
"prepack": "pwsh tool/dist.ps1",
"test": "node var/tests.js"
}


+ 1
- 1
tool/coverage.ps1 View File

@@ -1,4 +1,4 @@
#!/usr/bin/env pwsh
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)
node_modules/.bin/coveralls var/lcov.info
npm run coverage

+ 1
- 1
tool/dist.ps1 View File

@@ -6,6 +6,6 @@ tool/clean.ps1
tool/version.ps1
haxe build.hxml

node_modules/.bin/ncc build bin/setup_dart.js --minify --out=var
npm run dist
@("#!/usr/bin/env node") + (Get-Content var/index.js) | Out-File bin/setup_dart.js
if (-not $IsWindows) { chmod +x bin/setup_dart.js }

+ 0
- 4
tool/upgrade.ps1 View File

@@ -2,10 +2,6 @@
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)

git reset --hard
git fetch --all --prune
git pull --rebase

haxelib install all --always
haxelib update --always
npm install --ignore-scripts --production=false


Loading…
Cancel
Save