Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ce2b90351 | |||
| 2a22d0f399 | |||
| 2ff10577c0 | |||
| 989b8436c2 |
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[](https://github.com/67P/remotestorage-module-chat-messages/releases)
|
||||||
|
|
||||||
|
# remoteStorage Module: Chat Messages
|
||||||
|
|
||||||
|
Stores chat messages in daily archive documents.
|
||||||
|
|
||||||
|
Please feel free to open GitHub issues for questions, feature requests,
|
||||||
|
protocol proposals, and whatever else you like.
|
||||||
|
|
||||||
|
## Protocols
|
||||||
|
|
||||||
|
### Currently supported
|
||||||
|
|
||||||
|
* IRC
|
||||||
|
* XMPP
|
||||||
|
|
||||||
|
### Planned
|
||||||
|
|
||||||
|
* Mattermost
|
||||||
|
* Matrix
|
||||||
|
* Slack
|
||||||
|
* ...
|
||||||
2
dist/build.js
vendored
2
dist/build.js
vendored
File diff suppressed because one or more lines are too long
9
index.js
9
index.js
@@ -1,6 +1,4 @@
|
|||||||
var RemoteStorage = require('remotestoragejs');
|
var ChatMessages = function (privateClient, publicClient) {
|
||||||
|
|
||||||
RemoteStorage.defineModule("chat-messages", function (privateClient, publicClient) {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Schema: chat-messages/daily
|
* Schema: chat-messages/daily
|
||||||
@@ -570,4 +568,7 @@ RemoteStorage.defineModule("chat-messages", function (privateClient, publicClien
|
|||||||
|
|
||||||
// Return public functions
|
// Return public functions
|
||||||
return { exports: exports };
|
return { exports: exports };
|
||||||
});
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export default { name: 'chat-messages', builder: ChatMessages };
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "remotestorage-module-chat-messages",
|
"name": "remotestorage-module-chat-messages",
|
||||||
"version": "0.7.1",
|
"version": "1.0.0",
|
||||||
"description": "Stores chat messages in daily archive files",
|
"description": "Stores chat messages in daily archive files",
|
||||||
"main": "./dist/build.js",
|
"main": "./dist/build.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dev": "webpack -w",
|
"dev": "webpack -w",
|
||||||
"build": "NODE_ENV=production webpack"
|
"build": "NODE_ENV=production webpack -p",
|
||||||
|
"version": "npm run build && git add dist/"
|
||||||
},
|
},
|
||||||
"author": "Kosmos Developers <mail@kosmos.org> (https://kosmos.org)",
|
"author": "Kosmos Developers <mail@kosmos.org> (https://kosmos.org)",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
|
|||||||
@@ -12,14 +12,6 @@ module.exports = {
|
|||||||
filename: __dirname + '/dist/build.js',
|
filename: __dirname + '/dist/build.js',
|
||||||
libraryTarget: 'umd'
|
libraryTarget: 'umd'
|
||||||
},
|
},
|
||||||
externals: {
|
|
||||||
"remotestoragejs": {
|
|
||||||
root: "RemoteStorage", // <script src='remotestorage.js'> will resolve in this.RemoteStorage
|
|
||||||
commonjs2: "remotestoragejs", // require('remotestoragejs')
|
|
||||||
commonjs: "remotestoragejs", // require('remotestoragejs')
|
|
||||||
amd: "remotestoragejs" // define(['remotestoragejs'], ...)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{ test: /\.js$/, exclude: '/node_modules|dist/', loader: 'babel?presets[]=es2015' },
|
{ test: /\.js$/, exclude: '/node_modules|dist/', loader: 'babel?presets[]=es2015' },
|
||||||
|
|||||||
Reference in New Issue
Block a user