diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..1a2fb33 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 98a0a19..f9c7104 100644 --- a/README.md +++ b/README.md @@ -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) +- diff --git a/function.ts b/function.ts index e69de29..a4cb35c 100644 --- a/function.ts +++ b/function.ts @@ -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") diff --git a/index.html b/index.html index 16d15a1..0009f6e 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,21 @@ - + Title + + - +

example paragraph

- + + -npm \ No newline at end of file + \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b73f9db --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "sourceMap": true + }, + "exclude": [ + "node_modules" + ] +} \ No newline at end of file