Skip to content
This repository was archived by the owner on Apr 18, 2022. It is now read-only.

Commit 32b3d28

Browse files
committed
Initial commit
0 parents  commit 32b3d28

8,189 files changed

Lines changed: 747802 additions & 0 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Minimine
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# mcscriptStudioCode

compile.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
echo [typescript] compiling typescript
3+
start /min cmd . /k "tsc src/index.ts&exit"
4+
ping 127.0.0.1 -n 6 > nul
5+
gulp all

execute.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node src/index.js

gulpfile.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
let gulp = require("gulp");
2+
let sass = require("gulp-sass");
3+
let cleanCSS = require('gulp-clean-css');
4+
let autoprefixer = require('gulp-autoprefixer');
5+
let rename = require("gulp-rename");
6+
let babel = require('gulp-babel');
7+
let concat = require('gulp-concat');
8+
let minify = require('gulp-minify');
9+
let concatCss = require('gulp-concat-css');
10+
11+
gulp.task("sass", parse_sass);
12+
gulp.task("js", parse_js);
13+
gulp.task("html", parse_html);
14+
15+
gulp.task("all", function() {
16+
parse_sass();
17+
parse_js();
18+
parse_html();
19+
});
20+
21+
function parse_sass() {
22+
gulp.src('./src/htdocs/sass/*.sass')
23+
.pipe(sass())
24+
.pipe(autoprefixer())
25+
.pipe(rename({}))
26+
.pipe(gulp.dest("./app/htdocs/css"))
27+
.pipe(cleanCSS())
28+
.pipe(rename({suffix: '.min'}))
29+
.pipe(minify())
30+
.pipe(gulp.dest("./app/htdocs/css"))
31+
.pipe(concatCss("global.css"))
32+
.pipe(gulp.dest("./app/htdocs/css"))
33+
.pipe(rename({suffix: '.min'}))
34+
.pipe(minify())
35+
.pipe(gulp.dest("./app/htdocs/css"));
36+
}
37+
38+
function parse_js() {
39+
gulp.src('./src/htdocs/scripts/*.js')
40+
.pipe(babel({presets:["es2015"]}))
41+
.pipe(gulp.dest("./app/htdocs/scripts"))
42+
.pipe(minify())
43+
.pipe(gulp.dest("./app/htdocs/scripts"))
44+
.pipe(concat('global.js'))
45+
.pipe(gulp.dest("./app/htdocs/scripts"))
46+
.pipe(minify())
47+
.pipe(gulp.dest("./app/htdocs/scripts"));
48+
}
49+
50+
function parse_html() {
51+
gulp.src('./src/htdocs/*.html')
52+
.pipe(gulp.dest("./app/htdocs/"));
53+
}

node_modules/.bin/atob

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/atob.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/autoprefixer

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/autoprefixer.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)