- Install webpack plugin to copy files
npm install copy-webpack-plugin - Place your
icon.pngin the directory - Update webpack config -- see file below
- Update package metadata --- see file below
- Run
npm run build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Just a standard OS.js application | |
| // | |
| // The "index.js" file. | |
| // | |
| import osjs from 'osjs'; | |
| import {name as applicationName} from './metadata.json'; | |
| const register = (core, args, options, metadata) => { | |
| const proc = core.make('osjs/application', {args, options, metadata}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import './index.scss'; | |
| import osjs from 'osjs'; | |
| import {name as applicationName} from './metadata.json'; | |
| import {h, app} from 'hyperapp'; | |
| import {Box, BoxContainer, Button, Toolbar, TextField, SelectField} from '@osjs/gui'; | |
| /////////////////////////////////////////////////////// | |
| // Custom GUI Elements | |
| /////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * OS.js - JavaScript Cloud/Web Desktop Platform | |
| * | |
| * Copyright (c) 2011-2019, Anders Evenrud <[email protected]> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * | |
| * 1. Redistributions of source code must retain the above copyright notice, this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import './index.scss'; | |
| import osjs from 'osjs'; | |
| import {name as applicationName} from './metadata.json'; | |
| // Our launcher | |
| const register = (core, args, options, metadata) => { | |
| // Create a new Application instance | |
| const proc = core.make('osjs/application', {args, options, metadata}); | |
| // Create a new Window instance |
OS.js v3 has been released
This is the "general" list of tasks for OS.js v3 development. I'm just adding things here as I go or things pop into mind. So if you see anything interesting and you want to pitch in, that'd be much appreciated.
See the following repositories for issues/todos that are not included here:
- Client: https://github.com/os-js/osjs-client
- Server: https://github.com/os-js/osjs-server
- User Interfaces: https://github.com/os-js/osjs-gui
- Dialog Interfaces: https://github.com/os-js/osjs-dialogs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| // | |
| // Your component(s). | |
| // | |
| class MainWindowComponent extends React.Component { | |
| constructor(props) { | |
| super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| // | |
| // Your component(s). | |
| // | |
| class MainWindowComponent extends React.Component { | |
| constructor(props) { | |
| super(props); |
This is a WIP bare-bones template for OS.js v3 apps.
Place it in src/packages/MyApplication and the build system will automatically recognice your package.
Then in console OSjs.run('MyApplication')
NOW AVAILABLE AS A PACKAGE: https://github.com/os-js/osjs-example-package
