Remove Gulp/Grunt and use NPM scripts to run scripts

Created on 1 February 2023, almost 2 years ago
Updated 4 February 2023, almost 2 years ago

Problem/Motivation

Is this using the package.json file you shared with us a few years ago?

This is the version I've been using with a modded version of Basic for D9 and aside from not creating map.js, it's super light and fast.

#3337115-8: Basic 3.0 Roadmap

{
  "name": "basic",
  "version": "2.0.0",
  "description": "BASIC Theme Version 2",
  "license": "MIT",
  "scripts": {
    "sass": "node-sass --recursive --source-map true --output-style expanded --output css sass",
    "autoprefixer": "postcss --no-map -u autoprefixer --autoprefixer.browsers -r css/*/*.css",
    "build:css": "npm run sass && npm run autoprefixer",
    "build:images": "imagemin images/source/*.{png,jpg,gif,svg} -o images/optimized",
    "uglify:js": "uglifyjs js/source/*.js -m -c -o js/build/scripts.js",
    "watch:css": "onchange 'sass/**/*.scss' -- npm run build:css",
    "watch:img": "onchange 'images/source/*' -- npm run build:images",
    "watch:js": "onchange 'js/source/*.js' -- npm run uglify:js",
    "watch:all": "concurrently --kill-others 'npm run watch:css' 'npm run watch:js' 'npm run watch:img'"
  },
  "dependencies": {
    "bourbon": "^5.0.0-beta.8",
    "bourbon-neat": "^2.1.0",
    "autoprefixer": "^9.7.6",
    "concurrently": "^4.1.1",
    "node-sass": "^4.13.1",
    "uglify-js": "^3.9.1",
    "imagemin-cli": "^5.1.0",
    "onchange": "^6.0.0",
    "postcss-cli": "^6.1.3"
  },
  "browserslist": [
    "> 1%"
  ]
}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024