Skip to content

Commit 174a378

Browse files
committed
Release under Apache license and version of 1.0
1 parent 60d16de commit 174a378

23 files changed

Lines changed: 308 additions & 667 deletions

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ trim_trailing_whitespace = true
1111

1212
[*.md]
1313
trim_trailing_whitespace = false
14-
15-
[Makefile]
16-
indent_style = tab

LICENSE

Lines changed: 201 additions & 398 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 0 additions & 71 deletions
This file was deleted.

README.md

Lines changed: 18 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,29 @@ His expertise spans backend systems built on PHP and Laravel, frontend interface
4242

4343
**[GitHub Sponsors -> /sponsors/tomchochola](https://github.com/sponsors/tomchochola)**
4444

45-
Premierstacks is now freely available under the Creative Commons BY-ND 4.0 license, offering high-quality tools, libraries, and templates to the developer community. While the ecosystem remains open and accessible, its growth, updates, and ongoing maintenance depend on individual support.
45+
Premierstacks is now freely available under the Apache-2.0 license, offering high-quality tools, libraries, and templates to the developer community. While the ecosystem remains open and accessible, its growth, updates, and ongoing maintenance depend on individual support.
4646

4747
By sponsoring Tomáš Chochola on GitHub Sponsors, you directly contribute to the continued development, improvement, and long-term sustainability of Premierstacks. Every contribution supports the creation of reliable, scalable, and future-proof solutions for developers worldwide.
4848

4949
Your support makes a difference—thank you for being a part of this journey.
5050

5151
## License
5252

53-
**Creative Commons Attribution-NoDerivatives 4.0 International**
53+
**Apache-2.0**
5454

55-
**Copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.**
55+
**Copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>**
5656

57-
This license requires that reusers give credit to the creator. It allows reusers to copy and distribute the material in any medium or format in unadapted form only, even for commercial purposes.
57+
Licensed under the Apache License, Version 2.0 (the "License");
58+
you may not use this file except in compliance with the License.
59+
You may obtain a copy of the License at
5860

59-
### Creative Commons License for Software?
61+
http://www.apache.org/licenses/LICENSE-2.0
6062

61-
The Creative Commons BY-ND 4.0 license is perfectly suited to Premierstacks. It offers developers the freedom to integrate the software into their projects while preserving the original author’s vision and ensuring consistency across the ecosystem.
62-
63-
Dynamic linking and object-oriented programming practices, such as inheritance or method overriding, are fully permitted. This enables seamless adaptation of the software in dynamic contexts without violating the license. However, static linking, forks, or modifications that alter the software’s original form are prohibited to maintain its integrity and prevent the creation of fragmented or subpar versions.
64-
65-
By protecting the core quality and unity of Premierstacks, this license ensures that developers can confidently rely on it as a trusted, high-standard solution for their projects.
63+
Unless required by applicable law or agreed to in writing, software
64+
distributed under the License is distributed on an "AS IS" BASIS,
65+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66+
See the License for the specific language governing permissions and
67+
limitations under the License.
6668

6769
## Module exports
6870

@@ -89,6 +91,12 @@ import {
8991
reactChunks,
9092
reactExternals,
9193
vendorChunks,
94+
optimize,
95+
compress,
96+
compressBrotli,
97+
compressGzip,
98+
splitChunks,
99+
removeAvailableModules,
92100
} from '@premierstacks/eslint-stack';
93101
```
94102

@@ -164,54 +172,3 @@ Execute commands:
164172
**👨 GitHub Personal: [https://github.com/tomchochola](https://github.com/tomchochola)**<br />
165173
**🏢 GitHub Organization: [https://github.com/premierstacks](https://github.com/premierstacks)**<br />
166174
**💰 GitHub Sponsors: [https://github.com/sponsors/tomchochola](https://github.com/sponsors/tomchochola)**<br />
167-
168-
## Tree
169-
170-
The following is a breakdown of the folder and file structure within this repository. It provides an overview of how the code is organized and where to find key components.
171-
172-
```bash
173-
.
174-
├── assets
175-
│   ├── favicon.ico
176-
│   └── index.html
177-
├── AUTHORS.md
178-
├── .editorconfig
179-
├── eslint.config.js
180-
├── .gitattributes
181-
├── .gitignore
182-
├── LICENSE
183-
├── Makefile
184-
├── package.json
185-
├── prettier.config.js
186-
├── .prettierignore
187-
├── README.md
188-
├── src
189-
│   ├── configs
190-
│   │   ├── browser_typescript_app.js
191-
│   │   ├── browser_typescript_library.js
192-
│   │   ├── browser_typescript_react_app.js
193-
│   │   ├── browser_typescript_react_library.js
194-
│   │   ├── node_typescript_app.js
195-
│   │   ├── node_typescript_library.js
196-
│   │   ├── node_typescript_react_app.js
197-
│   │   └── node_typescript_react_library.js
198-
│   ├── index.js
199-
│   └── utils
200-
│   ├── copy.js
201-
│   ├── env.js
202-
│   ├── externals.js
203-
│   ├── html.js
204-
│   ├── chunks.js
205-
│   └── optimization.js
206-
└── templates
207-
├── browser_typescript_app.template
208-
├── browser_typescript_library.template
209-
├── browser_typescript_react_app.template
210-
├── browser_typescript_react_library.template
211-
├── node_typescript_app.template
212-
├── node_typescript_library.template
213-
├── node_typescript_react_app.template
214-
└── node_typescript_react_library.template
215-
216-
6 directories, 36 files
217-
```

assets/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!--
22
* @file
33
* @author Tomáš Chochola <chocholatom1997@gmail.com>
4-
* @copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.
4+
* @copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>
55
*
6-
* @license CC-BY-ND-4.0
6+
* @license Apache-2.0
77
*
8-
* @see {@link https://creativecommons.org/licenses/by-nd/4.0/} License
8+
* @see {@link http://www.apache.org/licenses/LICENSE-2.0} License
99
* @see {@link https://github.com/tomchochola} GitHub Personal
1010
* @see {@link https://github.com/premierstacks} GitHub Organization
1111
* @see {@link https://github.com/sponsors/tomchochola} GitHub Sponsors

eslint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @file
33
* @author Tomáš Chochola <chocholatom1997@gmail.com>
4-
* @copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.
4+
* @copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>
55
*
6-
* @license CC-BY-ND-4.0
6+
* @license Apache-2.0
77
*
8-
* @see {@link https://creativecommons.org/licenses/by-nd/4.0/} License
8+
* @see {@link http://www.apache.org/licenses/LICENSE-2.0} License
99
* @see {@link https://github.com/tomchochola} GitHub Personal
1010
* @see {@link https://github.com/premierstacks} GitHub Organization
1111
* @see {@link https://github.com/sponsors/tomchochola} GitHub Sponsors

package.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"email": "chocholatom1997@gmail.com",
1313
"url": "https://github.com/premierstacks/webpack-stack/issues"
1414
},
15-
"license": "CC-BY-ND-4.0",
15+
"license": "Apache-2.0",
1616
"author": {
1717
"email": "chocholatom1997@gmail.com",
1818
"name": "Tomáš Chochola",
@@ -31,33 +31,47 @@
3131
},
3232
"repository": "github:premierstacks/webpack-stack",
3333
"dependencies": {
34-
"@svgr/webpack": "^8.1",
3534
"compression-webpack-plugin": "^11.1",
36-
"copy-webpack-plugin": "^12.0",
35+
"copy-webpack-plugin": "^13.0",
3736
"css-minimizer-webpack-plugin": "^7.0",
3837
"html-loader": "^5.1",
3938
"html-minimizer-webpack-plugin": "^5.0",
4039
"html-webpack-plugin": "^5.6",
4140
"image-minimizer-webpack-plugin": "^4.1",
4241
"json-minimizer-webpack-plugin": "^5.0",
4342
"postcss-loader": "^8.1",
44-
"sass-embedded": "^1.83",
43+
"sass-embedded": "^1.85",
4544
"sass-loader": "^16.0",
4645
"sharp": "^0.33",
4746
"svgo": "^3.3",
4847
"terser-webpack-plugin": "^5.3",
4948
"ts-loader": "^9.5",
50-
"webpack": "^5.97",
49+
"webpack": "^5.98",
5150
"webpack-bundle-analyzer": "^4.10",
5251
"webpack-cli": "^6.0",
5352
"webpack-dev-server": "^5.2"
5453
},
5554
"devDependencies": {
5655
"@premierstacks/eslint-stack": "github:premierstacks/eslint-stack",
57-
"@premierstacks/prettier-stack": "github:premierstacks/prettier-stack"
56+
"@premierstacks/prettier-stack": "github:premierstacks/prettier-stack",
57+
"npm-run-all": "^4.1"
5858
},
59-
"private": true,
6059
"type": "module",
6160
"sideEffects": false,
62-
"main": "src/index.js"
61+
"main": "src/index.js",
62+
"scripts": {
63+
"npm:install": "npm install --install-links --include prod --include dev --include peer --include optional",
64+
"npm:update": "npm update --install-links --include prod --include dev --include peer --include optional",
65+
"security": "run-s npm:audit",
66+
"npm:audit": "npm audit --audit-level info --include prod --include dev --include peer --include optional",
67+
"clean": "git clean -xfd ./node_modules ./package-lock.json",
68+
"fix": "run-s fix:eslint fix:prettier",
69+
"fix:eslint": "eslint --fix .",
70+
"fix:prettier": "prettier -w .",
71+
"lint": "run-s lint:eslint lint:prettier",
72+
"lint:eslint": "eslint .",
73+
"lint:prettier": "prettier -c .",
74+
"local": "npm run npm:install",
75+
"check": "run-s lint security"
76+
}
6377
}

prettier.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @file
33
* @author Tomáš Chochola <chocholatom1997@gmail.com>
4-
* @copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.
4+
* @copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>
55
*
6-
* @license CC-BY-ND-4.0
6+
* @license Apache-2.0
77
*
8-
* @see {@link https://creativecommons.org/licenses/by-nd/4.0/} License
8+
* @see {@link http://www.apache.org/licenses/LICENSE-2.0} License
99
* @see {@link https://github.com/tomchochola} GitHub Personal
1010
* @see {@link https://github.com/premierstacks} GitHub Organization
1111
* @see {@link https://github.com/sponsors/tomchochola} GitHub Sponsors

src/configs/browser_typescript_app.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @file
33
* @author Tomáš Chochola <chocholatom1997@gmail.com>
4-
* @copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.
4+
* @copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>
55
*
6-
* @license CC-BY-ND-4.0
6+
* @license Apache-2.0
77
*
8-
* @see {@link https://creativecommons.org/licenses/by-nd/4.0/} License
8+
* @see {@link http://www.apache.org/licenses/LICENSE-2.0} License
99
* @see {@link https://github.com/tomchochola} GitHub Personal
1010
* @see {@link https://github.com/premierstacks} GitHub Organization
1111
* @see {@link https://github.com/sponsors/tomchochola} GitHub Sponsors
@@ -130,15 +130,6 @@ export function browserTypescriptApp(env, argv) {
130130
},
131131
],
132132
},
133-
{
134-
test: /\.(svg)$/i,
135-
resourceQuery: /svgr/,
136-
use: [
137-
{
138-
loader: '@svgr/webpack',
139-
},
140-
],
141-
},
142133
{
143134
resourceQuery: /source/,
144135
type: 'asset/source',

src/configs/browser_typescript_library.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @file
33
* @author Tomáš Chochola <chocholatom1997@gmail.com>
4-
* @copyright © 2025, Tomáš Chochola <chocholatom1997@gmail.com>. Some rights reserved.
4+
* @copyright © 2025 Tomáš Chochola <chocholatom1997@gmail.com>
55
*
6-
* @license CC-BY-ND-4.0
6+
* @license Apache-2.0
77
*
8-
* @see {@link https://creativecommons.org/licenses/by-nd/4.0/} License
8+
* @see {@link http://www.apache.org/licenses/LICENSE-2.0} License
99
* @see {@link https://github.com/tomchochola} GitHub Personal
1010
* @see {@link https://github.com/premierstacks} GitHub Organization
1111
* @see {@link https://github.com/sponsors/tomchochola} GitHub Sponsors
@@ -133,15 +133,6 @@ export function browserTypescriptLibrary(env, argv) {
133133
},
134134
],
135135
},
136-
{
137-
test: /\.(svg)$/i,
138-
resourceQuery: /svgr/,
139-
use: [
140-
{
141-
loader: '@svgr/webpack',
142-
},
143-
],
144-
},
145136
{
146137
resourceQuery: /source/,
147138
type: 'asset/source',

0 commit comments

Comments
 (0)