From 442cda9b92c8684c429d8a6e554a2963dd93d0a4 Mon Sep 17 00:00:00 2001 From: york yao Date: Fri, 28 Apr 2017 00:22:39 +0800 Subject: [PATCH] move config file into demo directory --- .gitignore | 1 + rev-static.config.js => demo/rev-static.config.js | 0 webpack.config.js => demo/webpack.config.js | 0 package.json | 4 ++-- 4 files changed, 3 insertions(+), 2 deletions(-) rename rev-static.config.js => demo/rev-static.config.js (100%) rename webpack.config.js => demo/webpack.config.js (100%) diff --git a/.gitignore b/.gitignore index 81ccdc2..1bae333 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ src/angular-node.html src/angular-tree.html src/vue-node.html src/vue-tree.html +!*.config.js \ No newline at end of file diff --git a/rev-static.config.js b/demo/rev-static.config.js similarity index 100% rename from rev-static.config.js rename to demo/rev-static.config.js diff --git a/webpack.config.js b/demo/webpack.config.js similarity index 100% rename from webpack.config.js rename to demo/webpack.config.js diff --git a/package.json b/package.json index 08aeb4e..c2361ae 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "A reactjs, angular and vuejs tree component.", "main": "index.js", "scripts": { - "build": "npm run minifier-template && npm run file2variable && tsc -p src && tsc -p demo && lessc src/tree.less > dist/tree.css && cleancss -o dist/tree.min.css dist/tree.css && webpack && npm run rev", + "build": "npm run minifier-template && npm run file2variable && tsc -p src && tsc -p demo && lessc src/tree.less > dist/tree.css && cleancss -o dist/tree.min.css dist/tree.css && webpack --config demo/webpack.config.js && npm run rev", "lint": "tslint \"src/*.ts\" \"src/*.tsx\" \"demo/**/*.ts\" \"demo/**/*.tsx\" && stylelint \"src/*.less\" --syntax less", - "rev": "npm run clean-rev && rev-static", + "rev": "npm run clean-rev && rev-static --config demo/rev-static.config.js", "clean-rev": "rimraf demo/react.bundle-*.js demo/vue.bundle-*.js demo/angular.bundle-*.js", "image": "image2base64-cli images/*.png images/*.gif --less src/variables.less", "minifier-template": "html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/vue-node.template.html -o src/vue-node.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/vue-tree.template.html -o src/vue-tree.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/angular-node.template.html -o src/angular-node.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/angular-tree.template.html -o src/angular-tree.html",