Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fin(npm, html, sass, ts)
Browse files Browse the repository at this point in the history
todo(js minimizer)
  • Loading branch information
Rthem@gmx.de committed Jul 1, 2020
1 parent 94cedf5 commit d845711
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# webstorm-template
a webstorm starter template

this template contains a basic folder structure, configured sass and configured ts
this template is for webstorm web projects
it contains:
- a basic folder structure
- initialized npm
- configured sass compiler and css minimizer (run automatic)
- configured ts compiler and js minimizer (run automatic)
-
13 changes: 13 additions & 0 deletions function.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*own jQuery selector
$ as selector over all
$f as selector to select first element
*/

var $ = function (object) {
return document.querySelectorAll(object);
};
var $f = function (object) {
return document.querySelector(object);
};

console.log("function.min.js")
12 changes: 7 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadaten -->
<!-- Metadata -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Title</title>

<!-- CSS Import -->
<link href="style.min.css" rel="stylesheet" title="Cool stylesheet" type="text/css">

</head>
<body>

<p>example paragraph</p>
</body>

<!-- JS Import
<script src="style.min.js"></script>-->
<!-- JS Import -->
<script src="function.min.js"></script>

</html>npm
</html>
10 changes: 10 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true
},
"exclude": [
"node_modules"
]
}

0 comments on commit d845711

Please sign in to comment.