weex-ui-demo
Version:
A rich interaction, lightweight, high performance UI library based on Weex
20 lines (17 loc) • 346 B
JavaScript
// Helper functions
const path = require('path');
const ROOT = path.resolve(__dirname, '..');
const root = (args) => {
return path.join(ROOT, 'src', args);
}
const rootNode = (args) => {
return path.join(ROOT, args);
}
const resolve = (dir) => {
return path.join(__dirname, '..', dir)
}
module.exports = {
root,
rootNode,
resolve
}