Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
mars-static
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
2
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
2017-12-25 14:22:06 +0800
Commit
499befe602cdace763241bcfc14b65528d945395
1 parent
807573c5
add build
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
build.js
package.json
build.js
0 → 100644
View file @
499befe
const
ada
=
require
(
'ada'
)
const
pkg
=
require
(
'./package.json'
)
ada
.
build
({
cwd
:
process
.
cwd
(),
srcDir
:
'src'
,
distDir
:
'public/dist/mars-static/'
+
pkg
.
version
})
...
...
package.json
View file @
499befe
{
"name"
:
"mars-s
eo
"
,
"name"
:
"mars-s
tatic
"
,
"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"
}
}
...
...
Please
register
or
login
to post a comment