diff --git a/.gitignore b/.gitignore index 04817ff4d..76fd1a1ad 100644 --- a/.gitignore +++ b/.gitignore @@ -23,18 +23,18 @@ # ----------------------------------------------------------------------------- # Dependencies -node_modules -__pycache__ -venv +/node_modules +/__pycache__ +/venv # Build files -build -MANIFEST -site +/build +/MANIFEST +/site # Distribution files -dist -mkdocs_material.egg-info +/dist +/mkdocs_material.egg-info # Caches and logs *.cpuprofile diff --git a/package.json b/package.json index bf841568c..9a85959c5 100644 --- a/package.json +++ b/package.json @@ -26,12 +26,12 @@ "scripts": { "build": "run-s build:*", "build:clean": "rimraf material", - "build:tools": "ts-node -T tools --optimize", + "build:tools": "ts-node -T tools/build --optimize", "clean": "rimraf material", "lint": "run-p lint:*", "lint:scss": "stylelint \"src/assets/**/*.scss\"", "lint:ts": "eslint --cache \"src/**/*.ts\"", - "start": "ts-node -T tools --watch" + "start": "ts-node -T tools/build --watch" }, "dependencies": { "clipboard": "^2.0.6", diff --git a/tools/_/index.ts b/tools/build/_/index.ts similarity index 100% rename from tools/_/index.ts rename to tools/build/_/index.ts diff --git a/tools/copy/index.ts b/tools/build/copy/index.ts similarity index 100% rename from tools/copy/index.ts rename to tools/build/copy/index.ts diff --git a/tools/index.ts b/tools/build/index.ts similarity index 99% rename from tools/index.ts rename to tools/build/index.ts index 7890d9d1a..a8b112ef0 100644 --- a/tools/index.ts +++ b/tools/build/index.ts @@ -189,7 +189,7 @@ const templates$ = manifest$ to: base, watch: process.argv.includes("--watch"), transform: async data => { - const metadata = require("../package.json") + const metadata = require("../../package.json") const banner = "{#-\n" + " This file was automatically generated - do not edit\n" + diff --git a/tools/transform/index.ts b/tools/build/transform/index.ts similarity index 100% rename from tools/transform/index.ts rename to tools/build/transform/index.ts diff --git a/tsconfig.json b/tsconfig.json index 604c88c3e..a65e8ee5e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,9 +33,9 @@ "target": "es2015" }, "include": [ + "tools", "src/assets/javascripts", "src/overrides/assets/javascripts", - "tools", "typings", "webpack.config.ts" ]