Compare commits
13 Commits
v7.0.0-pre.0
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| dfb2dbba7c | |||
| 60e16943a7 | |||
| 4ddb07ac2d | |||
| 6c61b11a6e | |||
| 434575f49d | |||
| 03ebebf6fb | |||
| b864eff3c9 | |||
| 25a91a611c | |||
| 46338ad5b4 | |||
| fc2de634ab | |||
| 6e52b971cd | |||
| 0a5acd99cb | |||
| f7132d98cd |
+44
-35
@@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
win: circleci/windows@5.0.0
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
node24:
|
node24:
|
||||||
docker:
|
docker:
|
||||||
@@ -47,6 +50,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
command: npm test
|
||||||
|
|
||||||
|
test_win:
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: bash.exe
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install Node.js
|
||||||
|
command: nvm install 20.0.0 && nvm use 20.0.0
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: npm install
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: npm run build
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: npm test
|
command: npm test
|
||||||
@@ -59,6 +87,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
- run:
|
- run:
|
||||||
name: Run tests in parallel
|
name: Run tests in parallel
|
||||||
command: npm run test:parallel
|
command: npm run test:parallel
|
||||||
@@ -101,47 +132,25 @@ workflows:
|
|||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
- build:
|
||||||
executor: node24
|
matrix:
|
||||||
name: build_node_24
|
parameters:
|
||||||
- build:
|
executor: [node20, node22, node24]
|
||||||
executor: node22
|
|
||||||
name: build_node_22
|
|
||||||
- build:
|
|
||||||
executor: node20
|
|
||||||
name: build_node_20
|
|
||||||
- test_node:
|
- test_node:
|
||||||
executor: node22
|
matrix:
|
||||||
name: test_node_22
|
parameters:
|
||||||
|
executor: [node20, node22, node24]
|
||||||
requires:
|
requires:
|
||||||
- build_node_22
|
- build-<< matrix.executor >>
|
||||||
- test_node:
|
|
||||||
executor: node20
|
|
||||||
name: test_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_parallel:
|
- test_parallel:
|
||||||
executor: node24
|
matrix:
|
||||||
name: test_parallel_node_24
|
parameters:
|
||||||
|
executor: [node20, node22, node24]
|
||||||
requires:
|
requires:
|
||||||
- build_node_24
|
- build-<< matrix.executor >>
|
||||||
- test_parallel:
|
|
||||||
executor: node22
|
|
||||||
name: test_parallel_node_22
|
|
||||||
requires:
|
|
||||||
- build_node_22
|
|
||||||
- test_parallel:
|
|
||||||
executor: node20
|
|
||||||
name: test_parallel_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_parallel:
|
|
||||||
executor: node20
|
|
||||||
name: test_parallel_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_browsers:
|
- test_browsers:
|
||||||
requires:
|
requires:
|
||||||
- build_node_20
|
- build-node20
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: /pull\/.*/ # Don't run on pull requests.
|
ignore: /pull\/.*/ # Don't run on pull requests.
|
||||||
|
- test_win
|
||||||
|
|||||||
+6
-1
@@ -1,2 +1,7 @@
|
|||||||
* text=auto eol=lf
|
* text=auto eol=lf
|
||||||
*.png -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mov filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.docx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|||||||
@@ -41,11 +41,13 @@ Jasmine tests itself. The files in `lib` are loaded first, defining the referenc
|
|||||||
|
|
||||||
The tests should always use `jasmineUnderTest` to refer to the objects and functions that are being tested. But the tests can use functions on `jasmine` as needed. _Be careful how you structure any new test code_. Copy the patterns you see in the existing code - this ensures that the code you're testing is not leaking into the `jasmine` reference and vice-versa.
|
The tests should always use `jasmineUnderTest` to refer to the objects and functions that are being tested. But the tests can use functions on `jasmine` as needed. _Be careful how you structure any new test code_. Copy the patterns you see in the existing code - this ensures that the code you're testing is not leaking into the `jasmine` reference and vice-versa.
|
||||||
|
|
||||||
### `boot.js`
|
### `boot0.js` and `boot1.js`
|
||||||
|
|
||||||
This file does all the setup necessary for Jasmine to work in a browser. While
|
These files file does all of the setup necessary for Jasmine to work in a
|
||||||
the default in `lib`is appropriate for most uses, users may wish to customize
|
browser. They load all of the code, create an `Env`, attach the global
|
||||||
this file.
|
functions, and build the reporter. It also sets up the execution of the
|
||||||
|
`Env` - for browsers this is in `window.onload`. While the default in `lib`
|
||||||
|
is appropriate for browsers, projects may wish to customize this file.
|
||||||
|
|
||||||
### Compatibility
|
### Compatibility
|
||||||
|
|
||||||
|
|||||||
LFS
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
@@ -0,0 +1,48 @@
|
|||||||
|
# Jasmine Core Development Notes
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- This is the main jasmine-core repository, a JavaScript BDD testing framework
|
||||||
|
- **Directory structure**:
|
||||||
|
- `src/` - source code
|
||||||
|
- `src/core/` - environment-agnostic core functionality
|
||||||
|
- `src/html/` - browser-specific code
|
||||||
|
- `src/boot/` - boot files for browser setup
|
||||||
|
- `spec/` - tests, mirrors the src directory structure
|
||||||
|
- `lib/` - compiled distribution files (built, not checked in modified)
|
||||||
|
|
||||||
|
## Key Development Commands
|
||||||
|
|
||||||
|
- `npm install` - install dependencies
|
||||||
|
- `npm test` - run all tests in Node.js + lint + prettier check
|
||||||
|
- `npm run test:parallel` - run tests in parallel
|
||||||
|
- `npm run build` - build distribution to `/lib`
|
||||||
|
- `npm run cleanup` - auto-fix prettier errors
|
||||||
|
- `npm run serve` - serve tests for browser testing at http://localhost:8888
|
||||||
|
- `JASMINE_BROWSER=<name> npm run ci` - run browser tests via Selenium
|
||||||
|
|
||||||
|
## Before submitting PR
|
||||||
|
|
||||||
|
1. Run tests in Node.js AND browsers: `npm test` and `npm run serve`
|
||||||
|
2. Fix any eslint/prettier errors: `npm run cleanup`
|
||||||
|
3. Build `lib/` with `npm run build` and re-test
|
||||||
|
4. Revert changes to built files in `lib/` - maintainers will rebuild when merging
|
||||||
|
|
||||||
|
## Testing Conventions
|
||||||
|
|
||||||
|
- Jasmine self-tests: `lib/jasmine-core.js` provides `jasmine` (runner), `src/` provides `jasmineUnderTest` (code under test)
|
||||||
|
- Always use `jasmineUnderTest` for objects/functions being tested
|
||||||
|
|
||||||
|
## Coding Conventions
|
||||||
|
|
||||||
|
- Single quotes, semicolons required
|
||||||
|
- Curly braces required for all control statements
|
||||||
|
- ECMA 2022 syntax, commonjs modules
|
||||||
|
- Core code must stay environment-agnostic:
|
||||||
|
- Keep browser-specific code in `src/html/`
|
||||||
|
- Degrade gracefully when environment-specific features aren't available
|
||||||
|
|
||||||
|
## Supported Environments
|
||||||
|
|
||||||
|
- Node: 20, 22, 24
|
||||||
|
- Browsers: Safari 26+, Chrome/Firefox/Edge (evergreen)
|
||||||
@@ -32,7 +32,7 @@ Microsoft Edge) as well as Node.
|
|||||||
| Node | 20, 22, 24 |
|
| Node | 20, 22, 24 |
|
||||||
| Safari | 26* |
|
| Safari | 26* |
|
||||||
| Chrome | Evergreen |
|
| Chrome | Evergreen |
|
||||||
| Firefox | Evergreen, 102*, 115*, 128*, 140 |
|
| Firefox | Evergreen, 140 |
|
||||||
| Edge | Evergreen |
|
| Edge | Evergreen |
|
||||||
|
|
||||||
For evergreen browsers, each version of Jasmine is tested against the version of the browser that is available to us
|
For evergreen browsers, each version of Jasmine is tested against the version of the browser that is available to us
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# tauri
|
||||||
|
/src-tauri/target
|
||||||
|
/src-tauri/Cargo.lock
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>藝術家作品集</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "artist-website",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"tauri": "tauri"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"vue": "^3.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tauri-apps/api": "^1.5.0",
|
||||||
|
"@tauri-apps/cli": "^1.5.0",
|
||||||
|
"@vitejs/plugin-vue": "^5.0.0",
|
||||||
|
"vite": "^5.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user