vasille-css 3.2.1 → 4.1.0
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/README.md +15 -14
- package/lib/index.js +1 -1
- package/package.json +14 -4
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Vasille
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
|
-
`Vasille Web` is a front-end framework, which is developed to provide
|
|
5
|
+
`Vasille Web` is a front-end framework, which is developed to provide bulletproof frontends.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/vasille)
|
|
8
8
|
|
|
@@ -32,19 +32,9 @@ Create an app from a template
|
|
|
32
32
|
$ npm create vasille
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Alternative method to create a TypeScript app.
|
|
36
|
-
```bash
|
|
37
|
-
$ npx degit vasille-js/example-typescript my-project
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Alternative method to create a JavaScript app.
|
|
41
|
-
```bash
|
|
42
|
-
$ npx degit vasille-js/example-javascript my-project
|
|
43
|
-
```
|
|
44
|
-
|
|
45
35
|
### Full documentation:
|
|
46
|
-
* [Learn `Vasille` in 5 minutes](https://github.com/vasille-js/vasille-js/blob/
|
|
47
|
-
* [Vasille Router Documentation](https://github.com/vasille-js/vasille-js/blob/
|
|
36
|
+
* [Learn `Vasille` in 5 minutes](https://github.com/vasille-js/vasille-js/blob/v4/doc/V4-API.md)
|
|
37
|
+
* [Vasille Router Documentation](https://github.com/vasille-js/vasille-js/blob/v4/doc/Router-API.md)
|
|
48
38
|
|
|
49
39
|
### Examples
|
|
50
40
|
* [TypeScript Example](https://github.com/vasille-js/example-typescript)
|
|
@@ -107,9 +97,20 @@ All of these are supported:
|
|
|
107
97
|
* [x] `100%` Test Coverage fot babel plugin.
|
|
108
98
|
* [x] Add CSS support (define styles in components).
|
|
109
99
|
* [x] Add router.
|
|
100
|
+
* [x] Add SSG (static site generation).
|
|
110
101
|
* [ ] Add SSR (server side rendering).
|
|
111
102
|
* [ ] Develop tools extension for debugging.
|
|
112
103
|
|
|
104
|
+
## Change log
|
|
105
|
+
|
|
106
|
+
### 4.0.0
|
|
107
|
+
|
|
108
|
+
Initial version of the framework with file based routing and building scripts (`vasille-web dev` and `vasille-web build spa`).
|
|
109
|
+
|
|
110
|
+
## 4.1.0
|
|
111
|
+
|
|
112
|
+
Added SSG (static site generation) as build option `vasille-web build static`.
|
|
113
|
+
|
|
113
114
|
## Questions
|
|
114
115
|
|
|
115
116
|
If you have questions, feel free to contact the maintainer of the project:
|
package/lib/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export function styleSheet(styles) {
|
|
|
79
79
|
for (const key in styles) {
|
|
80
80
|
Object.defineProperty(result, key, {
|
|
81
81
|
get() {
|
|
82
|
-
const className = `
|
|
82
|
+
const className = `vasille-${++index}`;
|
|
83
83
|
for (const item of styles[key]) {
|
|
84
84
|
if (item instanceof Array) {
|
|
85
85
|
const [target, rule] = item;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasille-css",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "The
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "The same framework which is designed to build bulletproof frontends (CSS style library)",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"prepack": "cp -f ../README.md ./README.md",
|
|
16
16
|
"prettier": "prettier src test --write",
|
|
17
|
+
"prebuild": "rm -rf lib types",
|
|
17
18
|
"build": "tsc --build tsconfig.json",
|
|
18
|
-
"build-types": "tsc --build tsconfig-types.json",
|
|
19
19
|
"test": "jest",
|
|
20
20
|
"test-coverage": "jest --coverage"
|
|
21
21
|
},
|
|
@@ -35,13 +35,23 @@
|
|
|
35
35
|
"type": "git",
|
|
36
36
|
"url": "git+https://github.com/vasille-js/vasille-js.git"
|
|
37
37
|
},
|
|
38
|
+
"browserslist": [
|
|
39
|
+
"safari 6",
|
|
40
|
+
"ie 10",
|
|
41
|
+
"chrome 23",
|
|
42
|
+
"firefox 21",
|
|
43
|
+
"opera 15"
|
|
44
|
+
],
|
|
38
45
|
"devDependencies": {
|
|
39
46
|
"@types/jest": "^30.0.0",
|
|
40
47
|
"@types/jsdom": "^21.1.7",
|
|
48
|
+
"eslint": "^9.33.0",
|
|
49
|
+
"eslint-plugin-compat": "^6.0.2",
|
|
41
50
|
"jest": "^30.0.5",
|
|
42
51
|
"jsdom": "^26.1.0",
|
|
43
52
|
"prettier": "^3.6.2",
|
|
44
53
|
"ts-jest": "^29.4.0",
|
|
45
|
-
"typescript": "^5.8.3"
|
|
54
|
+
"typescript": "^5.8.3",
|
|
55
|
+
"typescript-eslint": "^8.39.0"
|
|
46
56
|
}
|
|
47
57
|
}
|