Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
initial setup
- Loading branch information
0 parents
commit 83fac01
Showing
8 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .DS_Store | ||
| .sass-cache | ||
| node_modules | ||
| components | ||
| dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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'] ) | ||
|
|
||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "element", | ||
| "version": "0.0.1", | ||
| "dependencies": { | ||
| "component/emitter": "*" | ||
| }, | ||
| "main": "src/main.js", | ||
| "scripts": [ | ||
| "src/main.js" | ||
| ] | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| module.exports = 123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| var Element = require('element') | ||
|
|
||
| describe('Element', function () { | ||
| it('should have a variable', function () { | ||
| assert.equal(Element, 123) | ||
| }) | ||
| }) |
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
合影
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
合影+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
兄弟们知乎地址是多少??
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
汪宇良到此一游
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello vue
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎊
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
666
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
自己找过来的
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
四爷来啦!
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从2019.04.03穿越而来
83fac01There was a problem hiding this comment.
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
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在github上翻页翻了一个多小时了,终于找到最初的commit了,打个卡先
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
创世开篇,从这里研习源码与思想
83fac01There was a problem hiding this comment.
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.
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎 +1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm coming.
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎观光团来了
83fac01There was a problem hiding this comment.
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.
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2020.04.14穿越过来的。vuejs初代,你好
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
來看源碼了
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
合影留念
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
知乎+1
83fac01There was a problem hiding this comment.
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
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the beginning
2020
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
逼乎司马🎉
fk all🎉
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello VueJS
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光团+1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
观光团 +1
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
到此一游,怀念尤大的神迹!
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
留名.
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現在靠著 Vue.js 吃飯呢,神串留名 🍻
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
来学习怎么给第一个commit写说明,原来也很简单的嘛
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
合影留念~
83fac01There was a problem hiding this comment.
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)
特意前来考古
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
打卡,拍照~[咔嚓]
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
留影~
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
火后留名
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the beginning...
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
留念~
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awsome
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
留念~~~
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看到大佬了👀
83fac01There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
穿越回初代 vue.js