@rws-framework/client
Version:
Realtime Web Suit is a web-component powered, MS FAST powered fullstack-oriented framework that you can use to create domain-agnostic modular asynchoronous components with intershared authorized states.
15 lines (12 loc) • 421 B
JavaScript
const path = require('path');
const fs = require('fs');
module.exports = function(content){
const filePath = this.resourcePath;
const componentDir = path.dirname(filePath);
const componentPath = path.resolve(componentDir, 'component.ts');
if(fs.existsSync(componentPath)){
const time = new Date();
fs.utimes(componentPath, time, time, () => {});
}
return '';
}