Skip to content

Commit 12d248e

Browse files
committed
adds script files [skip ci]
1 parent 99fa27f commit 12d248e

Some content is hidden

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

46 files changed

+19255
-5
lines changed

.circleci/config.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
working_directory: ~/repo
5+
docker:
6+
- image: circleci/node:9-browsers
7+
8+
jobs:
9+
build:
10+
<<: *defaults
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
keys:
15+
- node-cache-{{ checksum "package.json" }}
16+
- node-cache-
17+
18+
- git-cache-{{ .Branch }}-{{ .Revision }}
19+
- git-cache-{{ .Branch }}-
20+
- git-cache-
21+
- run:
22+
name: Install JDK
23+
command: npm install jdk --save-dev
24+
- run:
25+
name: Install symantic-release
26+
command: |
27+
npm install semantic-release --save-dev
28+
npm install @semantic-release/exec --save-dev
29+
npm install @semantic-release/changelog --save-dev
30+
npm install @semantic-release/git --save-dev
31+
- run:
32+
name: Install node_modules with npm
33+
command: npm install
34+
- save_cache:
35+
key: node-cache-{{ checksum "package.json" }}
36+
paths:
37+
- ./node_modules
38+
- save_cache:
39+
key: git-cache-{{ .Branch }}-{{ .Revision }}
40+
paths:
41+
- ".git"
42+
- run:
43+
name: Build temporary script
44+
command: npm run build
45+
- persist_to_workspace:
46+
root: ~/repo
47+
paths:
48+
- ./
49+
50+
test:
51+
<<: *defaults
52+
steps:
53+
- attach_workspace:
54+
at: ~/repo
55+
- run:
56+
name: Run Google Closure Compiler
57+
command: npm run test
58+
- persist_to_workspace:
59+
root: ~/repo
60+
paths:
61+
- ./
62+
63+
deploy:
64+
<<: *defaults
65+
steps:
66+
- attach_workspace:
67+
at: ~/repo
68+
- run:
69+
name: Deploy Github release
70+
command: npm run semantic-release
71+
- run:
72+
name: Push to server
73+
command: scp -o "StrictHostKeyChecking no" dist/* CHANGELOG.md $GRCRT_USER@$GRCRT_SERVER:$GRCRT_PATH
74+
75+
workflows:
76+
version: 2
77+
build_test_deploy:
78+
jobs:
79+
- build:
80+
filters:
81+
branches:
82+
only: master
83+
- test:
84+
requires:
85+
- build
86+
- deploy:
87+
requires:
88+
- test
89+
90+
notify:
91+
webhooks:
92+
- url: https://webhooks.gitter.im/e/4ded253c643be4ece1d5

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Below you will find a set of guidelines for contributing to the GRCRT project. T
2929

3030
## Code of Conduct
3131

32-
This project and everyone participating in it is governed by the GRCRT [Code of Conduct](https://github.com/grcrt/script/blob/docs/.github/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [developer@grcrt.net](mailto:developer@grcrt.net).
32+
This project and everyone participating in it is governed by the GRCRT [Code of Conduct](https://github.com/grcrt/grcrt-script/blob/docs/.github/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [developer@grcrt.net](mailto:developer@grcrt.net).
3333

3434

3535
## What should I know before I get started?
@@ -60,8 +60,8 @@ You'll find final script (with *.meta.js file) inside ./dist directory
6060

6161
### Reporting a bug
6262

63-
- make sure the bug is not already reported, by checking our [issues page](https://github.com/grcrt/sript/issues) :mag_right:
64-
- if you're unable to find an open issue addressing the problem, [create one](https://github.com/grcrt/sript/issues/new) :pencil:
63+
- make sure the bug is not already reported, by checking our [issues page](https://github.com/grcrt/grcrt-script/issues) :mag_right:
64+
- if you're unable to find an open issue addressing the problem, [create one](https://github.com/grcrt/grcrt-script/issues/new) :pencil:
6565
- please use the template, we provided, and fill it in as thoroughly as possible :pray: - the more details you provide, the more it help us to solve it
6666

6767
### Fixing a bug
@@ -101,7 +101,7 @@ Alternatively, you can share your improvements on our [our Gitter chat](https://
101101
- create new repo on your GitHub account. For example GRCRT-wiki
102102
- clone our wiki, by running following command
103103
```
104-
$ git clone https://github.com/GRCRT/script.wiki.git
104+
$ git clone https://github.com/grcrt/grcrt-script.wiki.git
105105
```
106106
- change the remote
107107
```

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
<a name="4.0.3"></a>
2+
## [4.0.3](https://github.com/tomaski/grcrt-sandbox/compare/v4.0.2...v4.0.3) (2018-04-15)
3+
4+
5+
### Bug Fixes
6+
7+
* **config:** fixed some cofig shit ([b354260](https://github.com/tomaski/grcrt-sandbox/commit/b354260))
8+
* cleared version.sh ([1f2395e](https://github.com/tomaski/grcrt-sandbox/commit/1f2395e))
9+
* version.sh ([c802931](https://github.com/tomaski/grcrt-sandbox/commit/c802931))
10+
* version.sh v2 ([c0cdff4](https://github.com/tomaski/grcrt-sandbox/commit/c0cdff4))
11+
* version.sh v3 ([6c55c83](https://github.com/tomaski/grcrt-sandbox/commit/6c55c83))
12+
* version.sh v4 ([e02cf2b](https://github.com/tomaski/grcrt-sandbox/commit/e02cf2b))
13+
14+
<a name="4.0.3"></a>
15+
## [4.0.3](https://github.com/tomaski/grcrt-sandbox/compare/v4.0.2...v4.0.3) (2018-04-15)
16+
17+
18+
### Bug Fixes
19+
20+
* **config:** fixed some cofig shit ([b354260](https://github.com/tomaski/grcrt-sandbox/commit/b354260))
21+
* version.sh ([c802931](https://github.com/tomaski/grcrt-sandbox/commit/c802931))
22+
* version.sh v2 ([c0cdff4](https://github.com/tomaski/grcrt-sandbox/commit/c0cdff4))
23+
* version.sh v3 ([6c55c83](https://github.com/tomaski/grcrt-sandbox/commit/6c55c83))
24+
* version.sh v4 ([e02cf2b](https://github.com/tomaski/grcrt-sandbox/commit/e02cf2b))
25+
26+
<<<<<<< HEAD
27+
=======
28+
<a name="4.0.2"></a>
29+
## [4.0.2](https://github.com/tomaski/grcrt-sandbox/compare/v4.0.1...v4.0.2) (2018-04-14)
30+
31+
32+
### Bug Fixes
33+
34+
* **changelog:** update images positions ([beecf18](https://github.com/tomaski/grcrt-sandbox/commit/beecf18))
35+
36+
>>>>>>> parent of a76fff9500a0... chore(release): 4.0.3 [skip ci]
137
<a name="3.15.3"></a>
238
## [3.15.3](https://github.com/grcrt/grcrt) (2018-04-04)
339

GRCRT.f.errReporter.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
function grcrtErrReporter(err){
2+
function sendErr(){
3+
// console.log(_json)
4+
var __form = $('<form/>', {
5+
'action' : RepConv.grcrt_domain+'scripts/errorLog.php?_='+Timestamp.server(),
6+
'method' : 'post',
7+
'target' : 'GRCRTErrorSender'
8+
})
9+
.append($('<textarea/>',{'name': '_json'})
10+
.text(
11+
JSON.stringify(_json)
12+
)
13+
);
14+
$('#GRCRTErrorSenderTMP').html('').append(__form);
15+
__form.submit();
16+
17+
}
18+
var _json = {
19+
world : Game.world_id,
20+
time : (new Date()).toISOString(),
21+
userId : Game.player_id,
22+
version : RepConv.Scripts_version,
23+
browser : navigator.userAgent,
24+
error : {
25+
message : err.message,
26+
stack : err.stack
27+
}
28+
}
29+
if($('#GRCRTErrorSender').length == 0){
30+
$('body').append($('<iframe/>',{'id':'GRCRTErrorSender','name':'GRCRTErrorSender','style':'display:none'}));
31+
$('body').append($('<div/>',{'id':'GRCRTErrorSenderTMP'}).hide());
32+
}
33+
// console.log(_json)
34+
// console.log(JSON.stringify(_json))
35+
if(err.silent){
36+
sendErr()
37+
} else {
38+
console.log(_json);
39+
Layout.showConfirmDialog(
40+
"GRCRTools oops!",
41+
'<div><img src="'+RepConv.grcrt_cdn+'img/octopus.png" style="float:left;padding-right: 10px"/><p style="padding:5px"><b>Found error</b><br/><pre>'+err+'</pre><br/>You want send?</p></div>',
42+
function(){
43+
// console.log(_json)
44+
sendErr()
45+
}
46+
)
47+
}
48+
}

0 commit comments

Comments
 (0)