zhex / fe-dev-server Goto Github PK
View Code? Open in Web Editor NEWFE Dev Server target to help frontend web developers create view template, styles and js easily.
License: MIT License
FE Dev Server target to help frontend web developers create view template, styles and js easily.
License: MIT License
livereload watch node_modules
{ Error: watch src/main/webapp/node_modules/whet.extend/li
b/whet.extend.js ENFILE
at exports._errnoException (util.js:1022:11)
at FSWatcher.start (fs.js:1305:19)
at Object.fs.watch (fs.js:1330:11)
at createFsWatchInstance (src/main/webapp/node_modules
/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (src/main/webapp/node_modules/ch
okidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (src/main/
webapp/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (src/main/webap
p/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (src/main/webapp/node_modules
/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:111:15)
code: 'ENFILE',
errno: 'ENFILE',
syscall: 'watch src/main/webapp/node_modules/whet.extend
/lib/whet.extend.js',
filename: 'src/main/webapp/node_modules/whet.extend/lib/
whet.extend.js' }
routes.js
module.exports = {
'post::/test.action': 'mock::api/test.js'
}
api/test.js
module.exports = function(data, utils) {
var result = {
success: {
code: 0,
pageNumber: parseInt(data.query.pageNumber) // 使用post时值为null,get则无此问题
},
error: {
code: 1,
msg: "error blabla..."
}
}
return result.success;
return result.error;
}
'get::/hello': 'http://localhost:1234/hello'
the code will not work because of the port 1234 in url
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.