Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
30 changes: 30 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = function(grunt) {

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

connect: {
all: {
options: {
port: 8081,
hostname: 'localhost',
base: ".",
keepalive: true,
}
}
},

open: {
all: {
path: 'http://localhost:<%= connect.all.options.port%>/helloworld/helloworld.html'
}
},
});

grunt.registerTask('server',[
'open',
'connect',
]);
}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ JavaScript初心者が基礎をひととおり身に付けるための資料で

### ローカルでサーバーを立ち上げる方法

#### python
python -m SimpleHTTPServer

ブラウザで、http://localhost:8000 にアクセス
Expand All @@ -17,7 +18,11 @@ python -m SimpleHTTPServer
例)8888
python -m SimpleHTTPServer 8888

#### nodejs
npm install
grunt server



### ライブラリ
jQueryとunderscoreを使用しています。(両方ともMITライセンス)
jQueryとunderscoreを使用しています。(両方ともMITライセンス)
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "JavaScriptTraining",
"version": "0.0.0",
"description": "Training course repository for JavaScript",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/mixi-inc/JavaScriptTraining"
},
"keywords": [
"JavaScript",
"Training"
],
"author": "Shigeta Keisei",
"license": "BSD",
"readmeFilename": "README.md",
"gitHead": "9ec6e0be8120d819d8bd0b9de5983c68486d3c1b",
"devDependencies": {
"grunt": "~0.4.1",
"matchdep": "~0.1.2",
"grunt-open": "~0.2.2",
"grunt-contrib-connect": "~0.4.0"
}
}