mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-09 12:56:07 +08:00
Rename scripts to ts (#2869) ferotiq
* Rename scripts to ts * Update config.base.js * Delete firebase-config.ts
This commit is contained in:
parent
4d365802a1
commit
f584d683bb
150 changed files with 20 additions and 42 deletions
|
|
@ -23,7 +23,6 @@
|
|||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
// "parser": "@typescript-eslint/parser",
|
||||
"rules": {
|
||||
"json/*": ["error"],
|
||||
"indent": ["off"],
|
||||
|
|
|
|||
8
.github/workflows/pr-check.yml
vendored
8
.github/workflows/pr-check.yml
vendored
|
|
@ -28,20 +28,18 @@ jobs:
|
|||
- 'frontend/static/layouts/*.json'
|
||||
any-tsscss:
|
||||
- 'frontend/**/*.scss'
|
||||
- 'frontend/**/*.js'
|
||||
- 'frontend/**/*.ts'
|
||||
- 'backend/**/*.{js,ts}'
|
||||
- 'backend/**/*.ts'
|
||||
ts-scss-fe:
|
||||
- 'frontend/**/*.js'
|
||||
- 'frontend/**/*.ts'
|
||||
- 'frontend/**/*.scss'
|
||||
ts-be:
|
||||
- 'backend/**/*.{js,ts}'
|
||||
- 'backend/**/*.ts'
|
||||
anti-cheat:
|
||||
- 'backend/**/anticheat/**'
|
||||
|
||||
- name: Create stub firebase config
|
||||
working-directory: ./frontend/src/scripts/constants
|
||||
working-directory: ./frontend/src/ts/constants
|
||||
run: mv ./firebase-config-example.ts ./firebase-config-live.ts
|
||||
|
||||
- name: Check Anti-cheat
|
||||
|
|
|
|||
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -78,8 +78,8 @@ node_modules_bak/
|
|||
.firebaserc
|
||||
.firebaserc_copy
|
||||
serviceAccountKey*.json
|
||||
frontend/src/scripts/constants/firebase-config.ts
|
||||
frontend/src/scripts/constants/firebase-config-live.ts
|
||||
frontend/src/ts/constants/firebase-config.ts
|
||||
frontend/src/ts/constants/firebase-config-live.ts
|
||||
|
||||
#generated files
|
||||
dist/
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ Alternatively, if you use `nvm` then you can run `nvm install` and `nvm use` (yo
|
|||
|
||||
- Run `firebase projects:list` to find your firebase project id.
|
||||
|
||||
1. Within the `frontend/src/scripts/constants` directory, duplicate `firebase-config-example.ts`, rename it to `firebase-config.ts` and paste in your firebase config
|
||||
1. Within the `frontend/src/ts/constants` directory, duplicate `firebase-config-example.ts`, rename it to `firebase-config.ts` and paste in your firebase config
|
||||
|
||||
- To find it, go to the Firebase console
|
||||
- Navigate to `Project Settings > General > Your apps`
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const JSONValidation = require("./scripts/json-validation");
|
|||
const eslintConfig = "../.eslintrc.json";
|
||||
|
||||
task("lint", function () {
|
||||
return src(["./src/scripts/**/*.js", "./src/scripts/**/*.ts"])
|
||||
return src(["./src/ts/**/*.ts"])
|
||||
.pipe(eslint(eslintConfig))
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
|
|
@ -57,15 +57,7 @@ task(
|
|||
);
|
||||
|
||||
task("watch", function () {
|
||||
watch(
|
||||
[
|
||||
"./src/scripts/**/*.js",
|
||||
"./src/scripts/**/*.ts",
|
||||
"./src/scripts/*.js",
|
||||
"./src/scripts/*.ts",
|
||||
],
|
||||
series("lint")
|
||||
);
|
||||
watch(["./src/ts/**/*.ts", "./src/ts/*.ts"], series("lint"));
|
||||
watch(["./static/**/*.*", "./static/*.*"], series("lint-json"));
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"live": "npm run build:live && cd public && npx serve -p 5000",
|
||||
"audit": "npx webpack --config ./webpack/config.audit.js",
|
||||
"dep-graph": "madge -c -i \"dep-graph.png\" ./src/scripts",
|
||||
"dep-graph": "madge -c -i \"dep-graph.png\" ./src/ts",
|
||||
"build": "npx gulp build",
|
||||
"build:live": "npx gulp build-production",
|
||||
"dev": "concurrently \"webpack serve --config=./webpack/config.dev.js\" \"npx gulp watch\"",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// this file should be concatenated at the top of the legacy js files
|
||||
// this file should be concatenated at the top of the legacy ts files
|
||||
|
||||
import "../styles/index.scss";
|
||||
import "./firebase";
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue