Skip to content

Commit 2159bef

Browse files
authored
Merge pull request #11 from PureMVC/github-workflow-setup
GitHub workflow setup
2 parents be836d8 + dd85bc5 commit 2159bef

File tree

128 files changed

+3967
-8748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+3967
-8748
lines changed

.eslintrc.js

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

.github/workflows/main.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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: Check types
33+
run: npm run typecheck
34+
35+
- name: Run tests
36+
run: npm test
37+
38+
- run: npm run build
39+
40+
publish:
41+
runs-on: ubuntu-latest
42+
if: github.event_name == 'release'
43+
needs: build
44+
45+
permissions:
46+
contents: read
47+
id-token: write
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version-file: package.json
54+
cache: npm
55+
registry-url: "https://registry.npmjs.org"
56+
57+
# Working around https://github.com/npm/cli/issues/4828
58+
# - run: npm ci
59+
- run: npm install --no-package-lock
60+
61+
- run: npm run build
62+
63+
- run: npm run npm:publish:dry-run
64+
65+
- run: npm run npm:publish

.github/workflows/node.js.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
bin
23
node_modules
34
coverage
45
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [PureMVC](http://puremvc.org/) TypeScript MultiCore Framework [![Node.js CI](https://github.com/PureMVC/puremvc-typescript-multicore-framework/actions/workflows/node.js.yml/badge.svg)](https://github.com/PureMVC/puremvc-typescript-multicore-framework/actions/workflows/node.js.yml)
1+
## [PureMVC](http://puremvc.org/) TypeScript MultiCore Framework
22

33
PureMVC is a lightweight framework for creating applications based upon the classic [Model-View-Controller](http://en.wikipedia.org/wiki/Model-view-controller) design meta-pattern. It supports [modular programming](http://en.wikipedia.org/wiki/Modular_programming) through the use of [Multiton](http://en.wikipedia.org/wiki/Multiton) Core actors instead of the [Singletons](http://en.wikipedia.org/wiki/Singleton_pattern).
44

VERSION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Release Date: 4/22/25
44
Platform: TypeScript
55
Version: 2
66
Revision: 1
7-
Minor: 2
7+
Minor: 3
88
Authors: Saad Shams <saad.shams@puremvc.org>
99
: Cliff Hall <cliff@puremvc.org>
1010
--------------------------------------------------------------------------
@@ -22,3 +22,4 @@ Release Date: 4/22/25
2222
2.1.0 - Final esm/cjs release with proper types.
2323
2.1.1 - README Update
2424
2.1.2 - Fix entrypoint
25+
2.1.3 - NPM trusted publisher workflow

bin/cjs/core/Controller.js

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

0 commit comments

Comments
 (0)