Make lib dir prior to building

-p option will not error if lib already exists
This commit is contained in:
Luke Barnard 2017-06-28 11:54:05 +01:00
parent 2b8da85726
commit 22ddbc63c3

View file

@ -33,8 +33,9 @@
"scripts": {
"reskindex": "node scripts/reskindex.js -h header",
"reskindex:watch": "node scripts/reskindex.js -h header -w",
"build": "npm run emoji-data-strip && npm run reskindex && babel src -d lib --source-maps",
"build:watch": "npm run emoji-data-strip && babel src -w -d lib --source-maps",
"build:init": "mkdir -p lib && npm run emoji-data-strip",
"build": "npm run build:init && npm run reskindex && babel src -d lib --source-maps",
"build:watch": "npm run build:init && babel src -w -d lib --source-maps",
"emoji-data-strip": "node scripts/emoji-data-strip.js",
"start": "parallelshell \"npm run build:watch\" \"npm run reskindex:watch\"",
"lint": "eslint src/",