Moved build scripts to subfolder

This commit is contained in:
squidfunk 2021-02-22 18:23:33 +01:00
parent b97b747150
commit 3f8475aad1
7 changed files with 12 additions and 12 deletions

16
.gitignore vendored
View File

@ -23,18 +23,18 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Dependencies # Dependencies
node_modules /node_modules
__pycache__ /__pycache__
venv /venv
# Build files # Build files
build /build
MANIFEST /MANIFEST
site /site
# Distribution files # Distribution files
dist /dist
mkdocs_material.egg-info /mkdocs_material.egg-info
# Caches and logs # Caches and logs
*.cpuprofile *.cpuprofile

View File

@ -26,12 +26,12 @@
"scripts": { "scripts": {
"build": "run-s build:*", "build": "run-s build:*",
"build:clean": "rimraf material", "build:clean": "rimraf material",
"build:tools": "ts-node -T tools --optimize", "build:tools": "ts-node -T tools/build --optimize",
"clean": "rimraf material", "clean": "rimraf material",
"lint": "run-p lint:*", "lint": "run-p lint:*",
"lint:scss": "stylelint \"src/assets/**/*.scss\"", "lint:scss": "stylelint \"src/assets/**/*.scss\"",
"lint:ts": "eslint --cache \"src/**/*.ts\"", "lint:ts": "eslint --cache \"src/**/*.ts\"",
"start": "ts-node -T tools --watch" "start": "ts-node -T tools/build --watch"
}, },
"dependencies": { "dependencies": {
"clipboard": "^2.0.6", "clipboard": "^2.0.6",

View File

@ -189,7 +189,7 @@ const templates$ = manifest$
to: base, to: base,
watch: process.argv.includes("--watch"), watch: process.argv.includes("--watch"),
transform: async data => { transform: async data => {
const metadata = require("../package.json") const metadata = require("../../package.json")
const banner = const banner =
"{#-\n" + "{#-\n" +
" This file was automatically generated - do not edit\n" + " This file was automatically generated - do not edit\n" +

View File

@ -33,9 +33,9 @@
"target": "es2015" "target": "es2015"
}, },
"include": [ "include": [
"tools",
"src/assets/javascripts", "src/assets/javascripts",
"src/overrides/assets/javascripts", "src/overrides/assets/javascripts",
"tools",
"typings", "typings",
"webpack.config.ts" "webpack.config.ts"
] ]