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