Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit dfdf1f5

Browse files
committed
1.3.0
1 parent fa9599f commit dfdf1f5

File tree

5 files changed

+99
-22
lines changed

5 files changed

+99
-22
lines changed

module/build.js

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

module/setting.js

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

module/setting.yaml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
langs:
2+
type: textarea
3+
category: system
4+
desc: Language file settings
5+
name: langs
6+
default: |
7+
ccWithoutO2:
8+
type: compiler
9+
compile: /usr/bin/g++ -Wall -o ${name} foo.cc
10+
code_file: foo.cc
11+
execute: ${dir}/${name}
12+
c:
13+
type: compiler
14+
compile: /usr/bin/gcc -O2 -Wall -std=c99 -o ${name} foo.c -lm
15+
code_file: foo.c
16+
execute: ${dir}/${name}
17+
cc:
18+
type: compiler
19+
compile: /usr/bin/g++ -O2 -Wall -std=c++11 -o ${name} foo.cc -lm
20+
code_file: foo.cc
21+
execute: ${dir}/${name}
22+
cc98:
23+
type: compiler
24+
compile: /usr/bin/g++ -O2 -Wall -std=c++11 -o ${name} foo.cc -lm
25+
code_file: foo.cc
26+
execute: ${dir}/${name}
27+
cc11:
28+
type: compiler
29+
compile: /usr/bin/g++ -O2 -Wall -std=c++11 -o ${name} foo.cc -lm
30+
code_file: foo.cc
31+
execute: ${dir}/${name}
32+
cc17:
33+
type: compiler
34+
compile: /usr/bin/g++ -O2 -Wall -std=c++17 -o ${name} foo.cc -lm
35+
code_file: foo.cc
36+
execute: ${dir}/${name}
37+
pas:
38+
type: compiler
39+
compile: /usr/bin/fpc -O2 -o${dir}/${name} foo.pas
40+
code_file: foo.pas
41+
execute: ${dir}/${name}
42+
java:
43+
type: compiler
44+
compile: /usr/bin/javac -d ${dir} -encoding utf8 ./Main.java
45+
code_file: Main.java
46+
execute: /usr/bin/java Main
47+
py:
48+
type: compiler
49+
compile: /usr/bin/python -c "import py_compile; py_compile.compile('${dir}/foo.py', '${dir}/${name}', doraise=True)"
50+
code_file: foo.py
51+
execute: /usr/bin/python ${name}
52+
py2:
53+
type: compiler
54+
compile: /usr/bin/python -c "import py_compile; py_compile.compile('${dir}/foo.py', '${dir}/${name}', doraise=True)"
55+
code_file: foo.py
56+
execute: /usr/bin/python ${name}
57+
py3:
58+
type: compiler
59+
compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('${dir}/foo.py', '${dir}/${name}', doraise=True)"
60+
code_file: foo.py
61+
execute: /usr/bin/python3 ${name}
62+
php:
63+
type: interpreter
64+
code_file: foo.php
65+
execute: /usr/bin/php ${name}
66+
rs:
67+
type: compiler
68+
compile: /usr/bin/rustc -O -o ${dir}/${name} ${dir}/foo.rs
69+
code_file: foo.rs
70+
execute: ${dir}/${name}
71+
hs:
72+
type: compiler
73+
compile: /usr/bin/ghc -O -outputdir /tmp -o ${name} foo.hs
74+
code_file: foo.hs
75+
execute: ${dir}/${name}
76+
js:
77+
type: interpreter
78+
code_file: foo.js
79+
execute: /usr/bin/jsc ${dir}/${name}
80+
go:
81+
type: compiler
82+
compile: /usr/bin/go build -o ${name} foo.go
83+
code_file: foo.go
84+
execute: ${dir}/${name}
85+
rb:
86+
type: interpreter
87+
code_file: foo.rb
88+
execute: /usr/bin/ruby ${name}
89+
cs:
90+
type: compiler
91+
compile: /usr/bin/mcs -optimize+ -out:${dir}/${name} ${dir}/foo.cs
92+
code_file: foo.cs
93+
execute: /usr/bin/mono ${name}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hydrojudger",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"main": "judger/daemon.js",
55
"author": "masnn",
66
"dependencies": {
@@ -18,7 +18,7 @@
1818
"eslint": "^7.2.0",
1919
"eslint-config-airbnb-base": "^14.2.0",
2020
"eslint-plugin-import": "^2.21.2",
21-
"hydro-build": "^1.0.4"
21+
"hydro-build": "^1.0.5"
2222
},
2323
"bin": {
2424
"judger": "judger/entrypoint.js"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,10 +1622,10 @@ https-browserify@^1.0.0:
16221622
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"
16231623
integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=
16241624

1625-
hydro-build@^1.0.4:
1626-
version "1.0.4"
1627-
resolved "https://registry.yarnpkg.com/hydro-build/-/hydro-build-1.0.4.tgz#662038c60417d89e0ba087f8af04e129a828fba4"
1628-
integrity sha512-7T7A6ztCGMObs3KoatFyaT+D9xhC3vT2srpGesmIOtm39o6A9zNZ947IdbWvLvz/rVcuTt5Nd/xXSp8IdXlA6g==
1625+
hydro-build@^1.0.5:
1626+
version "1.0.5"
1627+
resolved "https://registry.yarnpkg.com/hydro-build/-/hydro-build-1.0.5.tgz#0b2cfb44df2ff9fd4c7f116f275a3a6489aa4f43"
1628+
integrity sha512-zG74MNONhNe3KDnTIbGdTPTjT5pm1lskMlcXh3AW64INn+40nU0mcWcSPuu3OtSGnnNxgixz0R4JBEQVE8+DRw==
16291629
dependencies:
16301630
friendly-errors-webpack-plugin "^1.7.0"
16311631
js-yaml "^3.14.0"

0 commit comments

Comments
 (0)