Commit c76ff198 authored by Akari Labs's avatar Akari Labs

use new nanopack packaging system

parent 1773f192
const path = require('path');
const modules = path.join(__dirname, 'modules');
module.exports = nanopack => {
nanopack.pushFile(path.join(modules, 'inertdom.js'), {
provides: 'jsx'
});
nanopack.pushFile(path.join(modules, 'kwm.jsx'));
nanopack.pushFile(path.join(modules, 'kwm.css'));
};
\ No newline at end of file
module.exports = {
css(data) {
const style = document.createElement('style');
style.innerHTML = data;
document.head.appendChild(style);
}
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
"name": "nanopack_kwm",
"version": "0.0.0",
"description": "keira's window manager",
"main": "index.js",
"main": "package.nanopack.json",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
......
{
"friendly_name": "kwm",
"modules": {
"inertdom": {
"filename": "modules/inertdom.js",
"provides": "jsx"
},
"inject": {
"filename": "modules/inject.js"
},
"@index": {
"filename": "modules/kwm.jsx",
"type": "jsx"
},
"kwm.css": {
"filename": "modules/kwm.css",
"type": "css"
}
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment