Skip to content

Commit 018ce5a

Browse files
committed
Creating project
1 parent 678ce1b commit 018ce5a

File tree

12 files changed

+359
-0
lines changed

12 files changed

+359
-0
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015", "stage-2"],
3+
"plugins": ["transform-runtime"]
4+
}

.eslintrc

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
{
2+
"plugins": [
3+
"html"
4+
],
5+
6+
"env": {
7+
"browser": true,
8+
"node": true
9+
},
10+
11+
"ecmaFeatures": {
12+
"arrowFunctions": true,
13+
"destructuring": true,
14+
"classes": true,
15+
"defaultParams": true,
16+
"blockBindings": true,
17+
"modules": true,
18+
"objectLiteralComputedProperties": true,
19+
"objectLiteralShorthandMethods": true,
20+
"objectLiteralShorthandProperties": true,
21+
"restParams": true,
22+
"spread": true,
23+
"forOf": true,
24+
"generators": true,
25+
"templateStrings": true,
26+
"superInFunctions": true,
27+
"experimentalObjectRestSpread": true
28+
},
29+
30+
"rules": {
31+
"accessor-pairs": 2,
32+
"array-bracket-spacing": 0,
33+
"block-scoped-var": 0,
34+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
35+
"camelcase": 0,
36+
"comma-dangle": [2, "never"],
37+
"comma-spacing": [2, { "before": false, "after": true }],
38+
"comma-style": [2, "last"],
39+
"complexity": 0,
40+
"computed-property-spacing": 0,
41+
"consistent-return": 0,
42+
"consistent-this": 0,
43+
"constructor-super": 2,
44+
"curly": [2, "multi-line"],
45+
"default-case": 0,
46+
"dot-location": [2, "property"],
47+
"dot-notation": 0,
48+
"eol-last": 2,
49+
"eqeqeq": [2, "allow-null"],
50+
"func-names": 0,
51+
"func-style": 0,
52+
"generator-star-spacing": [2, { "before": true, "after": true }],
53+
"guard-for-in": 0,
54+
"handle-callback-err": [2, "^(err|error)$" ],
55+
"indent": [2, 2, { "SwitchCase": 1 }],
56+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
57+
"linebreak-style": 0,
58+
"lines-around-comment": 0,
59+
"max-nested-callbacks": 0,
60+
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
61+
"new-parens": 2,
62+
"newline-after-var": 0,
63+
"no-alert": 0,
64+
"no-array-constructor": 2,
65+
"no-caller": 2,
66+
"no-catch-shadow": 0,
67+
"no-cond-assign": 2,
68+
"no-console": 0,
69+
"no-constant-condition": 0,
70+
"no-continue": 0,
71+
"no-control-regex": 2,
72+
"no-debugger": 2,
73+
"no-delete-var": 2,
74+
"no-div-regex": 0,
75+
"no-dupe-args": 2,
76+
"no-dupe-keys": 2,
77+
"no-duplicate-case": 2,
78+
"no-else-return": 0,
79+
"no-empty": 0,
80+
"no-empty-character-class": 2,
81+
"no-empty-label": 2,
82+
"no-eq-null": 0,
83+
"no-eval": 2,
84+
"no-ex-assign": 2,
85+
"no-extend-native": 2,
86+
"no-extra-bind": 2,
87+
"no-extra-boolean-cast": 2,
88+
"no-extra-parens": 0,
89+
"no-extra-semi": 0,
90+
"no-fallthrough": 2,
91+
"no-floating-decimal": 2,
92+
"no-func-assign": 2,
93+
"no-implied-eval": 2,
94+
"no-inline-comments": 0,
95+
"no-inner-declarations": [2, "functions"],
96+
"no-invalid-regexp": 2,
97+
"no-irregular-whitespace": 2,
98+
"no-iterator": 2,
99+
"no-label-var": 2,
100+
"no-labels": 2,
101+
"no-lone-blocks": 2,
102+
"no-lonely-if": 0,
103+
"no-loop-func": 0,
104+
"no-mixed-requires": 0,
105+
"no-mixed-spaces-and-tabs": 2,
106+
"no-multi-spaces": 2,
107+
"no-multi-str": 2,
108+
"no-multiple-empty-lines": [2, { "max": 1 }],
109+
"no-native-reassign": 2,
110+
"no-negated-in-lhs": 2,
111+
"no-nested-ternary": 0,
112+
"no-new": 2,
113+
"no-new-func": 0,
114+
"no-new-object": 2,
115+
"no-new-require": 2,
116+
"no-new-wrappers": 2,
117+
"no-obj-calls": 2,
118+
"no-octal": 2,
119+
"no-octal-escape": 2,
120+
"no-param-reassign": 0,
121+
"no-path-concat": 0,
122+
"no-process-env": 0,
123+
"no-process-exit": 0,
124+
"no-proto": 0,
125+
"no-redeclare": 2,
126+
"no-regex-spaces": 2,
127+
"no-restricted-modules": 0,
128+
"no-return-assign": 2,
129+
"no-script-url": 0,
130+
"no-self-compare": 2,
131+
"no-sequences": 2,
132+
"no-shadow": 0,
133+
"no-shadow-restricted-names": 2,
134+
"no-spaced-func": 2,
135+
"no-sparse-arrays": 2,
136+
"no-sync": 0,
137+
"no-ternary": 0,
138+
"no-this-before-super": 2,
139+
"no-throw-literal": 2,
140+
"no-trailing-spaces": 2,
141+
"no-undef": 2,
142+
"no-undef-init": 2,
143+
"no-undefined": 0,
144+
"no-underscore-dangle": 0,
145+
"no-unexpected-multiline": 2,
146+
"no-unneeded-ternary": 2,
147+
"no-unreachable": 2,
148+
"no-unused-expressions": 0,
149+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
150+
"no-use-before-define": 0,
151+
"no-var": 0,
152+
"no-void": 0,
153+
"no-warning-comments": 0,
154+
"no-with": 2,
155+
"object-curly-spacing": 0,
156+
"object-shorthand": 0,
157+
"one-var": [2, { "initialized": "never" }],
158+
"operator-assignment": 0,
159+
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
160+
"padded-blocks": 0,
161+
"prefer-const": 0,
162+
"quote-props": 0,
163+
"quotes": [2, "single", "avoid-escape"],
164+
"radix": 2,
165+
"semi": [2, "never"],
166+
"semi-spacing": 0,
167+
"sort-vars": 0,
168+
"space-after-keywords": [2, "always"],
169+
"space-before-blocks": [2, "always"],
170+
"space-before-function-paren": [2, "always"],
171+
"space-in-parens": [2, "never"],
172+
"space-infix-ops": 2,
173+
"space-return-throw-case": 2,
174+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
175+
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
176+
"strict": 0,
177+
"use-isnan": 2,
178+
"valid-jsdoc": 0,
179+
"valid-typeof": 2,
180+
"vars-on-top": 0,
181+
"wrap-iife": [2, "any"],
182+
"wrap-regex": 0,
183+
"yoda": [2, "never"]
184+
}
185+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
dist/build.js

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# pushwhoosh_demo
2+
3+
> A Vue.js project
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# serve with hot reload at localhost:8080
12+
npm run dev
13+
14+
# build for production with minification
15+
npm run build
16+
17+
# lint all *.js and *.vue files
18+
npm run lint
19+
20+
# run unit tests
21+
npm test
22+
```
23+
24+
For more information see the [docs for vueify](https://github.com/vuejs/vueify).

dist/.gitkeep

Whitespace-only changes.

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>pushwhoosh_demo</title>
6+
</head>
7+
<body>
8+
<app></app>
9+
<script src="dist/build.js"></script>
10+
</body>
11+
</html>

karma.conf.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// https://github.com/Nikku/karma-browserify
2+
module.exports = function (config) {
3+
config.set({
4+
browsers: ['PhantomJS'],
5+
frameworks: ['browserify', 'jasmine'],
6+
files: ['test/unit/**/*.js'],
7+
reporters: ['spec'],
8+
preprocessors: {
9+
'test/unit/**/*.js': ['browserify']
10+
},
11+
browserify: {
12+
debug: true,
13+
// needed to enable mocks
14+
plugin: [require('proxyquireify').plugin]
15+
},
16+
// if you want to continuously re-run tests on file-save,
17+
// replace the following line with `autoWatch: true`
18+
singleRun: true
19+
})
20+
}

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "pushwhoosh_demo",
3+
"description": "A Vue.js project",
4+
"author": "AlvaradoAdam15 <[email protected]>",
5+
"scripts": {
6+
"dev": "watchify -vd -p browserify-hmr -e src/main.js -o dist/build.js & http-server -c 1 -a localhost",
7+
"build": "cross-env NODE_ENV=production browserify -e src/main.js | uglifyjs -c warnings=false -m > dist/build.js",
8+
"lint": "eslint --ext .js,.vue src test/unit",
9+
"test": "karma start karma.conf.js"
10+
},
11+
"browserify": {
12+
"transform": [
13+
"vueify",
14+
"babelify"
15+
]
16+
},
17+
"dependencies": {
18+
"vue": "^1.0.0"
19+
},
20+
"devDependencies": {
21+
"babel-core": "^6.0.0",
22+
"babel-plugin-transform-runtime": "^6.0.0",
23+
"babel-preset-es2015": "^6.0.0",
24+
"babel-preset-stage-2": "^6.0.0",
25+
"babel-runtime": "^5.8.0",
26+
"babelify": "^7.2.0",
27+
"browserify": "^12.0.1",
28+
"browserify-hmr": "^0.3.1",
29+
"cross-env": "^1.0.5",
30+
"eslint": "^1.10.3",
31+
"eslint-plugin-html": "^1.1.0",
32+
"http-server": "^0.8.5",
33+
"jasmine-core": "^2.4.1",
34+
"karma": "^0.13.15",
35+
"karma-browserify": "^4.4.2",
36+
"karma-jasmine": "^0.3.6",
37+
"karma-phantomjs-launcher": "^1.0.0",
38+
"karma-spec-reporter": "0.0.23",
39+
"phantomjs-prebuilt": "^2.1.3",
40+
"proxyquireify": "^3.0.1",
41+
"uglify-js": "^2.5.0",
42+
"vue-hot-reload-api": "^1.2.2",
43+
"vueify": "^8.0.0",
44+
"vueify-insert-css": "^1.0.0",
45+
"watchify": "^3.4.0"
46+
}
47+
}

src/App.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template>
2+
<div id="app">
3+
<hello></hello>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import Hello from './components/Hello.vue'
9+
10+
export default {
11+
components: {
12+
Hello
13+
}
14+
}
15+
</script>
16+
17+
<style>
18+
body {
19+
font-family: Helvetica, sans-serif;
20+
}
21+
</style>

src/components/Hello.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
data () {
10+
return {
11+
// note: changing this line won't causes changes
12+
// with hot-reload because the reloaded component
13+
// preserves its current state and we are modifying
14+
// its initial state.
15+
msg: 'Hello World!'
16+
}
17+
}
18+
}
19+
</script>

0 commit comments

Comments
 (0)