Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Didit Suryadi #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
node_modules
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
8 changes: 8 additions & 0 deletions src/css/extra.css

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

7 changes: 7 additions & 0 deletions src/css/extra.css.map

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

3 changes: 3 additions & 0 deletions src/css/site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: red
}
4 changes: 4 additions & 0 deletions src/css/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
h1 {
background-color: blue
}

12 changes: 12 additions & 0 deletions src/js/reverse.js
Original file line number Diff line number Diff line change
@@ -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");
5 changes: 5 additions & 0 deletions src/js/saytext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function sayText(text) {
console.log(text);
}

sayText("I'm alive!");
Binary file not shown.
8 changes: 8 additions & 0 deletions src/sass/extra.css

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

7 changes: 7 additions & 0 deletions src/sass/extra.css.map

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

11 changes: 11 additions & 0 deletions src/sass/extra.scss
Original file line number Diff line number Diff line change
@@ -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
}