Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
initial setup
  • Loading branch information
yyx990803 committed Jul 27, 2013
0 parents commit 83fac01
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.DS_Store
.sass-cache
node_modules
components
dist
14 changes: 14 additions & 0 deletions .jshintrc
@@ -0,0 +1,14 @@
{
"eqeqeq": true,
"browser": true,
"asi": true,
"multistr": true,
"undef": true,
"unused": true,
"trailing": true,
"sub": true,
"node": true,
"globals": {
"console": true
}
}
50 changes: 50 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,50 @@
module.exports = function( grunt ) {

grunt.initConfig({

component_build: {
build: {
output: './dist/',
name: 'element',
styles: false,
scripts: true,
verbose: true
}
},

jshint: {
build: {
src: ['src/**/*.js'],
options: {
jshintrc: "./.jshintrc"
}
}
},

mocha: {
build: {
src: ['test/test.html'],
options: {
reporter: 'Spec',
run: true
}
}
},

watch: {
component: {
files: ['src/**/*.js', 'component.json'],
tasks: 'component_build'
}
}

})

grunt.loadNpmTasks( 'grunt-contrib-watch' )
grunt.loadNpmTasks( 'grunt-contrib-jshint' )
grunt.loadNpmTasks( 'grunt-component-build' )
grunt.loadNpmTasks( 'grunt-mocha' )
grunt.registerTask( 'test', ['mocha'] )
grunt.registerTask( 'default', ['jshint', 'component_build', 'mocha'] )

}
11 changes: 11 additions & 0 deletions component.json
@@ -0,0 +1,11 @@
{
"name": "element",
"version": "0.0.1",
"dependencies": {
"component/emitter": "*"
},
"main": "src/main.js",
"scripts": [
"src/main.js"
]
}
12 changes: 12 additions & 0 deletions package.json
@@ -0,0 +1,12 @@
{
"name": "element",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.4.4",
"grunt-component-build": "~0.3.0",
"grunt-contrib-jshint": "~0.6.0",
"grunt-mocha": "~0.4.0",
"chai": "~1.7.2"
}
}
1 change: 1 addition & 0 deletions src/main.js
@@ -0,0 +1 @@
module.exports = 123
24 changes: 24 additions & 0 deletions test/test.html
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../node_modules/grunt-mocha/node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/grunt-mocha/node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script>
mocha.setup('bdd')
var assert = chai.assert
</script>
<script src="../dist/element.js"></script>
<script src="test.js"></script>
<script>
if (navigator.userAgent.indexOf('PhantomJS') < 0) {
mocha.run();
}
</script>
</body>
</html>
7 changes: 7 additions & 0 deletions test/test.js
@@ -0,0 +1,7 @@
var Element = require('element')

describe('Element', function () {
it('should have a variable', function () {
assert.equal(Element, 123)
})
})

69 comments on commit 83fac01

@lylong93
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pigpigever
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合影

@David-C-gd-y
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合影+1

@berwin
Copy link

@berwin berwin commented on 83fac01 Jan 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

兄弟们知乎地址是多少??

@gilzhao
Copy link

@gilzhao gilzhao commented on 83fac01 Feb 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenkang084
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wwbluechip
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

汪宇良到此一游

@TeamMicLee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello vue

@lavyun
Copy link

@lavyun lavyun commented on 83fac01 May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@brownsugar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎊

@andredarcie
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@HelloKevinTian
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

666

@wangzhije
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自己找过来的

@biyuehui
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

四爷来啦!

@lixworth
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎观光团+1

@doubimike
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光

@ravencrown
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从2019.04.03穿越而来

@genophy
Copy link

@genophy genophy commented on 83fac01 Apr 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I traverse time, just to see you

@bingo-keith
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在github上翻页翻了一个多小时了,终于找到最初的commit了,打个卡先

@An-Haijun
Copy link

@An-Haijun An-Haijun commented on 83fac01 Jul 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

创世开篇,从这里研习源码与思想

@daizh1tao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I come. I see. I conquer.

@yangdi99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎 +1

@liejiayong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎+1

@duanjiuzhou
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm coming.

@clocker321
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎观光团+1

@Ya-hui
Copy link

@Ya-hui Ya-hui commented on 83fac01 Apr 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎观光团+1

@udbbbn
Copy link

@udbbbn udbbbn commented on 83fac01 Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎观光团+1

@justLearner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎观光团来了

@zhouzhonghao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My Conquest Is the Sea of Stars.

@codevvvv9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2020.04.14穿越过来的。vuejs初代,你好

@nactran
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

來看源碼了

@herotiga
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合影留念

@zzj136598
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

知乎+1

@dandheedge
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this is where everything begin

@gabeta
Copy link

@gabeta gabeta commented on 83fac01 Jun 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the beginning
2020

@conmajia
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

逼乎司马🎉
fk all🎉

@huzhizhao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光团+1

@littleCareless
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光团+1

@BeckXun
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光团+1

@Tyf2345
Copy link

@Tyf2345 Tyf2345 commented on 83fac01 Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello VueJS

@Hermoins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光团+1

@zyzweb
Copy link

@zyzweb zyzweb commented on 83fac01 Feb 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

观光团 +1

@jocstech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

到此一游,怀念尤大的神迹!

@lq2022
Copy link

@lq2022 lq2022 commented on 83fac01 Mar 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

留名.

@llovvoll
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現在靠著 Vue.js 吃飯呢,神串留名 🍻

@fbigun
Copy link

@fbigun fbigun commented on 83fac01 Dec 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

来学习怎么给第一个commit写说明,原来也很简单的嘛

@yj666
Copy link

@yj666 yj666 commented on 83fac01 Dec 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合影留念~

@coolRoger
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

居然在opensea上面找到这个nft:
VueJs first commit of src/main.js by Evan You (yyx990803)
特意前来考古

@1041653026
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

打卡,拍照~[咔嚓]

@hellowangyatao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

留影~

@GLFei
Copy link

@GLFei GLFei commented on 83fac01 May 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

火后留名

@jovialcore
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the beginning...

@yidingww
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

留念~

@AllenYu0118
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@o-az
Copy link

@o-az o-az commented on 83fac01 Aug 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrisxxp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing

@WangNingning1994
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awsome

@szg2008
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

留念~~~

@RED523
Copy link

@RED523 RED523 commented on 83fac01 Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

兄弟们知乎地址是多少??

看到大佬了👀

@RED523
Copy link

@RED523 RED523 commented on 83fac01 Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

穿越回初代 vue.js

Please sign in to comment.