Closed danizen closed 2 years ago
How long ago did you install USWDS-Gulp? Can you share your package.json
file?
+1 for this. Know there is a gulp 5.x branch available for one
{ "name": "PRAC", "version": "2.0.0", "description": "PRAC Drupal Theme", "private": true, "scripts": { "init": "npm i --legacy-peer-dep; gulp", "build": "gulp", "lint": "gulp scss-lint; gulp js-lint", "styleguide": "gulp styleguide", "imagemin": "gulp imagemin", "watch": "gulp watch", "scss": "gulp scss" }, "paths": { "dist": { "css": "./css/", "js": "./js/", "sg": "./styleguide/", "img": "./images/" }, "scss": [ "./components//.scss" ], "css": [ "./.css" ], "js": [ "./components//*.js" ], "templates": [ "./templates/*/.twig", "./styleguide/*.html" ] }, "vars": { "cssName": "style.css", "cssMinName": "style.min.css", "jsName": "main.js", "sgName": "index.html" }, "devDependencies": { "autoprefixer": "^10.2.5", "cssnano": "^5.0.0", "del": "^6.0.0", "fs": "0.0.1-security", "gulp": "^4.0.2", "gulp-cached": "^1.1.1", "gulp-clean-css": "^4.3.0", "gulp-concat": "^2.6.1", "gulp-eslint": "^6.0.0", "gulp-imagemin": "^4.1.0", "gulp-load-plugins": "^2.0.3", "gulp-newer": "^1.4.0", "gulp-pipe": "^1.0.4", "gulp-plumber": "^1.2.1", "gulp-postcss": "^9.0.0", "gulp-rename": "^2.0.0", "gulp-replace": "^1.0.0", "gulp-sass": "^4.1.0", "gulp-sass-glob": "^1.1.0", "gulp-sass-lint": "^1.4.0", "gulp-shell": "^0.8.0", "gulp-sourcemaps": "^3.0.0", "gulp-svg-sprite": "^1.5.0", "gulp-uglify": "^3.0.2", "gulp-uglify-es": "^2.0.0", "js-yaml": "^4.0.0", "kss": "^3.0.0", "michelangelo": "^0.8.0", "postcss": "^8.2.10", "postcss-csso": "^5.0.1", "uswds": "^2.12.0", "uswds-gulp": "github:uswds/uswds-gulp" }, "dependencies": { "npm": "^7.24.2", "require-dir": "^1.2.0" }, "babel": { "presets": [ [ "@babel/preset-env", { "targets": { "browsers": [ "IE 11, last 2 versions" ] }, "useBuiltIns": "entry" } ] ], "plugins": [ [ "@babel/plugin-transform-runtime", { "regenerator": true } ] ] } }
22 days ago, as an evaluation of how to get our branch's web applications to USWDS. The NLM OCCS/AB branch has an assets repository which we use for common assets such as jquery. Placing a themed version of USWDS using gulp will be an ideal way to get the entire branch to use the same themed version of USWDS.
Since the first webapp I am trying is already using webpack, I pulled in uswds alone, added the SCSS to the webpack bundle build, and used the FileCopy webpack plugin to copy the javascript since it didn't seem quite as modular.
I cannot follow the instructions on using uswds-gulp without first updating uswds-gulp. Please update: