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.

46 lines
1.3 KiB

  1. ## Getting Started
  2. ### Browser Support
  3. Autoprefixer & Babel is set to support:
  4. * IE >= 11
  5. * Last 2 versions of modern browsers.
  6. These can be updated at any time within the `package.json`.
  7. ### Run the following commands from the theme directory
  8. If you haven't yet, install nvm:
  9. https://github.com/creationix/nvm
  10. #### Use the right version of node with:
  11. `nvm use`
  12. _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._
  13. #### If that version of node isn't installed, install it with:
  14. `nvm install`
  15. #### Install npm dependencies with
  16. `npm install`
  17. _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._
  18. #### Runs default task
  19. `npm run build`
  20. _This will run whatever the default task is._
  21. #### Compiles Sass
  22. `npm run compile`
  23. _This will perform a one-time Sass compilation._
  24. #### Runs the watch command
  25. `npm run watch`
  26. _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_
  27. #### Cleans complied directory
  28. `npm run clean`
  29. _This will perform a one-time deletion of all compiled files within the dist/ directory._