Authored by 毕凯

add build

const ada = require('ada')
const pkg = require('./package.json')
ada.build({
cwd: process.cwd(),
srcDir: 'src',
distDir: 'public/dist/mars-static/' + pkg.version
})
... ...
{
"name": "mars-seo",
"name": "mars-static",
"version": "1.0.0",
"description": "mars-seo",
"main": "index.js",
"description": "mars-static",
"main": "build.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node build.js",
"dev": "ada --host 0.0.0.0 --port 7002",
"build": "node build.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
"jquery": "^1.12.4",
"jquery-lazyload": "^1.9.7",
"postcss-sass": "^0.2.0",
"stylelint-config-standard": "^18.0.0"
"ada": "^0.1.6"
},
"devDependencies": {
"eslint": "^4.13.1",
"eslint-config-standard": "^11.0.0-beta.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1",
"gulp-postcss": "^7.0.0",
"postcss-reporter": "^5.0.0",
"postcss-scss": "^1.0.2",
"stylelint": "^8.3.1"
"jquery": "^1.12.4",
"jquery-lazyload": "^1.9.7"
}
}
... ...