Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from lookback/feature/client-side-emojis-only
Browse files Browse the repository at this point in the history
Move all emojis to the client.
  • Loading branch information
brookback authored Dec 19, 2018
2 parents 18c40a3 + 32ebc53 commit b16cbbf
Show file tree
Hide file tree
Showing 7 changed files with 4,330 additions and 4,458 deletions.
1 change: 0 additions & 1 deletion .npm/package/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .npm/package/README

This file was deleted.

112 changes: 0 additions & 112 deletions .npm/package/npm-shrinkwrap.json

This file was deleted.

5 changes: 0 additions & 5 deletions emojis.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ Emojis = new Mongo.Collection 'emojis',

return emoji

if Meteor.isServer
Emojis._ensureIndex(alias: 1)
Emojis._ensureIndex(ascii: 1)


# General parse function.
#
# Parses `text` and returns emoji objects from :shortnames: and ASCII
Expand Down
6 changes: 2 additions & 4 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var both = ['client', 'server'];
Package.describe({
name: 'lookback:emoji',
summary: 'Easily render and manage emojis in Meteor.',
version: '0.4.2',
version: '0.5.0',
git: 'https://github.com/lookback/meteor-emoji'
});

Expand All @@ -20,11 +20,9 @@ Package.onUse(function(api) {

api.use('[email protected]', 'client');

api.addAssets('seed/emojis.json', 'server');

api.addFiles(['polyfill.js', 'emojis.coffee'], both);
api.addFiles('template.coffee', 'client');
api.addFiles('seed/seed.coffee', 'server');
api.addFiles('seed/seed.coffee', 'client');

api.export('Emojis', both);
});
Expand Down
Loading

0 comments on commit b16cbbf

Please sign in to comment.