Skip to content

Commit

Permalink
feat: add license and fix templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Balke committed Apr 30, 2024
1 parent f9ae34e commit e748b07
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Fokuspokus Media

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://fokuspokus-media.de"
},
"description": "generates and fills flynt components",
"version": "0.0.2",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "https://github.com/FokuspokusSB/flynt-component-generator"
Expand All @@ -16,7 +16,7 @@
"vscode": "^1.88.1"
},
"categories": [
"Other"
"Snippets"
],
"activationEvents": [],
"main": "./dist/extension.js",
Expand Down
1 change: 1 addition & 0 deletions src/assets/_admin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Add Admin styles here
2 changes: 1 addition & 1 deletion src/assets/index.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<flynt-component name="<component_name>">
<flynt-component name="<component_name>" {{- id ? ' id="'~ id ~'"' : ''-}}>
<div class="g-wrapper"></div>
</flynt-component>
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ const SUPPORTED_FILES_OPTIONS: SupportedFiles[] = [
value: "script.js",
},
{
label: "admin",
label: "admin.js",
value: "admin.js",
},
{
label: "_admin.scss",
value: "_admin.scss",
},
];

function createComponentAndAddFile(
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const extensionConfig = {
entry: "./src/extension.ts", // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/

path: path.resolve(__dirname, "dist"),
filename: "extension.js",
libraryTarget: "commonjs2",
Expand Down

0 comments on commit e748b07

Please sign in to comment.