diff --git a/index.html b/index.html index 66a833728..ab42c3371 100644 --- a/index.html +++ b/index.html @@ -5,14 +5,14 @@ + href="./dist/core.css"/> + href="./dist/base.css"/> - - - - + + + +
diff --git a/package.json b/package.json index e4eae52c2..04d5cb78e 100644 --- a/package.json +++ b/package.json @@ -3,19 +3,20 @@ "version": "1.0.0", "description": "fineui", "main": "index.js", - "dependencies": { - - }, + "dependencies": {}, "devDependencies": { + "express": "^4.15.2", "grunt": "^1.0.1", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-cssmin": "^1.0.1", "grunt-contrib-jshint": "^1.0.0", "grunt-contrib-uglify": "^1.0.1", - "grunt-contrib-watch": "^1.0.0" + "grunt-contrib-watch": "^1.0.0", + "open": "0.0.5" }, "scripts": { - "grunt": "grunt" + "grunt": "grunt", + "start": "node server.js" }, "author": "", "license": "MIT" diff --git a/server.js b/server.js new file mode 100644 index 000000000..a9fd0cede --- /dev/null +++ b/server.js @@ -0,0 +1,13 @@ +/*eslint no-console:0 */ +'use strict'; +const express = require('express'); +const open = require('open'); +const fs=require("fs"); +const app = express(); +const port = 3000; + +app.use(express.static("./")); +app.listen(port, function() { + console.log("server start"); + open('http://localhost:' + port + '/index.html'); +});