Skip to content

Commit

Permalink
Replace more npm run occurances
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Apr 4, 2024
1 parent 720731a commit 00296f3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ More info at: https://locutus.io/
## Install

```bash
npm install locutus
yarn add locutus
```

## Use
Expand Down Expand Up @@ -38,6 +38,3 @@ true

Some guidelines and instructions can be found in [CONTRIBUTING.md](CONTRIBUTING.md)

## Sponsors

:sparkles: thanks to <https://jetbrains.com> for providing a free license to their development tools :heart:
8 changes: 4 additions & 4 deletions src/_util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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')
}),
Expand Down Expand Up @@ -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
Expand Down
18 changes: 8 additions & 10 deletions test/browser/app.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'))

0 comments on commit 00296f3

Please sign in to comment.