Skip to content

Commit

Permalink
Add Bulma and finish config
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Althaf committed Feb 12, 2018
1 parent 9235d7c commit 170f2e4
Show file tree
Hide file tree
Showing 10 changed files with 12,749 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .env.sample
@@ -0,0 +1,4 @@
COSMIC_BUCKET=
COSMIC_READ_KEY=
COSMIC_WRITE_KEY=
PORT=
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,3 +9,5 @@ npm-debug.log

# Nuxt generate
dist

.env
10 changes: 10 additions & 0 deletions assets/styles/buefy.scss
@@ -0,0 +1,10 @@
// Import Bulma's core
@import "~bulma/sass/utilities/_all";

// Container
$widescreen: 1000px + (2 * $gap);
$fullhd: 1000px + (2 * $gap);

// Import Bulma and Buefy styles
@import "~bulma";
@import "~buefy/src/scss/buefy";
8 changes: 8 additions & 0 deletions components/Logo.vue
Expand Up @@ -7,6 +7,14 @@
</div>
</template>

<script>
export default {
created () {
console.log(process.env.COSMIC_BUCKET)
}
}
</script>

<style>
.VueToNuxtLogo
{
Expand Down
16 changes: 16 additions & 0 deletions nuxt.config.js
@@ -1,4 +1,5 @@
const pkg = require('./package')
require('dotenv').config()

module.exports = {
mode: 'universal',
Expand Down Expand Up @@ -27,12 +28,14 @@ module.exports = {
** Global CSS
*/
css: [
{ src: '~assets/styles/buefy.scss', lang: 'scss' }
],

/*
** Plugins to load before mounting the App
*/
plugins: [
'~plugins/buefy'
],

/*
Expand Down Expand Up @@ -67,6 +70,19 @@ module.exports = {
exclude: /(node_modules)/
})
}
},
postcss: {
plugins: {
'postcss-custom-properties': false
}
}
},

/*
** Environment variables
*/
env: {
COSMIC_BUCKET: process.env.COSMIC_BUCKET,
COSMIC_READ_KEY: process.env.COSMIC_READ_KEY
}
}

0 comments on commit 170f2e4

Please sign in to comment.