mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- package.js now has a top-level 'Npm.depends' directive - both bundle-time and server run-time code can get access to any dependent npm module with 'Npm.require'
21 lines
572 B
JavaScript
21 lines
572 B
JavaScript
// Source: http://code.google.com/p/google-code-prettify
|
|
|
|
// XXX this sucks. I would much rather do this processing at
|
|
// bundle-time on the server, not in the client. (though I'd like to
|
|
// support both..)
|
|
|
|
var path = Npm.require('path');
|
|
|
|
Package.describe({
|
|
summary: "Syntax highlighting of code, from Google"
|
|
});
|
|
|
|
// XXX this code dumps symbols into the global namespace (directly
|
|
// onto 'window'.) we need to fix that.
|
|
Package.on_use(function (api) {
|
|
api.add_files([
|
|
'prettify.js',
|
|
'prettify.css',
|
|
path.join('styles', 'sunburst.css')], "client");
|
|
});
|