Skip to content

Commit

Permalink
renaming custom build of WP riveted.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
robflaherty committed Feb 17, 2014
1 parent 96da92b commit 50c9749
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions build.sh
@@ -1,5 +1,8 @@
#!/bin/bash

# Minify
uglifyjs riveted.js -c -m --comments -o riveted.min.js

cp ./riveted.min.js ./wp-plugin/Riveted/js/riveted.min.js
cat ./wp-plugin/Riveted/js/init.js >> ./wp-plugin/Riveted/js/riveted.min.js
# Update WordPress plugin
cp ./riveted.min.js ./wp-plugin/Riveted/js/riveted-wp.js
cat ./wp-plugin/Riveted/js/init.js >> ./wp-plugin/Riveted/js/riveted-wp.js
File renamed without changes.
2 changes: 1 addition & 1 deletion wp-plugin/riveted/riveted.php
Expand Up @@ -89,7 +89,7 @@ function load_riveted() {

//print_r($options);

wp_enqueue_script( 'riveted', plugins_url() . '/riveted/js/riveted.min.js', array(), '0.3', true );
wp_enqueue_script( 'riveted', plugins_url() . '/riveted/js/riveted-wp.js', array(), '0.3', true );
wp_localize_script( 'riveted', 'riveted_options', $options );
}

Expand Down

0 comments on commit 50c9749

Please sign in to comment.