Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Update to use lint instead of test
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Jul 22, 2024
1 parent e2b33a8 commit 07f1c73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ In a terminal:
git clone https://github.com/washingtonstateuniversity/wsuwp-plugin-hrs-courses.git wsuwp-plugin-hrs-courses
cd wsuwp-plugin-hrs-courses
npm install; composer install
npm test -s
npm lint
git checkout -b new-branch-name
~~~

### Build Commands

The following commands will handle basic build functions. (Remove the `-s` flag to show additional debug info.)

- `npm run build -s`: Remove old compiled files such as minified CSS, lint PHP and CSS, and then compile new versions.
- `npm test -s`: Check all PHP and CSS files for coding standards compliance.
- `npm run clean -s`: Remove old compiled files such as minified CSS.
- `npm run build:styles -s`: Compile CSS.
- `npm run build`: Remove old compiled files such as minified CSS, lint PHP and CSS, and then compile new versions.
- `npm lint`: Check all PHP and CSS files for coding standards compliance.
- `npm run clean`: Remove old compiled files such as minified CSS.
- `npm run build:styles`: Compile CSS.

See the scripts section of `package.json` for additional available commands.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": "NODE_ENV=production run-s clean test 'build:*'",
"build": "NODE_ENV=production run-s clean lint 'build:*'",
"build:scripts": "webpack",
"build:styles": "postcss 'src/*.css' --dir build/",
"clean": "rimraf build/",
Expand All @@ -75,6 +75,6 @@
"fix:php": "composer format",
"start": "run-p 'build:*'",
"fix": "run-p 'fix:*'",
"test": "run-p 'lint:*'"
"lint": "run-p 'lint:*'"
}
}

0 comments on commit 07f1c73

Please sign in to comment.