needle-cloud 0.4.0-alpha.3 → 0.4.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -59
- package/README.md +17 -17
- package/bin/cli.js +2 -2
- package/package.json +59 -56
- package/dist/cli.esm.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/needle-share-cli/src/cli.d.ts +0 -1
- package/dist/needle-share-cli/src/index.d.ts +0 -1
- package/dist/needle-share-cli/src/web/index.d.ts +0 -105
- package/dist/needle-share-cli/src/web/polyfill.d.ts +0 -1
- package/dist/web/index.d.ts +0 -105
- package/dist/web/polyfill.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this package will be documented in this file.
|
|
3
|
-
|
|
4
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
|
-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
|
-
|
|
7
|
-
## [0.4.0-alpha.
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
- add:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
- add:
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
## [0.0.1-alpha.
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- add:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this package will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.4.0-alpha.26] - 2024-11-19
|
|
8
|
+
- change: update license flow
|
|
9
|
+
- change: license check updated
|
|
10
|
+
|
|
11
|
+
## [0.4.0-alpha.24] - 2024-11-15
|
|
12
|
+
- add: auth flow timeout
|
|
13
|
+
- fix: CLI node 18 support
|
|
14
|
+
|
|
15
|
+
## [0.4.0-alpha.5] - 2024-10-18
|
|
16
|
+
- add: CLI license server
|
|
17
|
+
|
|
18
|
+
## [0.3.0-alpha.4] - 2024-10-17
|
|
19
|
+
- add: CLI support for `login` and `logout`
|
|
20
|
+
- add: CLI `--org` option
|
|
21
|
+
|
|
22
|
+
## [0.2.0-alpha.1] - 2024-10-01
|
|
23
|
+
- add: support to list deployments for web and CLI
|
|
24
|
+
|
|
25
|
+
## [0.1.0-alpha.13] - 2024-09-26
|
|
26
|
+
- add: web support
|
|
27
|
+
|
|
28
|
+
## [0.0.1-alpha.25] - 2024-08-23
|
|
29
|
+
- add: deploy command now has `--verbose` flag
|
|
30
|
+
- fix: deploy command should not update the job status after the upload was finished
|
|
31
|
+
|
|
32
|
+
## [0.0.1-alpha.24] - 2024-08-17
|
|
33
|
+
- minor optimize command output improvement
|
|
34
|
+
|
|
35
|
+
## [0.0.1-alpha.23] - 2024-08-16
|
|
36
|
+
- add: Node 18 support
|
|
37
|
+
- add: the access token can now set in a environment variable using `NEEDLE_CLOUD_TOKEN=<yourtoken>`
|
|
38
|
+
- change: rename package to `needle-cloud`
|
|
39
|
+
|
|
40
|
+
## [0.0.1-alpha.20] - 2024-08-14
|
|
41
|
+
- add: `deploy` does now automatically determine a project name if none is provided
|
|
42
|
+
- add: `deploy` does now allow deployment of gzip compressed files
|
|
43
|
+
|
|
44
|
+
## [0.0.1-alpha.18] - 2024-08-13
|
|
45
|
+
- add: better re-upload handling and optimization request for already optimized files
|
|
46
|
+
|
|
47
|
+
## [0.0.1-alpha.16] - 2024-08-12
|
|
48
|
+
- add: optimize `--verbose` mode
|
|
49
|
+
- fix: upload issue in SDK
|
|
50
|
+
|
|
51
|
+
## [0.0.1-alpha.10] - 2024-08-11
|
|
52
|
+
- add: `needle-cloud optimize` command now has a `--name` argument
|
|
53
|
+
|
|
54
|
+
## [0.0.1-alpha.8] - 2024-08-09
|
|
55
|
+
- add: `needle-cloud optimize` which allows to run compression via needle-cloud and get optimized files
|
|
56
|
+
|
|
57
|
+
## [0.0.1-alpha.5] - 2024-08-09
|
|
58
|
+
- add: parallelized upload
|
|
59
|
+
- add: `needle-cloud` now has a `--name` argument which allows to re-deploy to the same view
|
|
60
|
+
|
|
61
|
+
## [0.0.1-alpha.4] - 2024-07-18
|
|
62
|
+
- change: upload with deployment type
|
|
63
|
+
|
|
64
|
+
## [0.0.1-alpha.3] - 2024-07-08
|
|
65
|
+
- add: open pages url
|
|
66
|
+
|
|
67
|
+
## [0.0.1-alpha.1] - 2024-07-06
|
|
60
68
|
- initial release
|
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Needle Cloud SDK
|
|
2
|
-
|
|
3
|
-
## CLI
|
|
4
|
-
|
|
5
|
-
Run with `npx needle-cloud@latest <command>`
|
|
6
|
-
|
|
7
|
-
#### Available Commands
|
|
8
|
-
|
|
9
|
-
- `help`
|
|
10
|
-
- `deploy`
|
|
11
|
-
- `optimize`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## Web
|
|
15
|
-
|
|
16
|
-
Install in your project with `npm i needle-cloud`.
|
|
17
|
-
|
|
1
|
+
# Needle Cloud SDK
|
|
2
|
+
|
|
3
|
+
## CLI
|
|
4
|
+
|
|
5
|
+
Run with `npx needle-cloud@latest <command>`
|
|
6
|
+
|
|
7
|
+
#### Available Commands
|
|
8
|
+
|
|
9
|
+
- `help`
|
|
10
|
+
- `deploy`
|
|
11
|
+
- `optimize`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Web
|
|
15
|
+
|
|
16
|
+
Install in your project with `npm i needle-cloud`.
|
|
17
|
+
|
|
18
18
|
- TODO: docs
|
package/bin/cli.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { program } from '../dist/cli.esm.js';
|
|
1
|
+
#!/usr/bin/env node --no-warnings
|
|
2
|
+
import { program } from '../dist/cli.esm.js';
|
|
3
3
|
program.run();
|
package/package.json
CHANGED
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "needle-cloud",
|
|
3
|
-
"version": "0.4.0-alpha.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"bin": {
|
|
6
|
-
"needle-cloud": "./bin/cli.js"
|
|
7
|
-
},
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
"import": "./dist/index.esm.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"node": "./dist/cli.esm.js"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@caporal/core": "^2.0.7",
|
|
16
|
-
"@logto/node": "^2.5.8",
|
|
17
|
-
"@web-std/file": "^3.0.3",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "needle-cloud",
|
|
3
|
+
"version": "0.4.0-alpha.31",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"needle-cloud": "./bin/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"import": "./dist/index.esm.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"node": "./dist/cli.esm.js"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@caporal/core": "^2.0.7",
|
|
16
|
+
"@logto/node": "^2.5.8",
|
|
17
|
+
"@web-std/file": "^3.0.3",
|
|
18
|
+
"body-parser": "^1.20.3",
|
|
19
|
+
"buffer": "^6.0.3",
|
|
20
|
+
"dotenv": "^16.4.5",
|
|
21
|
+
"express": "^4.21.1",
|
|
22
|
+
"node-fetch": "^3.3.2",
|
|
23
|
+
"node-machine-id": "^1.1.12",
|
|
24
|
+
"ora": "^8.0.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@needle-tools/cloud-sdk": "file:../needle-share-sdk",
|
|
28
|
+
"concurrently": "^9.0.1",
|
|
29
|
+
"microbundle": "^0.15.1",
|
|
30
|
+
"vitest": "^2.1.1"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">= 18"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"test": "vitest",
|
|
37
|
+
"deploy:main": "npm run deploy -- --tag main",
|
|
38
|
+
"deploy": "npm run dist -- --compress & npm publish --access public",
|
|
39
|
+
"deploy:dry": "npm run deploy -- --dry-run",
|
|
40
|
+
"bump:tag:main": "npm dist-tag add needle-cloud@<version> main",
|
|
41
|
+
"dev": "concurrently --kill-others \"npm run dev:web\" \"npm run dev:node\"",
|
|
42
|
+
"dev:web": "microbundle watch -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --no-compress",
|
|
43
|
+
"dev:node": "microbundle watch -i ./src/cli.js -o dist/cli.js --format esm --target node --no-compress",
|
|
44
|
+
"dist": "npx --yes rimraf dist && npm run dist:web && npm run dist:node",
|
|
45
|
+
"dist:web": "microbundle -i ./src/index.js -o dist/index.js --format esm --generateTypes --target web --sourcemap true --compress true --define api_endpoint=https://cloud.needle.tools/api,cloud_base_url=https://cloud.needle.tools",
|
|
46
|
+
"dist:node": "microbundle -i ./src/cli.js -o dist/cli.js --format esm --generateTypes --target node --sourcemap false --compress --define api_endpoint=https://cloud-staging.needle.tools/api,cloud_base_url=https://cloud-staging.needle.tools"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"bin/",
|
|
50
|
+
"dist/",
|
|
51
|
+
"README.md",
|
|
52
|
+
"CHANGELOG.md",
|
|
53
|
+
"package-lock.json"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"registry": "https://registry.npmjs.org/"
|
|
58
|
+
}
|
|
59
|
+
}
|