Skip to content

Commit

Permalink
build: use npm pack tarball for local examples and testing instead …
Browse files Browse the repository at this point in the history
…of .local (#859)
  • Loading branch information
broofa authored Jan 9, 2025
1 parent 050cd5b commit e426aaa
Show file tree
Hide file tree
Showing 39 changed files with 9,516 additions and 13,637 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x

- run: npm ci
- run: npm run lint
- run: npm run docs:diff

test:
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
Expand All @@ -32,7 +32,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci
- run: npm run test
- run: npm run test:node
- run: npm run test:pack
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.tgz
browserstack.err
dist/
.build/
local.log
logs/
node_modules/
examples/**/package-lock.json
9 changes: 0 additions & 9 deletions .local/README.md

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/dist

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/package.json

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v1.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v1tov6.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v3.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v4.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v5.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v6.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v6tov1.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/v7.js

This file was deleted.

1 change: 0 additions & 1 deletion .local/uuid/wrapper.mjs

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.local/
dist/
node_modules/
README.md
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export default [
},
},
{
ignores: ['eslint.config.cjs', '.local/', '**/dist/', 'node_modules/'],
ignores: ['eslint.config.cjs', '**/dist/', 'node_modules/'],
},
];
138 changes: 0 additions & 138 deletions examples/benchmark/package-lock.json

This file was deleted.

3 changes: 2 additions & 1 deletion examples/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"scripts": {
"build": "true",
"start": "npm run build && npx http-server . -o",
"pretest": "HUSKY=0 npm install --no-package-lock",
"test": "node node.js"
},
"dependencies": {
"uuid": "file:../../.local/uuid"
"uuid": "file:../../.build/uuid.tgz"
},
"devDependencies": {
"benchmark": "^2.1.4"
Expand Down
91 changes: 0 additions & 91 deletions examples/browser-esmodules/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion examples/browser-esmodules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"start": "npm run build && npx http-server . -o"
},
"dependencies": {
"uuid": "file:../../.local/uuid"
"uuid": "file:../../.build/uuid.tgz"
}
}
1 change: 0 additions & 1 deletion examples/browser-rollup/.gitignore

This file was deleted.

Loading

0 comments on commit e426aaa

Please sign in to comment.