Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] 1.0RC release #546

Open
wants to merge 170 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
5e7c493
chore: refactor
moajo Jun 16, 2017
eecf44b
fix: change registerComponent argument
moajo Jun 19, 2017
98d60e1
Merge branch 'master' into develop
moajo Aug 1, 2017
914cbfc
Merge remote-tracking branch 'origin/master' into develop
moajo Sep 14, 2017
d3e790a
fix bug
moajo Sep 14, 2017
15c11e0
[fix] remove unnecessary exports
moajo Sep 15, 2017
d374967
[refactor] change directory structure
moajo Sep 15, 2017
8bc1130
[refactor] change test directory structure
moajo Sep 15, 2017
626de1a
[add] string converter test
moajo Sep 15, 2017
a4c7319
fix: expose XMLReader dependency on DOMParser
moajo Sep 15, 2017
0fe87b1
fix: refactor AttributeManagerTest
moajo Sep 16, 2017
8b52a10
fix: refactor test structure
moajo Sep 16, 2017
7642703
fix: remove unuse files.
moajo Sep 16, 2017
314a9e4
fix: refacor Namespace
moajo Sep 16, 2017
3f76cdd
fix: refactor NSIdentity test
moajo Sep 16, 2017
c1240ee
fix: add AttributeTest
moajo Sep 17, 2017
38e66dd
fix: refactor test
moajo Sep 17, 2017
3d1bfdd
fix: add ComponentDeclarationTest
moajo Sep 17, 2017
55d334b
fix: add ComponentTest
moajo Sep 17, 2017
b908d88
fix: replace GrimoireInterface.ns()
moajo Sep 18, 2017
592327b
fix: add Environment manager
moajo Sep 18, 2017
19d8f4d
fix: refactor test
moajo Sep 19, 2017
018999c
fix: add test
moajo Sep 24, 2017
7244573
fix: refactor test
moajo Sep 24, 2017
8a81439
fix: add dependency on xmlserializer for test env
moajo Sep 24, 2017
4a9d1b4
fix: Allow to call addRootNode without specifying scriptTag element
moajo Sep 24, 2017
2076bb3
fix: add test
moajo Sep 24, 2017
802e154
fix: remove GomlInterface.getNodeById()
moajo Sep 25, 2017
6083928
fix: fix test
moajo Sep 25, 2017
2a1947e
fix: merge NodeUtility into Utility
moajo Sep 25, 2017
b44f315
fix: convert from Array on NumberConverter tobe deprecated
moajo Sep 25, 2017
68c681a
fix: add GomlLoader test
moajo Sep 25, 2017
6174270
fix: add devDependencies @types/sinon
moajo Sep 26, 2017
1b98ad7
fix: recursive import problem
moajo Sep 29, 2017
103e22d
fix: change arguments of XMLReader.parseXML()
moajo Sep 29, 2017
dd3aff2
fix: refactor test
moajo Sep 29, 2017
579543e
fix: change directory structure/rename identity
moajo Oct 7, 2017
ad04250
fix: update tslint.json
moajo Oct 7, 2017
f9740ce
fix: lint
moajo Oct 10, 2017
74dc1b3
fix: use common submodule
moajo Oct 10, 2017
d08580f
[fix] test
moajo Oct 12, 2017
724653f
[fix] replace 'snake-case' to 'kebab-case'
moajo Oct 12, 2017
1415acc
[fix] message reciever to be protected
moajo Oct 12, 2017
a64731e
[fix] refactor code
moajo Oct 12, 2017
61162cc
[fix] rename function
moajo Oct 12, 2017
97cf84e
fix: remove unuse files
moajo Oct 15, 2017
d68fffb
fix: getAtribute() to take type parameter
moajo Oct 15, 2017
39c1479
fix: remove Component.__addAtribute()
moajo Oct 15, 2017
fb41a38
fix: implement Component.__setCompanionWithSelfNS()
moajo Oct 15, 2017
deee900
fix: change signature IdentityMap.get()
moajo Oct 15, 2017
9d3669d
fix: component constructor can be used as requiredComponents for regi…
moajo Oct 20, 2017
4da9baa
fix: component test
moajo Oct 20, 2017
f3af541
fix: add default argument value to GomlNode#addChildByName
moajo Oct 20, 2017
288a725
fix: add assertion to Attribute#bindTo
moajo Oct 21, 2017
beb70f9
feat: Attribute generics
moajo Oct 21, 2017
710e9e9
feat: use converter generics
moajo Oct 21, 2017
9eea312
fix: update gitignore
moajo Oct 21, 2017
2a5b214
fix: refactor GomlParser
moajo Oct 21, 2017
2145f75
feat: implement template node
moajo Oct 21, 2017
461fc56
Merge branch 'master' into develop
moajo Oct 21, 2017
f749107
Merge branch 'develop' into refactor
moajo Oct 21, 2017
c91c8a9
fix: change directory name
moajo Oct 22, 2017
aba0bac
feat:implement goml mutation observeing
moajo Oct 22, 2017
e19d24e
fix: refactor
moajo Oct 22, 2017
6bd3c98
feat: implement clearMessageRecieverCache
moajo Oct 22, 2017
e3644eb
fix: remove unuse variables
moajo Nov 21, 2017
beecaf5
Merge branch 'master' into refactor
moajo Nov 21, 2017
7ebd84f
fix(package): update eventemitter3 to version 3.0.0
greenkeeper[bot] Nov 29, 2017
d943767
chore(package): update ts-loader to version 3.2.0
greenkeeper[bot] Nov 29, 2017
1ba1665
chore(package): update sinon to version 4.1.3
greenkeeper[bot] Dec 7, 2017
382b817
chore(package): update condition-circle to version 2.0.1
greenkeeper[bot] Dec 14, 2017
9877e1e
chore: rename properties
moajo Dec 16, 2017
a0a788a
chore: update common-configuration
moajo Dec 16, 2017
b5e09c9
update common configurations
moajo Dec 16, 2017
15f7f64
update circle.yaml
moajo Dec 16, 2017
e86b3ea
update dependencies
moajo Dec 16, 2017
c13fab3
Merge remote-tracking branch 'origin/greenkeeper/sinon-4.1.3' into re…
moajo Dec 16, 2017
1134b4e
Merge remote-tracking branch 'origin/greenkeeper/condition-circle-2.0…
moajo Dec 16, 2017
712f917
Merge remote-tracking branches 'origin/greenkeeper/ts-loader-3.2.0' a…
moajo Dec 16, 2017
7d2bb3c
chore: update event emitter
moajo Dec 16, 2017
43b7dee
chore: replace babel-preset-es2015 with babel-preset-env
moajo Dec 18, 2017
2aaddb2
feat: add overload to Component#setAttribute
moajo Dec 18, 2017
6c3877d
feat: add loadFromGOML method to GomlLoader
moajo Dec 18, 2017
63a1f1c
feat: implement TemplateNode.src
moajo Dec 18, 2017
278cc33
change lint script
moajo Dec 19, 2017
6062f52
add overload to GomlNode#append
moajo Dec 19, 2017
6b2c86d
fix: remove deprecated method
moajo Dec 19, 2017
47c6f3b
add utility function
moajo Dec 19, 2017
33e81dc
change componentRegistgering Interface
moajo Dec 19, 2017
ada09dc
rename NSIdentity to Identity
moajo Dec 19, 2017
d006b52
fix test
moajo Dec 19, 2017
df93276
refactor nodeDeclaration
moajo Dec 19, 2017
0e66742
refactor
moajo Dec 19, 2017
0836ef6
Add .vscode as .gitignore
kyasbal Dec 26, 2017
71133af
revert Attribute#convert
moajo Dec 28, 2017
6d88d51
feat: implemnent gr#import
moajo Dec 28, 2017
926e01c
fix: bug: import core module
moajo Dec 28, 2017
407f724
feat: implement gr#assertPlugin
moajo Dec 28, 2017
56fd1ce
chore: change error message on gr#asserPlugin
moajo Dec 28, 2017
32b22e9
fix: Change timing when initialize event handler is called
moajo Dec 28, 2017
928033b
fix: bug
moajo Dec 28, 2017
ba4d88f
refactor: refactor constants
moajo Jan 2, 2018
4b49cfb
chore: add ILibraryPreference interface
moajo Jan 2, 2018
181d07a
refactor: initializing process
moajo Jan 2, 2018
42974af
feat: implement preserved preference handring
moajo Jan 2, 2018
236c8ec
feat: add event constants
moajo Jan 4, 2018
51b0035
Merge pull request #548 from GrimoireGL/feat/grimport
moajo Jan 4, 2018
f9ae310
Merge branch 'develop' into feat/plugin-assert
moajo Jan 4, 2018
a269e2f
Merge pull request #549 from GrimoireGL/feat/plugin-assert
moajo Jan 4, 2018
49cd0a8
Merge branch 'develop' into feat/add-many-hooks
moajo Jan 4, 2018
4aae3c0
fix: gr.import return default export
moajo Jan 4, 2018
4ecadcf
fix: gr.import bugs
moajo Jan 4, 2018
4911c20
chore: add constants for window event
moajo Jan 6, 2018
dbc6cff
fix: null reference bug on gr.handlePreservedPreference
moajo Jan 10, 2018
8dfaa05
chore: fix lint and add ducumentation
moajo Jan 11, 2018
dfa83c1
chore(package): update xhr-mock to version 2.0.1
greenkeeper[bot] Jan 11, 2018
4519ef8
refactor: update submodule
moajo Jan 11, 2018
5bb3a89
chore: update dependency
moajo Jan 11, 2018
6738fe1
update dependency
moajo Jan 11, 2018
61d8e7d
Merge branch 'develop' into greenkeeper/xhr-mock-2.0.1
moajo Jan 11, 2018
70ca6d5
chore(package): update remap-istanbul to version 0.10.0
greenkeeper[bot] Jan 11, 2018
8c2315e
Merge pull request #551 from GrimoireGL/greenkeeper/xhr-mock-2.0.1
moajo Jan 12, 2018
8ef20a3
Merge branch 'develop' into greenkeeper/remap-istanbul-0.10.0
moajo Jan 12, 2018
32d5bc3
Merge pull request #552 from GrimoireGL/greenkeeper/remap-istanbul-0.…
moajo Jan 12, 2018
eca707d
fix: initialize bug
moajo Jan 14, 2018
9dd8be2
[WIP] implement promise attribute
moajo Jan 14, 2018
e34ca87
[WIP] fix build
moajo Jan 14, 2018
e0816cc
updated attribute test
kyasbal Jan 14, 2018
84e0025
Merge branch 'feat/promise-attribute' of github.com:GrimoireGL/Grimoi…
kyasbal Jan 14, 2018
43beb9f
[WIP] fix test build
moajo Jan 14, 2018
efa73fc
Merge branch 'feat/promise-attribute' of github.com:GrimoireGL/Grimoi…
kyasbal Jan 14, 2018
f7660df
[WIP] fix normal attribute test
moajo Jan 14, 2018
0b9c9ef
Merge branch 'feat/promise-attribute' of github.com:GrimoireGL/Grimoi…
moajo Jan 14, 2018
9d4e2b7
implement lazy/promise attribute
moajo Jan 14, 2018
b7da20d
chore: fix lint
moajo Jan 14, 2018
aae882f
chore: remove vscode setting file
moajo Jan 14, 2018
48f2c71
chore: rename Ensure.tobeConverterName
moajo Jan 20, 2018
c8d73b0
Merge pull request #556 from GrimoireGL/feat/promise-attribute
moajo Jan 20, 2018
0e4302d
fix: Converter exports
moajo Jan 20, 2018
fa66143
fix: GomlNode.getComponent
moajo Jan 20, 2018
e4d35a7
fix: Utilities
moajo Jan 20, 2018
7ecbda0
fix: declaration of Component#__addAtribute()
moajo Jan 20, 2018
99256b3
feat: add utility functions
moajo Jan 20, 2018
aad9403
fix: converter declarations
moajo Jan 21, 2018
652624e
fix: add type argument to ComponentConverter
moajo Jan 21, 2018
872029c
fix: ComponentConverter declaration
moajo Jan 21, 2018
df6a281
Merge branch 'develop' of github.com:GrimoireGL/GrimoireJS into develop
kyasbal Jan 24, 2018
cf61a97
Changed gr.import feature
kyasbal Jan 24, 2018
ab91d5e
addComponent will return correct type
kyasbal Jan 24, 2018
2356c13
Merge branch 'develop' of github.com:GrimoireGL/GrimoireJS into develop
moajo Jan 28, 2018
ea91e7a
feat: Implement notnull Attribute
moajo Jan 28, 2018
e1ac124
implemented mandatory flag of getComponent argument
kyasbal Jan 28, 2018
57176ea
Merge branch 'develop' of github.com:GrimoireGL/GrimoireJS into develop
moajo Jan 28, 2018
48fc511
fix: remove deprecated converter
moajo Jan 28, 2018
24595ff
feat: implement set promise attribute event
moajo Jan 28, 2018
9350a69
feat: add default args to Attribute#bindTo
moajo Jan 28, 2018
7992e12
feat: implement mandatory flag to Component#getAttributeRaw
moajo Jan 28, 2018
97f01d4
feat: implement emitting event to IdentityMap
moajo Jan 28, 2018
cf7f4ba
fix: test
moajo Jan 28, 2018
4a0acba
chore: publish beta
moajo Jan 28, 2018
01e9c47
feat: implement AttributeNamespace
moajo Jan 28, 2018
2e0d13f
Implemented waitFor at IndentityMap
kyasbal Jan 28, 2018
232da37
fix: bug
moajo Feb 18, 2018
c09d991
update dependencies
moajo Feb 18, 2018
db39e0c
fix: IdentityMap is not compareing keys by isMatch. ComponentConverte…
kyasbal Feb 18, 2018
a96f306
update dependencies
moajo Feb 18, 2018
45a5712
Merge branch 'feat/attribute-namespace' into develop
moajo Feb 18, 2018
25df3a2
publish beta
moajo Feb 18, 2018
8b2aaaf
update common module
moajo Feb 18, 2018
07d037b
fix: change resolveAttribute timing
moajo Feb 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,6 @@ yarn.lock
docs
test-lib
test-lib-es5
src/metaInfo.ts
package-lock.json
.vscode
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = git@github.com:GrimoireGL/common-configurations.git
17 changes: 0 additions & 17 deletions .jsbeautifyrc

This file was deleted.

3 changes: 0 additions & 3 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ And these are able to be written by Typescript. Safe and effective environment f
This is a sample to make objects waving movement. (You can see full comprehensive this sample at our top page)

```ts
import Component from "grimoirejs/ref/Node/Component";
import Component from "grimoirejs/ref/Core/Component";
import ISceneUpdateArgument from "grimoirejs-fundamental/ref/SceneRenderer/ISceneUpdateArgument";
import TransformComponent from "grimoirejs-fundamental/ref/Components/TransformComponent";
import Vector3 from "grimoirejs-math/ref/Vector3";
Expand Down
6 changes: 5 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
machine:
node:
version: 6.9.5
version: 9.3.0
test:
post:
- sh release.sh
Expand All @@ -10,6 +10,10 @@ test:
override:
- npm run lint && npm run build && npm run coverage
- sh -x shell/e2e.sh
checkout:
post:
- git submodule init
- git submodule update
deployment:
deploy:
branch: master
Expand Down
1 change: 1 addition & 0 deletions common
Submodule common added at b4ac94
45 changes: 25 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grimoirejs",
"version": "0.0.0-development",
"version": "1.0.9-beta30",
"description": "A service-oriented WebGL framework.",
"main": "./ref/index.js",
"typings": "./ref/index.d.ts",
Expand All @@ -13,47 +13,49 @@
"grimoire"
],
"dependencies": {
"eventemitter3": "^2.0.3"
"eventemitter3": "^3.0.0"
},
"devDependencies": {
"ava": "^0.22.0",
"@types/sinon": "^4.1.2",
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.26.0",
"condition-circle": "^1.5.0",
"condition-circle": "^2.0.1",
"cpx": "^1.5.0",
"grimoirejs-cauldron": "^3.1.8",
"grimoirejs-cauldron": "^4.2.0-beta1",
"jsdom": "^11.3.0",
"lodash": "^4.17.2",
"nyc": "^11.3.0",
"nyc": "^11.4.1",
"proxyquire": "^1.7.11",
"regenerator-runtime": "^0.11.0",
"remap-istanbul": "^0.9.5",
"semantic-release": "^7.0.2",
"sinon": "^3.3.0",
"remap-istanbul": "^0.10.0",
"semantic-release": "^12.4.1",
"sinon": "^4.1.5",
"trash-cli": "^1.4.0",
"ts-loader": "^2.3.7",
"tslint": "^5.8.0",
"typedoc": "^0.8.0",
"ts-loader": "^3.2.0",
"tslint": "^5.9.1",
"typedoc": "^0.10.0",
"typedoc-md-theme": "^1.0.1",
"typescript": "^2.6.1",
"typescript-awaiter": "^1.0.0",
"webpack": "^3.8.1",
"webpack-shell-plugin": "^0.5.0",
"xhr-mock": "^1.9.1",
"xhr-mock": "^2.0.3",
"xmldom": "^0.1.27",
"yargs": "^8.0.2"
"xmlserializer": "^0.6.1"
},
"repository": "http://github.com/GrimoireGL/GrimoireJS",
"scripts": {
"debug": "node ./common/debug.js",
"coverage": "trash coverage && nyc --reporter=lcov --reporter=text --reporter=json --reporter=html npm run test",
"test": "trash test-lib && tsc -p tsconfig.test.json && cpx test/_TestResource/**/* test-lib/_TestResource && ava ./test-lib/**/*Test.js --verbose --serial",
"lint": "tslint -c tslint.json ./src/**/*.ts",
"prepublish": "webpack --progress --env.prod && npm test",
"test": "trash test-lib && tsc -p tsconfig.test.json && cpx test/_TestResource/**/* test-lib/_TestResource && ava --verbose --serial",
"lint": "tslint -c tslint.json ./src/**/*.ts --project ./ --exclude ./src/index.ts",
"lint:fix": "tslint -c tslint.json ./src/**/*.ts --project ./ --exclude ./src/index.ts --fix",
"prepare": "webpack --progress --env.prod && npm test",
"start": "webpack --progress --watch",
"build": "webpack --progress",
"generate-expose": "cauldron generate-exposure --src ./src --dest ./src/index.ts --ts --main ./src/main.ts --core",
Expand All @@ -69,12 +71,15 @@
},
"babel": {
"presets": [
"es2015",
"env",
"stage-2"
]
},
"ava": {
"failWithoutAssertions": false,
"files": [
"./test-lib/**/*Test.js"
],
"require": [
"babel-register"
],
Expand Down
8 changes: 0 additions & 8 deletions src/Base/Constants.ts

This file was deleted.

34 changes: 27 additions & 7 deletions src/Base/EEObject.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { EventEmitter, ListenerFn } from "eventemitter3";
import { EventID } from "../Core/Constants";
import IDObject from "./IDObject";

/**
* EventEmitterをmixinしたIDObject
*/
class EEObject extends IDObject implements EventEmitter {
class EEObject extends IDObject {
/**
* Return an array listing the events for which the emitter has registered
* listeners.
*/
public eventNames: () => Array<string | symbol>;
public eventNames: () => (string | symbol)[];

/**
* Return the listeners registered for a given event.
*/
public listeners: ((event: string | symbol, exists: boolean) => Array<ListenerFn> | boolean) & ((event: string | symbol) => Array<ListenerFn>);
public listeners: ((event: string | symbol, exists: boolean) => ListenerFn[] | boolean) & ((event: string | symbol) => ListenerFn[]);

/**
* Calls each of the listeners registered for a given event.
* Return the numbers of listeners.
*/
public emit: (event: string | symbol, ...args: Array<any>) => boolean;
public listenerCount: (event: string | symbol) => number;

/**
* Add a listener for a given event.
* add listener
*/
public on: (event: string | symbol, fn: ListenerFn, context?: any) => this;
public addListener: (event: string | symbol, fn: ListenerFn, context?: any) => this;

/**
Expand All @@ -36,16 +36,36 @@ class EEObject extends IDObject implements EventEmitter {
* Remove the listeners of a given event.
*/
public removeListener: (event: string | symbol, fn?: ListenerFn, context?: any, once?: boolean) => this;

/**
* remove listener.
*/
public off: (event: string | symbol, fn?: ListenerFn, context?: any, once?: boolean) => this;

/**
* Remove all listeners, or those of the specified event.
*/
public removeAllListeners: (event?: string | symbol) => this;

constructor() {
super();
EventEmitter.call(this);
}

/**
* Calls each of the listeners registered for a given event.
*/
public emit<T>(event: EventID<T> | string | symbol, args: T): boolean {
throw new Error(`this method will be override.${event}${args}`);
}

/**
* Add a listener for a given event.
*/
public on<T= any>(event: EventID<T> | string | symbol, fn: (args: T) => void, context?: any): this {
throw new Error(`this method will be override.${event}${fn}${context}`);
}

}

function applyMixins(derivedCtor: any, baseCtors: any[]) {
Expand Down
142 changes: 0 additions & 142 deletions src/Base/Ensure.ts

This file was deleted.

Loading