From a8be35b21d47eaa2d1dfb9dfa436c926b3ef647a Mon Sep 17 00:00:00 2001 From: Fynn Becker <info@fynn-becker.de> Date: Sun, 23 Jul 2017 12:58:42 +0200 Subject: [PATCH] Use cross-platform cpr for npm install hook (#8) --- .gitignore | 5 +++++ package.json | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43e7147 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules + +# Exclude generated files +_system-font.scss +system-font.less diff --git a/package.json b/package.json index 4fdab1a..b1f6d60 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,12 @@ "engines": { "node": ">=0.8.0" }, - "dependencies": {}, + "dependencies": { + "cpr": "^2.2.0" + }, "devDependencies": {}, "main": "system-font.css", "scripts": { - "install": "cp system-font.css _system-font.scss ; cp system-font.css system-font.less" + "install": "cpr system-font.css _system-font.scss -o && cpr system-font.css system-font.less -o" } -} \ No newline at end of file +} -- GitLab