op-red-line的前端代码
Based on
Cycle.js、draw2d.jsto develop. And usewebpackto 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 testFolder script is store the execution code in command line:
The code for dev server is in the
start.jsfile.
The code for build application is in the
build.jsfile.
The code for unit test server is in the
test.jsfile.
Folder src is store you write code:
Folder
assertsis store some static file.
Folder
componentsis store your component code.
Folder
pagesis store your integration component code.
Folder
utilsis store your tool code. such as plugin、driver ...
File
app.jsIntegrating the module code into an application.
File
index.jsis the entry for your application. Usually to do mount the application and use of style.
File
index.htmlis thehtmlbuild template.
File
route.jsis the router forpages
Folder test is store your unit test.