Skip to content

Commit

Permalink
First Commit of open source Firepress source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pote committed Nov 13, 2017
1 parent f7b7148 commit b7bbc49
Show file tree
Hide file tree
Showing 579 changed files with 117,695 additions and 0 deletions.
79 changes: 79 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
beautify: true
},
compress: {
files: {
'admin/js/wordsync-admin.js': ['admin/js/src/**/*.js']
}
}
},
compass: {
dist: {
options: {
sassDir: 'admin/scss',
cssDir: 'admin/css',
environment: 'production',
outputStyle: 'compressed', //nested expanded compact compressed
noLineComments: true
}
},

dev: {
options: {
sassDir: 'admin/scss',
cssDir: 'admin/css',
environment: 'development',
outputStyle: 'nested', //nested expanded compact compressed
noLineComments: true,
sourcemap: true
}
}

},
watch: {
css: {
files: 'admin/scss/**/*.scss',
tasks: ['compass:dev']
},
js:
{
files: ['admin/js/src/**/*.js'],
tasks: ['uglify:compress']
}
},
pot: {
options: {
text_domain: 'brave-firepress',
dest: 'languages/',
keywords: ['gettext', '__', '_e']
},
files:{
src: [ 'admin/**/*.php', 'includes/**/*.php' ], //Parse all php files
expand: true,
}
}


});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-pot');

grunt.registerTask('dist', ['pot', 'compass:dist','uglify:compress']);
//grunt.registerTask('pot', ['pot']);

// Default task(s).
grunt.registerTask('default', ['compass:dist', 'uglify:compress','watch']);


};
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
=== Brave Firepress ===
Contributors: bravedigital
Tags: firebase, database, sync, synchronise, merge, push
Requires at least: 4.0
Tested up to: 4.9
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Brave Firepress synchronises all your wordpress posts with a Firebase database.

== Description ==

Brave Firepress synchronises all your wordpress posts with a Firebase real-time database.
After setting up the link between WordPress and Firebase, you can choose which posts to write across, the root path for all WordPress posts (defaults to '/wp/')
and which fields of the posts should be copied across to Firebase and how they should appear in the Firebase database.
Post meta, terms and taxonomies are supported and can either be saved into a 'terms'/'meta' key for each post, or merged into the main key for that post.
Advanced Custom Fields are also natively supported and can either be saved to a 'fields' key for each post, or merged into the main key for that post.

A list of field mappings is given to allow you to customise how your WordPress post data shows up in Firebase, and which fields to include or exclude.


== Contribute on GitHub ==

Help us make improvements and additions by contributing on the WordSync GitHub project:

https://github.com/brave-digital/firepress


== Installation ==

* Install the plugin as per usual, through the WordPress plugin repository or by uploading the zip file manually to your site and activate it.
* Once activated, you can find the plugin under *Settings -> Firepress*
* Go to your Firebase Console and navigate to the [Service Accounts tab](https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk) in your Firebase project's settings page.
* Select your Firebase project. If you don't already have one, click the Create New Project button. If you already have an existing Google project associated with your app, click Import Google Project instead.
* Click the Generate New Private Key button at the bottom and download the .json file provided.
* Upload your .json credential files to the wp-content/plugins/brave-firepress/accounts/ directory.
* Go to the plugin's settings page and:
* Enter your Firebase install's URL - you can find it on your Real Time Database's page inside the Firebase console.
* Select your .json credential file from the dropdown provided after you've copied it into the plugin's /accounts/ directory.
* Select post types which you'd like to synchronise to your Firebae database.
* Select how you would like WordPress to synchronise your post types into your Firebase database.
* Save your settings. If all goes well, you should see a message informing you that your Firebase and WordPress installs are successfully connected together.

== Frequently Asked Questions ==

= Question 1 =

Answer 1

= Question 2 =

Answer 2


== Screenshots ==
1. Screenshot 1
2. Screenshot 2

== Changelog ==

= 1.0 =
* Initial release
1 change: 1 addition & 0 deletions accounts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
Loading

0 comments on commit b7bbc49

Please sign in to comment.