Skip to content

Commit 8dfc7cd

Browse files
committed
update
Brand new implementation
1 parent f565863 commit 8dfc7cd

File tree

238 files changed

+17554
-15807
lines changed

Some content is hidden

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

238 files changed

+17554
-15807
lines changed

.eslintrc.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"overrides": [
12+
{
13+
"env": {
14+
"node": true
15+
},
16+
"files": [
17+
".eslintrc.{js,cjs}"
18+
],
19+
"parserOptions": {
20+
"sourceType": "script"
21+
}
22+
}
23+
],
24+
"parser": "@typescript-eslint/parser",
25+
"parserOptions": {
26+
"ecmaVersion": "latest"
27+
},
28+
"plugins": [
29+
"@typescript-eslint"
30+
],
31+
"rules": {
32+
"indent": [
33+
"error",
34+
4
35+
],
36+
"linebreak-style": [
37+
"error",
38+
"unix"
39+
],
40+
"quotes": [
41+
"error",
42+
"double"
43+
],
44+
"semi": [
45+
"error",
46+
"always"
47+
]
48+
}
49+
};

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/** linguist-vendored
2+
*.js linguist-vendored

.github/workflows/node.js.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [18.x, 20.x, 22.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm run build --if-present
31+
- run: npm test

.gitignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/.idea
2-
/*.sublime-project
3-
/*.sublime-workspace
4-
/build/user.properties
1+
.idea
2+
node_modules
3+
.DS_Store

LICENSE

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
* PureMVC Multicore Framework for TypeScript - Copyright © 2014 Frederic Saunier
2-
* PureMVC Framework - Copyright © 2006-2014 Futurescale, Inc.
3-
* All rights reserved.
4-
5-
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6-
7-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9-
* Neither the name of Futurescale, Inc., PureMVC.org, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10-
11-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2024, Saad Shams <[email protected]>
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+27-33
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,41 @@
1-
## [PureMVC](http://puremvc.github.com/) TypeScript MultiCore Framework
2-
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. This is a TypeScript port of the [AS3 reference implementation of the MultiCore Version](https://github.com/PureMVC/puremvc-as3-multicore-framework/wiki). 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 [Singleton](http://en.wikipedia.org/wiki/Singleton_pattern)s used in the [Standard Version](https://github.com/PureMVC/puremvc-typescript-standard-framework/wiki).
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)
32

4-
* [Discussion](http://forums.puremvc.org/index.php?board=113.0)
5-
* [Live Unit Test Runner](http://puremvc.org/pages/demos/TS/PureMVC_TS_MultiCore_UnitTests/)
3+
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).
64

7-
## Status
8-
Production - [Version 1.1](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION)
9-
10-
## Platforms / Technologies
11-
* [TypeScript](http://www.typescriptlang.org/)
12-
* [require.js](http://jqueryui.com/)
13-
* [YUI Test](https://github.com/yui/yuitest)
14-
* [YUI Compressor](http://developer.yahoo.com/yui/compressor/)
15-
* [YUIAnt](http://www.ubik-ingenierie.com/miscellanous/YUIAnt/)
16-
* [Ant](http://ant.apache.org/)
17-
18-
## Usage
5+
* [NPM Package](https://www.npmjs.com/package/@puremvc/puremvc-typescript-multicore-framework?activeTab=readme)
6+
* [API Docs](https://puremvc.org/pages/docs/TypeScript/multicore/)
7+
* [Legacy Implementation](https://github.com/PureMVC/puremvc-typescript-multicore-framework/tree/1.3)
198

20-
As this port depends on the TypeScript language you may want to start by reading [TypeScript getting started guide](http://www.typescriptlang.org/).
9+
## Installation
10+
```shell
11+
npm i @puremvc/puremvc-typescript-multicore-framework
12+
```
2113

22-
Unit Test can be run live in the browser using included HTML file [test.html](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/test-minified.html)
14+
## Demos
15+
* [React Native Demo: EmployeeAdmin](https://github.com/PureMVC/puremvc-typescript-demo-reactnative-employeeadmin)
2316

24-
## Build
25-
26-
To build the project you'll need to download and install :
27-
* [TypeScript compiler](http://www.typescriptlang.org/#Download)
28-
* [Ant](http://ant.apache.org/)
29-
* [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html/) (Ant need a JDK not a JRE, also don't forget to change environment var JAVA_HOME to the JDK path).
17+
## Platforms / Technologies
18+
* [TypeScript](https://en.wikipedia.org/wiki/TypeScript)
19+
* [JavaScript](https://en.wikipedia.org/wiki/JavaScript)
20+
* [ECMAScript](https://en.wikipedia.org/wiki/ECMAScript)
21+
* [CommonJS](https://en.wikipedia.org/wiki/CommonJS)
22+
* [Node.js](https://en.wikipedia.org/wiki/Node.js)
23+
* [React](https://en.wikipedia.org/wiki/React_(JavaScript_library))
24+
* [React Native](https://en.wikipedia.org/wiki/React_Native)
3025

31-
1. Rename the file [user.properties.sample](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/user.properties.sample) to **user.properties**
32-
2. Edit the file and replace **MY_TYPESCRIPT_COMPILER_PATH** by the real TypeScript compiler full
33-
system path. e.g. on windows: <code>typescript.compiler.path = C:/Documents and Settings/{USER NAME HERE}/Application Data/npm/tsc.cmd
34-
3. Use your favorite editor to run Ant or simply type <code>ant puremvc-typescript-multicore-framework/build
26+
## Status
27+
Production - [Version 2.0.0](https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION)
3528

3629
## License
37-
* PureMVC TypeScript Multicore Framework - Copyright © 2014 Frederic Saunier
38-
* PureMVC - Copyright © 2006-2014 Futurescale, Inc.
30+
* PureMVC MultiCore Framework for TypeScript - Copyright © 2024 [Saad Shams](https://www.linkedin.com/in/muizz)
31+
* PureMVC - Copyright © 2024 [Futurescale, Inc.](http://futurescale.com/)
3932
* All rights reserved.
4033

4134
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4235

43-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
44-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
45-
* Neither the name of Futurescale, Inc., PureMVC.org, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
36+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
37+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
38+
* Neither the name of Futurescale, Inc., PureMVC.org, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
4639

4740
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41+

VERSION

+10-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
PureMVC Multicore Framework for TypeScript
2-
----------------------------------------------------------------------------------------------------
3-
Release Date: 04/17/2014
4-
Platform: TypeScript
5-
Version: 1
6-
Revision: 1
7-
Author: Frederic Saunier <[email protected]>
8-
Status: Production
9-
----------------------------------------------------------------------------------------------------
10-
11-
1.1 - Port updated to reflect official release of TypeScript 1.0 (http://blogs.msdn.com/b/typescript/archive/2014/04/02/announcing-typescript-1-0.aspx)
12-
13-
This port was upgraded with the help of systemsymbiosis (https://github.com/systemsymbiosis/)
14-
thanks to him.
15-
16-
1.0 - First official PureMVC TypeScript Multicore port.
17-
18-
This port, is inspired originally from PureMVC Multicore Framework for AS3 port by Cliff Hall but was
19-
converted both from PureMVC AS3 Multicore port and PureMVC JavaScript Multicore for Objs Unit Tests.
20-
21-
Will probably stay tagged as development while TypeScript language specification is not finalized,
22-
but remember that any TypeScript PureMVC project will output ready for production JavaScript.
1+
PureMVC MultiCore Framework for TypeScript
2+
--------------------------------------------------------------------------
3+
Release Date: 8/28/24
4+
Platform: TypeScript
5+
Version: 2
6+
Revision: 0
7+
Minor: 0
8+
Authors: Saad Shams <[email protected]>
9+
--------------------------------------------------------------------------
10+
2.0 - Brand new implementation of ported code, equivalent to AS3 MultiCore Version 1.0.5.

0 commit comments

Comments
 (0)