Skip to content

Commit

Permalink
Add grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallySmallSoftware committed Feb 27, 2018
1 parent dd64350 commit 15545a4
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/test-reports/jshint.xml
/package-lock.json
49 changes: 49 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
jshint: {
options: {
reporter: require("jshint-junit-reporter"),
reporterOutput: "test-reports/jshint.xml",
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
es5: false,
globals: {
jasmine: false,
describe: false,
beforeEach: false,
afterEach: false,
expect: false,
it: false,
spyOn: false,
$: false,
cordova: false,
launchnavigator: false,
window: false,
document: false,
ons: false,
navigator: false,
google: false,
FCMPlugin: false,
device: false,
plugins: false,
addFixture: false,
truncateSql: false
}
},
all: ['Gruntfile.js', 'www/**/*.js']
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
};
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ Set extra key/value integer value. Will only be logged in the event of a crash.

History
==
0.0.2
--
- Add grunt to run jshint
- Fix some grunt warnings

0.0.1
--
- Initial release
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-firebase-crashlytics",
"version": "0.0.1",
"version": "0.0.2",
"cordova": {
"id": "cordova-plugin-firebase-crashlytics",
"platforms": [
Expand All @@ -24,5 +24,10 @@
"ecosystem:cordova",
"cordova-android",
"cordova-ios"
]
],
"devDependencies": {
"grunt": "^1.0.2",
"grunt-contrib-jshint": "^1.1.0",
"jshint-junit-reporter": "^0.2.3"
}
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-firebase-crashlytics" version="0.0.1">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-firebase-crashlytics" version="0.0.2">
<name>Cordova Firebase Crashlytics Plugin</name>
<description>Google Firebase Crashlytics</description>
<license>MIT</license>
Expand Down
1 change: 1 addition & 0 deletions www/browser/crashlytics.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*global alert */
var PLUGIN_NAME = 'Crashlytics';

function Crashlytics() {
Expand Down

0 comments on commit 15545a4

Please sign in to comment.