Skip to content

Commit

Permalink
added admin page stylesheet and updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
suomato committed May 13, 2018
1 parent 04586ba commit 9a1c18a
Show file tree
Hide file tree
Showing 8 changed files with 6,591 additions and 2,371 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
extends: "airbnb"
extends: [
"plugin:vue/recommended"
]
env:
browser: true
es6: true
Expand All @@ -12,7 +14,6 @@
no-new: 0
max-len: [2, 80, 2, { "ignoreUrls": true }]
quotes: [2, "single"]
parser:
babel-eslint
parserOptions:
parser: "babel-eslint"
ecmaVersion: 6
14 changes: 14 additions & 0 deletions app/config/wp/scripts-and-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,17 @@ function base_camp_login_scripts_and_styles()
}

add_action('login_enqueue_scripts', 'base_camp_login_scripts_and_styles', 999);

/**
* Register Admin Page scripts and styles and enqueue them
*/
function base_camp_admin_scripts_and_styles()
{
// Register styles
wp_register_style('base-camp-admin-styles', assets('admin.css'), [], '', 'all');

// Enqueue scripts and styles
wp_enqueue_style('base-camp-admin-styles');
}

add_action('admin_enqueue_scripts', 'base_camp_admin_scripts_and_styles', 999);
1 change: 1 addition & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
entry: {
app: glob.sync('./resources/assets/+(s[ac]ss|js)/main.+(s[ac]ss|js)'),
login: glob.sync('./resources/assets/+(s[ac]ss|js)/login.+(s[ac]ss|js)'),
admin: glob.sync('./resources/assets/+(s[ac]ss|js)/admin.+(s[ac]ss|js)'),
vendor: ['jquery', 'vue'],
},
output: {
Expand Down
Loading

0 comments on commit 9a1c18a

Please sign in to comment.