diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7ca4ad1dd7..682234d304 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ and also GitHub Actions can check if the code adheres to our policies already be Here are a few pointers that could save us from disappointment, we'll try to keep it brief! 1. By submitting a Pull Request you are giving Locutus permission to distribute your code under the MIT License. -1. Please adhere to our [updated coding standards](/blog/2016/04/standard-coding-style/). Use `npm run lint` to check. +1. Please adhere to our [updated coding standards](/blog/2016/04/standard-coding-style/). Use `yarn lint` to check. Code should: - Follow the [JavaScript Standard Style](https://standardjs.com/), and in addition: @@ -125,7 +125,7 @@ Any change to `main` is deployed automatically onto GitHub Pages by CI. ### Releasing -Any newly pushed git tag is automatically released on npm by CI. To push a new tag: +Any newly pushed git tag is automatically released on NPM by CI. To push a new tag: ```bash npm version patch -m "Release v%s" && git push --tags diff --git a/README.md b/README.md index 1b6ef0537d..b4bf15b79b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ More info at: https://locutus.io/ ## Install ```bash -npm install locutus +yarn add locutus ``` ## Use @@ -38,6 +38,3 @@ true Some guidelines and instructions can be found in [CONTRIBUTING.md](CONTRIBUTING.md) -## Sponsors - -:sparkles: thanks to for providing a free license to their development tools :heart: diff --git a/src/_util/util.js b/src/_util/util.js index 33a9ce737a..5e9f7b8650 100644 --- a/src/_util/util.js +++ b/src/_util/util.js @@ -226,7 +226,7 @@ class Util { langTitle += ' in JavaScript' const langData = Object.assign({}, this.langDefaults[params.language], { - warning: 'This file is auto generated by `npm run web:inject`, do not edit by hand', + warning: 'This file is auto generated by `yarn web:inject`, do not edit by hand', type: 'language', layout: 'language', language: params.language, @@ -243,7 +243,7 @@ class Util { catTitle += ' in JavaScript' const catData = { - warning: 'This file is auto generated by `npm run web:inject`, do not edit by hand', + warning: 'This file is auto generated by `yarn web:inject`, do not edit by hand', type: 'category', layout: 'category', language: params.language, @@ -266,7 +266,7 @@ class Util { .replace(/\[functiondashed]/g, params.func_name.replace(/_/g, '-')) const funcData = { - warning: 'This file is auto generated by `npm run web:inject`, do not edit by hand', + warning: 'This file is auto generated by `yarn web:inject`, do not edit by hand', examples: (params.headKeys.example || []).map(function (lines, i) { return lines.join('\n') }), @@ -356,7 +356,7 @@ class Util { const codez = [] - codez.push('// warning: This file is auto generated by `npm run build:tests`') + codez.push('// warning: This file is auto generated by `yarn build:tests`') codez.push('// Do not edit by hand!') // Add globals diff --git a/test/browser/app.js b/test/browser/app.js index 246768ad9a..03cff18050 100644 --- a/test/browser/app.js +++ b/test/browser/app.js @@ -1,13 +1,12 @@ -// Execute: npm run browser:watch +// Execute: yarn browser:watch // To test this in a local webbrowser with an empty index.html -var sprintf = require('../../src/php/strings/sprintf') -var md5 = require('../../src/php/strings/md5') -var md5File = require('../../src/php/strings/md5_file') -var sha1 = require('../../src/php/strings/sha1') -var isArray = require('../../src/php/var/is_array') -var iniSet = require('../../src/php/info/ini_set') -var varDump = require('../../src/php/var/var_dump') -var preg_match = require('../../src/php/pcre/preg_match') +const sprintf = require('../../src/php/strings/sprintf') +const md5 = require('../../src/php/strings/md5') +const sha1 = require('../../src/php/strings/sha1') +const isArray = require('../../src/php/var/is_array') +const iniSet = require('../../src/php/info/ini_set') +const varDump = require('../../src/php/var/var_dump') +const preg_match = require('../../src/php/pcre/preg_match') varDump(preg_match('^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$', 'rony@pharaohtools.com')) // Should report true varDump(preg_match('^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$', 'ronypharaohtools.com')) // Should report flase @@ -20,4 +19,3 @@ varDump(iniSet('locutus.objectsAsArrays', 'off')) varDump(isArray({ name: 'locutus' })) // Should report false varDump(sha1('Resistance')) varDump(md5('Futile')) -varDump(md5File('Futile'))