diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9daa824 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +node_modules diff --git a/.sass-cache/75f6ae69f785cc74680d6eb17552c5618657559a/extra.scssc b/.sass-cache/75f6ae69f785cc74680d6eb17552c5618657559a/extra.scssc new file mode 100644 index 0000000..e9be804 Binary files /dev/null and b/.sass-cache/75f6ae69f785cc74680d6eb17552c5618657559a/extra.scssc differ diff --git a/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc b/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc new file mode 100644 index 0000000..0a3535a Binary files /dev/null and b/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..7243c31 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "npm-runner-1", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "scss": "sass src/sass/extra.scss src/css/extra.css" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/didietsuryadi/npm-runner-1.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/didietsuryadi/npm-runner-1/issues" + }, + "homepage": "https://github.com/didietsuryadi/npm-runner-1#readme", + "devDependencies": { + "sass": "^0.5.0" + } +} diff --git a/src/css/extra.css b/src/css/extra.css new file mode 100644 index 0000000..d2e743b --- /dev/null +++ b/src/css/extra.css @@ -0,0 +1,8 @@ +body { + font: 100% Helvetica, sans-serif; + color: #bada55; } + +h1 { + background-color: #bada55; } + +/*# sourceMappingURL=extra.css.map */ diff --git a/src/css/extra.css.map b/src/css/extra.css.map new file mode 100644 index 0000000..9a0a644 --- /dev/null +++ b/src/css/extra.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAGA,IAAK;EACH,IAAI,EAAE,0BAAgB;EACtB,KAAK,EAJS,OAAO;;AAOvB,EAAG;EACD,gBAAgB,EARF,OAAO", +"sources": ["../sass/extra.scss"], +"names": [], +"file": "extra.css" +} diff --git a/src/css/site.css b/src/css/site.css new file mode 100644 index 0000000..19de77b --- /dev/null +++ b/src/css/site.css @@ -0,0 +1,3 @@ +body { + background-color: red +} diff --git a/src/css/theme.css b/src/css/theme.css new file mode 100644 index 0000000..f40601d --- /dev/null +++ b/src/css/theme.css @@ -0,0 +1,4 @@ +h1 { + background-color: blue +} + diff --git a/src/js/reverse.js b/src/js/reverse.js new file mode 100644 index 0000000..f4d2d53 --- /dev/null +++ b/src/js/reverse.js @@ -0,0 +1,12 @@ +function reverse(s) { + var output = ''; + for (var i = s.length - 1; i >= 0; i--) + output += s[i]; + return output; +} + +function reverseSayText(text) { + console.log(reverse(text)); +} + +reverseSayText("Reverse"); diff --git a/src/js/saytext.js b/src/js/saytext.js new file mode 100644 index 0000000..07bed7c --- /dev/null +++ b/src/js/saytext.js @@ -0,0 +1,5 @@ +function sayText(text) { + console.log(text); +} + +sayText("I'm alive!"); diff --git a/src/sass/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc b/src/sass/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc new file mode 100644 index 0000000..e687c74 Binary files /dev/null and b/src/sass/.sass-cache/d4dba1790abccf70236e2db98a318174e537cb16/extra.scssc differ diff --git a/src/sass/extra.css b/src/sass/extra.css new file mode 100644 index 0000000..d2e743b --- /dev/null +++ b/src/sass/extra.css @@ -0,0 +1,8 @@ +body { + font: 100% Helvetica, sans-serif; + color: #bada55; } + +h1 { + background-color: #bada55; } + +/*# sourceMappingURL=extra.css.map */ diff --git a/src/sass/extra.css.map b/src/sass/extra.css.map new file mode 100644 index 0000000..3410f33 --- /dev/null +++ b/src/sass/extra.css.map @@ -0,0 +1,7 @@ +{ +"version": 3, +"mappings": "AAGA,IAAK;EACH,IAAI,EAAE,0BAAgB;EACtB,KAAK,EAJS,OAAO;;AAOvB,EAAG;EACD,gBAAgB,EARF,OAAO", +"sources": ["extra.scss"], +"names": [], +"file": "extra.css" +} diff --git a/src/sass/extra.scss b/src/sass/extra.scss new file mode 100644 index 0000000..63de9a8 --- /dev/null +++ b/src/sass/extra.scss @@ -0,0 +1,11 @@ +$font-stack: Helvetica, sans-serif; +$primary-color: #bada55; + +body { + font: 100% $font-stack; + color: $primary-color; +} + +h1 { + background-color: $primary-color +}