Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
Expand All @@ -17,7 +17,7 @@ jobs:
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v4
- uses: actions/cache@v5
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -35,20 +35,20 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'

- uses: actions/cache@v4
- uses: actions/cache@v5
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- uses: actions/cache@v4
- uses: actions/cache@v5
with:
path: ~/.selenium-assistant
key: ${{ runner.os }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ docs
local-builds/
firebase-debug.log
.firebase
packages/**/dist
packages/**/types

# Generated TypeScript files and build data
tsconfig.tsbuildinfo
packages/workbox-*/**/*.d.ts
!packages/workbox-*/src/**/*.d.ts
packages/workbox-*/**/*.js
!packages/workbox-build/**/*.js
!packages/workbox-webpack-plugin/**/*.js

Expand Down
6 changes: 1 addition & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/sh

# Please see https://typicode.github.io/husky/#/?id=command-not-found
# if you have trouble running this command.

. "$(dirname "$0")/_/husky.sh"

npm run lint-staged
#pnpm run lint-staged
6 changes: 1 addition & 5 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/sh

# Please see https://typicode.github.io/husky/#/?id=command-not-found
# if you have trouble running this command.

. "$(dirname "$0")/_/husky.sh"

npm run lint
#pnpm run lint
3 changes: 3 additions & 0 deletions gulp-tasks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export {analye_properties} from './analyze-properties.js';
export {build} from './build.js';
export {lint} from './lint.js';
48 changes: 22 additions & 26 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
/*
Copyright 2018 Google LLC
import fse from 'fs-extra';
import minimist from 'minimist';
import upath from 'upath';

Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/

const fse = require('fs-extra');
const globby = require('globby');
const minimist = require('minimist');
const upath = require('upath');
async function loadGlobby() {
const {globbySync} = await import('globby');
return globbySync;
}

const options = minimist(process.argv.slice(2));

if (options.package) {
// Ensure the package is valid before running tasks
try {
fse.statSync(upath.join(__dirname, 'packages', options.package));
} catch (err) {
Expand All @@ -26,20 +21,21 @@ global.port = options.port || 3000;
global.packageOrStar = options.package || '*';
global.cliOptions = options;

const taskFiles = globby.sync('./gulp-tasks/*.js');
(async () => {
const globbySync = await loadGlobby();
const taskFiles = globbySync('./gulp-tasks/!*.js');

for (const taskFile of taskFiles) {
const taskDefinitions = require(taskFile);
for (const [name, task] of Object.entries(taskDefinitions)) {
if (name === 'functions') {
continue;
}
if (name in module.exports) {
throw new Error(
`Duplicate task definition: ${name} defined in` +
` ${taskFile} conflicts with another task.`,
);
for (const taskFile of taskFiles) {
const taskDefinitions = require(taskFile);

for (const [name, task] of Object.entries(taskDefinitions)) {
if (name === 'functions') continue;
if (name in module.exports) {
throw new Error(
`Duplicate task definition: ${name} defined in ${taskFile} conflicts with another task.`,
);
}
module.exports[name] = task;
}
module.exports[name] = task;
}
}
})();
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "5.6.2",
"lerna": "9.0.7",
"packages": ["packages/*"],
"version": "7.4.0"
}
Loading