申明一下这个内容是在weex项目中的,地址在这里
Scripts
There are several scripts for end-user and developer.
For end users you can only know npm run build
and npm run serve
to start and npm run dev:examples
to write or modify a demo.
-
npm run build:browser
: build HTML5 renderer todist/browser.js
. -
npm run build:native
: build JS framework for native renderer todist/native.js
. -
npm run build:examples
: build all js bundles fromexamples/
toexamples/build/
. -
npm run build:test
: build all js bundles fromtest/
totest/build/
. -
npm run build
: build all above. -
npm run dev:browser
,npm run dev:native
,npm run dev:examples
,npm run dev:test
are the watcher mode for all build scripts, any file changes will automatically be built. -
npm run serve
: run a http server so you can access all examples in browser throughhttp://localhost:12580/
. note: you must runnpm run build
first to prepare all the built files. -
npm run clean:examples
: cleanexamples/build/
. -
npm run clean:test
: cleantest/build/
. -
npm run clean
: clean bothexamples/build/
andtest/build/
. -
npm run copy
: copy JS framework and examples into Android project. -
npm run lint
,npm run test
,npm run cover
andnpm run ci
are something quality assurance.
网友评论