mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
renamed js folder to scripts
renamed sass folder to styles moved types folder inside scripts
This commit is contained in:
parent
b3f85e830d
commit
202868269e
138 changed files with 10 additions and 10 deletions
|
@ -22,7 +22,7 @@ task("clean", function () {
|
|||
});
|
||||
|
||||
task("lint", function () {
|
||||
return src(["./src/js/**/*.js", "./src/js/**/*.ts"])
|
||||
return src(["./src/scripts/**/*.js", "./src/scripts/**/*.ts"])
|
||||
.pipe(eslint(eslintConfig))
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
|
@ -36,7 +36,7 @@ task("lint-json", function () {
|
|||
});
|
||||
|
||||
task("copy-src-contents", function () {
|
||||
return src("./src/js/**").pipe(dest("./dist/"));
|
||||
return src("./src/scripts/**").pipe(dest("./dist/"));
|
||||
});
|
||||
|
||||
task("transpile-ts", function () {
|
||||
|
@ -76,7 +76,7 @@ task("static", function () {
|
|||
});
|
||||
|
||||
task("sass", function () {
|
||||
return src("./src/sass/*.scss")
|
||||
return src("./src/styles/*.scss")
|
||||
.pipe(concat("style.scss"))
|
||||
.pipe(sass({ outputStyle: "compressed" }).on("error", sass.logError))
|
||||
.pipe(dest("public/css"));
|
||||
|
@ -144,9 +144,9 @@ task(
|
|||
);
|
||||
|
||||
task("watch", function () {
|
||||
watch("./src/sass/**/*.scss", series("sass"));
|
||||
watch("./src/styles/**/*.scss", series("sass"));
|
||||
watch(
|
||||
["./src/js/**/*.js", "./src/js/**/*.ts"],
|
||||
["./src/scripts/**/*.js", "./src/scripts/**/*.ts"],
|
||||
series("lint", "copy-src-contents", "transpile-ts", "webpack")
|
||||
);
|
||||
watch("./static/**/*.*", series("lint-json", "static"));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// @ts-ignore
|
||||
import * as Loader from "./elements/loader";
|
||||
import * as Types from "../types/interfaces";
|
||||
import * as Types from "./types/interfaces";
|
||||
|
||||
export function getuid(): void {
|
||||
console.error("Only share this uid with Miodec and nobody else!");
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue