Skip to content
Snippets Groups Projects
Commit cb74f34b authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Auto build app

parent fd3be5ea
No related merge requests found
Showing
with 154 additions and 3 deletions
public/
.npm/
\ No newline at end of file
# This file contains information which helps Meteor properly upgrade your
# app when you run 'meteor update'. You should check it into version control
# with your project.
notices-for-0.9.0
notices-for-0.9.1
0.9.4-platform-file
notices-for-facebook-graph-api-2
local
# This file contains a token that is unique to your project.
# Check it into your repository along with the rest of this directory.
# It can be used for purposes such as:
# - ensuring you don't accidentally deploy one app on top of another
# - providing package authors with aggregated statistics
90q00kzhqkdn1l0ptwl
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-platform
browser
server
METEOR@1.1.0.2
autoupdate@1.2.1
base64@1.0.3
binary-heap@1.0.3
blaze@2.1.2
blaze-tools@1.0.3
boilerplate-generator@1.0.3
callback-hook@1.0.3
check@1.0.5
ddp@1.1.0
deps@1.0.7
ejson@1.0.6
fastclick@1.0.3
geojson-utils@1.0.3
html-tools@1.0.4
htmljs@1.0.4
http@1.1.0
id-map@1.0.3
jquery@1.11.3_2
json@1.0.3
launch-screen@1.0.2
livedata@1.0.13
logging@1.0.7
meteor@1.1.6
meteor-platform@1.2.2
minifiers@1.1.5
minimongo@1.0.8
mobile-status-bar@1.0.3
mongo@1.1.0
observe-sequence@1.0.6
ordered-dict@1.0.3
random@1.0.3
reactive-dict@1.1.0
reactive-var@1.0.5
reload@1.1.3
retry@1.0.3
routepolicy@1.0.5
session@1.1.0
spacebars@1.0.6
spacebars-compiler@1.0.6
templating@1.1.1
tracker@1.0.7
ui@1.0.6
underscore@1.0.3
url@1.0.4
webapp@1.2.0
webapp-hashing@1.0.3
<template name="test">
<button>teste</button>
</template>
Template.hello.helpers({
counter: function () {
return Session.get('counter');
}
});
Template.hello.events({
'click button': function () {
// increment the counter when button is clicked
Session.set('counter', Session.get('counter') + 1);
}
});
\ No newline at end of file
/* CSS declarations go here */
body {
background-color: #ccc;
}
\ No newline at end of file
<head>
<title>empty</title>
</head>
<body>
<h1>Funciona mesmo mesmo</h1>
{{> hello}}
</body>
<template name="hello">
<button>Click Me</button>
<p>You've pressed the button {{counter}} times.</p>
</template>
if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);
}
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
});
}
......@@ -30,6 +30,4 @@ WebApp.connectHandlers.use '/external/', (req, res, next) ->
"""
res.write html
res.end()
return
\ No newline at end of file
res.end()
\ No newline at end of file
......@@ -4,6 +4,17 @@ Package.describe({
summary: 'External for Rocket.Chat'
});
Package.registerBuildPlugin({
name: "builExternal",
use: [],
sources: [
'plugin/build-external.js'
],
npmDependencies: {
"shelljs": "0.5.1"
}
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
......
var fs = Npm.require('fs');
var path = Npm.require('path');
var shell = Npm.require('shelljs');
var curPath = path.resolve('.')
var packagePath = path.join(path.resolve('.'), 'packages', 'rocketchat-external');
var pluginPath = path.join(packagePath, 'plugin');
shell.exec('sh '+pluginPath+'/build.sh');
\ No newline at end of file
cd packages/rocketchat-external/app
meteor build .meteor/build/ --directory
mkdir -p ../public
rm -f ../public/external.css
rm -f ../public/external.js
rm -f ../public/head.html
cp .meteor/build/bundle/programs/web.browser/*.css ../public/external.css
cp .meteor/build/bundle/programs/web.browser/*.js ../public/external.js
cp .meteor/build/bundle/programs/web.browser/head.html ../public/head.html
# echo "body {background-color: red;}" > external.css
rm -rf .meteor/build/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment