Drupal 8 Site using Vue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Josh Fabean b459a233d2 added more components 4 years ago
..
dist added more components 4 years ago
gulp-tasks got things working 4 years ago
src added more components 4 years ago
.editorconfig got things working 4 years ago
.eslintrc.yml got things working 4 years ago
.gitignore got things working 4 years ago
.nvmrc got things working 4 years ago
.sass-lint.yml got things working 4 years ago
README.md got things working 4 years ago
gulpfile.js got things working 4 years ago
package-lock.json got things working 4 years ago
package.json got things working 4 years ago
vue_js.info.yml got things working 4 years ago
vue_js.libraries.yml added more components 4 years ago
vue_js.theme got things working 4 years ago

README.md

Getting Started

Browser Support

Autoprefixer & Babel is set to support:

  • IE >= 11
  • Last 2 versions of modern browsers.

These can be updated at any time within the package.json.

Run the following commands from the theme directory

If you haven't yet, install nvm: https://github.com/creationix/nvm

Use the right version of node with:

nvm use

This command will look at your .nvmrc file and use the version node.js specified in it. This ensures all developers use the same version of node for consistency.

If that version of node isn't installed, install it with:

nvm install

Install npm dependencies with

npm install

This command looks at package.json and installs all the npm dependencies specified in it. Some of the dependencies include gulp, autoprefixer, gulp-sass and others.

Runs default task

npm run build

This will run whatever the default task is.

Compiles Sass

npm run compile

This will perform a one-time Sass compilation.

Runs the watch command

npm run watch

This is ideal when you are doing a lot of Sass changes and you want to make sure every time a change is saved it automatically gets compiled to CSS

Cleans complied directory

npm run clean

This will perform a one-time deletion of all compiled files within the dist/ directory.