mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Switch to /Volumes/Shipwreck/github/squidfunk/mkdocs-material-experimental/node_modules/.bin
This commit is contained in:
parent
18fd27024c
commit
21720f1283
@ -20,15 +20,12 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Resolve root directory
|
||||
ROOT=`dirname $0`/..
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d $ROOT/node_modules ]]; then
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
$ROOT/node_modules/.bin/gulp build --clean --optimize --revision
|
||||
`npm bin`/gulp build --clean --optimize --revision
|
||||
|
@ -20,15 +20,12 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Resolve root directory
|
||||
ROOT=`dirname $0`/..
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d $ROOT/node_modules ]]; then
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
$ROOT/node_modules/.bin/gulp clean
|
||||
`npm bin`/gulp clean
|
||||
|
9
bin/lint
9
bin/lint
@ -20,22 +20,19 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Resolve root directory
|
||||
ROOT=`dirname $0`/..
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d $ROOT/node_modules ]]; then
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run ESLint
|
||||
$ROOT/node_modules/.bin/eslint .
|
||||
`npm bin`/eslint .
|
||||
ESLINT=$?
|
||||
|
||||
# Run Sass-Lint
|
||||
$ROOT/node_modules/.bin/sass-lint -c .sass-lint.yml -vq
|
||||
`npm bin`/sass-lint -c .sass-lint.yml -vq
|
||||
SASSLINT=$?
|
||||
|
||||
# If one command failed, exit with error
|
||||
|
@ -20,15 +20,12 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Resolve root directory
|
||||
ROOT=`dirname $0`/..
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d $ROOT/node_modules ]]; then
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
$ROOT/node_modules/.bin/gulp watch --no-lint
|
||||
`npm bin`/gulp watch --no-lint
|
||||
|
7
bin/test
7
bin/test
@ -20,15 +20,12 @@
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
|
||||
# Resolve root directory
|
||||
ROOT=`dirname $0`/..
|
||||
|
||||
# Check if "npm install" was executed
|
||||
if [[ ! -d $ROOT/node_modules ]]; then
|
||||
if [[ ! -d `npm bin` ]]; then
|
||||
echo "\"node_modules\" not found:"
|
||||
echo "npm install"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run command
|
||||
$ROOT/node_modules/.bin/gulp test
|
||||
`npm bin`/gulp test
|
||||
|
Loading…
Reference in New Issue
Block a user