forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add standalone Meteor package and Travis
- Loading branch information
Showing
8 changed files
with
111 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
language: node_js | ||
node_js: | ||
- 0.10 | ||
|
||
node_js: 0.10 | ||
|
||
before_script: | ||
- node --version | ||
- npm --version | ||
- npm install -g grunt-cli | ||
|
||
# Install meteor | ||
- curl https://install.meteor.com | /bin/sh | ||
# Install spacejam, Meteor's CI helper | ||
- npm install -g spacejam | ||
|
||
script: grunt test --verbose |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// package metadata file for Meteor.js | ||
'use strict'; | ||
|
||
var packageName = 'summernote:standalone'; // http://atmospherejs.com/summernote:standalone | ||
var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing. | ||
|
||
var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); | ||
|
||
Package.describe({ | ||
name: packageName, | ||
summary: 'summernote standalone (official): WYSIWYG editor with embedded images support, packaged without deps', | ||
version: packageJson.version, | ||
git: 'https://github.com/HackerWins/summernote.git' | ||
}); | ||
|
||
Package.onUse(function (api) { | ||
api.versionsFrom(['[email protected]', '[email protected]']); | ||
// no exports - summernote adds itself to jQuery | ||
api.addFiles([ | ||
'dist/summernote.js', | ||
'dist/summernote.css' | ||
], where); | ||
}); | ||
|
||
Package.onTest(function (api) { | ||
// load dependencies for test only, before loading the package | ||
api.use(['twbs:[email protected]', 'fortawesome:[email protected]'], where); | ||
|
||
// load our package | ||
api.use(packageName, where); | ||
|
||
// load the test runner | ||
api.use('tinytest', where); | ||
|
||
api.addFiles('meteor/test.js', where); | ||
}); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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