op-red-line的前端代码
Based on
Cycle.js
、draw2d.js
to develop. And usewebpack
to manage package and build application.
// first to install dependencies library
npm install
// and then you can choose dev in server or build for app or test in server
// dev
npm run start
// build
// generated code will build into the `dist` folder
npm run build
// test
npm run test
Folder script
is store the execution code in command line:
The code for dev server is in the
start.js
file.
The code for build application is in the
build.js
file.
The code for unit test server is in the
test.js
file.
Folder src
is store you write code:
Folder
asserts
is store some static file.
Folder
components
is store your component code.
Folder
pages
is store your integration component code.
Folder
utils
is store your tool code. such as plugin、driver ...
File
app.js
Integrating the module code into an application.
File
index.js
is the entry for your application. Usually to do mount the application and use of style.
File
index.html
is thehtml
build template.
File
route.js
is the router forpages
Folder test
is store your unit test.