From 9edf4e80682b86da153949419fcaa95deacee082 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 21 Feb 2020 09:59:03 +0100 Subject: [PATCH] Switched to rimraf to get rid of all UNIX dependencies --- package-lock.json | 39 +++++++++++++++++++++++++++++++++++---- package.json | 8 +++++--- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1d3bf1380..79074068e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "5.0.0b2", + "version": "5.0.0b2-1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1236,6 +1236,15 @@ "yallist": "^3.0.2" } }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -1726,6 +1735,17 @@ "mkdirp": "^0.5.1", "rimraf": "^2.5.4", "run-queue": "^1.0.0" + }, + "dependencies": { + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, "copy-descriptor": { @@ -4808,6 +4828,17 @@ "mkdirp": "^0.5.1", "rimraf": "^2.5.4", "run-queue": "^1.0.3" + }, + "dependencies": { + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, "ms": { @@ -6310,9 +6341,9 @@ "dev": true }, "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "requires": { "glob": "^7.1.3" diff --git a/package.json b/package.json index 77d0ee352..3bf87d547 100644 --- a/package.json +++ b/package.json @@ -24,12 +24,13 @@ "url": "https://github.com/squidfunk/mkdocs-material.git" }, "scripts": { - "build": "npm run clean && npx webpack --mode production", - "clean": "rm -rf material", + "build": "npm run dirty && npx webpack --mode production", + "clean": "npx rimraf 'material'", + "dirty": "npx rimraf 'material/!(.fontawesome)'", "lint": "npm run lint:ts && npm run lint:scss", "lint:scss": "npx stylelint `find src/assets -name *.scss`", "lint:ts": "npx tslint -p tsconfig.json 'src/**/*.ts'", - "start": "npm run clean && npx webpack --mode development --watch" + "start": "npm run dirty && npx webpack --mode development --watch" }, "dependencies": { "clipboard": "^2.0.0", @@ -71,6 +72,7 @@ "null-loader": "^3.0.0", "postcss-loader": "^3.0.0", "preact": "^10.1.1", + "rimraf": "^3.0.2", "sass": "^1.25.0", "sass-loader": "^8.0.2", "stylelint": "^11.1.1",