Authored by 毕凯

add build

  1 +const ada = require('ada')
  2 +const pkg = require('./package.json')
  3 +
  4 +ada.build({
  5 + cwd: process.cwd(),
  6 + srcDir: 'src',
  7 + distDir: 'public/dist/mars-static/' + pkg.version
  8 +})
1 { 1 {
2 - "name": "mars-seo", 2 + "name": "mars-static",
3 "version": "1.0.0", 3 "version": "1.0.0",
4 - "description": "mars-seo",  
5 - "main": "index.js", 4 + "description": "mars-static",
  5 + "main": "build.js",
6 "scripts": { 6 "scripts": {
7 - "test": "echo \"Error: no test specified\" && exit 1" 7 + "start": "node build.js",
  8 + "dev": "ada --host 0.0.0.0 --port 7002",
  9 + "build": "node build.js"
8 }, 10 },
9 "author": "", 11 "author": "",
10 "license": "ISC", 12 "license": "ISC",
11 "dependencies": { 13 "dependencies": {
12 - "eslint-plugin-import": "^2.8.0",  
13 - "eslint-plugin-node": "^5.2.1",  
14 - "jquery": "^1.12.4",  
15 - "jquery-lazyload": "^1.9.7",  
16 - "postcss-sass": "^0.2.0",  
17 - "stylelint-config-standard": "^18.0.0" 14 + "ada": "^0.1.6"
18 }, 15 },
19 "devDependencies": { 16 "devDependencies": {
20 - "eslint": "^4.13.1",  
21 - "eslint-config-standard": "^11.0.0-beta.0",  
22 - "eslint-plugin-promise": "^3.6.0",  
23 - "eslint-plugin-standard": "^3.0.1",  
24 - "gulp-postcss": "^7.0.0",  
25 - "postcss-reporter": "^5.0.0",  
26 - "postcss-scss": "^1.0.2",  
27 - "stylelint": "^8.3.1" 17 + "jquery": "^1.12.4",
  18 + "jquery-lazyload": "^1.9.7"
28 } 19 }
29 } 20 }