Skip to content

Commit 3d960ad

Browse files
committed
Prepare for 1.0.7 release
Add github publish workflow and missing rollup build config, and tests * Add .github/workflows/main.yml * Remove ./bin * Add ./bin to .gitignore * In ./src/* - Format with prettier * Add build/* - rollup config * Add test/* - standard tests for async command util * Add eslint.config.js and jest.config.js * In package.json - add engines section with node version >=20 - Update test and build commands - update devDependencies - add linkt and format commands - bump version to 1.0.7 * in VERSION - bump version to 1.0.7
1 parent d94b73b commit 3d960ad

18 files changed

+6015
-1034
lines changed

.github/workflows/main.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
pull_request:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version-file: package.json
20+
cache: npm
21+
22+
# Working around https://github.com/npm/cli/issues/4828
23+
# - run: npm ci
24+
- run: npm install --no-package-lock
25+
26+
- name: Check formatting
27+
run: npm run format:check
28+
29+
- name: Check syntax
30+
run: npm run lint
31+
32+
- name: Run tests
33+
run: npm test
34+
35+
- run: npm run build
36+
37+
publish:
38+
runs-on: ubuntu-latest
39+
if: github.event_name == 'release'
40+
needs: build
41+
42+
permissions:
43+
contents: read
44+
id-token: write
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-node@v4
49+
with:
50+
node-version-file: package.json
51+
cache: npm
52+
registry-url: "https://registry.npmjs.org"
53+
54+
# Working around https://github.com/npm/cli/issues/4828
55+
# - run: npm ci
56+
- run: npm install --no-package-lock
57+
58+
- run: npm run build
59+
60+
- run: npm run npm:publish:dry-run
61+
62+
- run: npm run npm:publish

.gitignore

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,4 @@
1-
# dependencies
2-
/node_modules
3-
/.pnp
4-
.pnp.js
5-
6-
# testing
7-
/coverage
8-
9-
# next.js
10-
/.next/
11-
/out/
12-
13-
# production
14-
/build
15-
16-
# misc
17-
.DS_Store
18-
*.pem
19-
.vscode
201
.idea
21-
22-
# debug
23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
27-
# local env files
28-
.env
29-
.env*.local
30-
31-
# vercel
32-
.vercel
33-
34-
# typescript
35-
*.tsbuildinfo
36-
next-env.d.ts
2+
.bin
3+
coverage
4+
node_modules

VERSION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PureMVC Async Command Utility for Javascript (Ported)
22
--------------------------------------------------------------------------
3-
Release Date: 8/29/2024
3+
Release Date: 11/25/2025
44
Platform: JavaScript (Native)
55
Version: 1
66
Revision: 0
7-
Minor: 6
7+
Minor: 7
88
Authors: Copyright © 2008 Duncan Hall <duncan.hall@puremvc.org>
99
: Ported in 2024 by Cliff Hall <cliff.hall@puremvc.org>
1010
-------------------------------------------------------------------------
@@ -14,4 +14,5 @@ Release Date: 8/29/2024
1414
...
1515
1.0.5 Fixed issues with nullish checking and necessary closure in AsyncMacroCommand
1616
1.0.6 Update to use PureMVC 2.0.7 and build for cjs and esm.
17+
1.0.7 Github workflow based publishing setup, add rollup config
1718

bin/cjs/puremvc-async-command.cjs

Lines changed: 0 additions & 189 deletions
This file was deleted.

bin/cjs/puremvc-async-command.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/cjs/puremvc-async-command.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)