Skip to content

Commit 18d6795

Browse files
committed
Herping the derp (C) whatthecommit.com
1 parent a3e95d4 commit 18d6795

File tree

5 files changed

+76
-5
lines changed

5 files changed

+76
-5
lines changed

.travis.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,20 @@ jobs:
4646
include:
4747

4848
- stage: test
49-
node_js: lts/*
49+
name: ecma-script-parcel
50+
before_script:
51+
- cd ${root}/ecma-script-parcel
52+
- npm i
53+
- npm run start &
54+
- sleep 0.5s
55+
- npm run logs &
56+
- wait_for 1234
57+
script:
58+
- http :1234
59+
after_script:
60+
- npm run stop
61+
62+
- stage: test
5063
name: ecma-script-5
5164
before_script:
5265
- cd ${root}/ecma-script-5
@@ -68,23 +81,20 @@ jobs:
6881
# - npm run predeploy
6982

7083
- stage: test
71-
node_js: lts/*
7284
name: refs-work-natively-with-DOM-elements
7385
script:
7486
- cd ${root}/refs-work-natively-with-DOM-elements
7587
- npm i
7688
- npm run predeploy
7789

7890
- stage: test
79-
node_js: lts/*
8091
name: eventbus
8192
script:
8293
- cd ${root}/eventbus
8394
- npm i
8495
- npm run predeploy
8596

8697
- stage: test
87-
node_js: lts/*
8898
name: responsive-web-design
8999
script:
90100
- cd ${root}/responsive-web-design
@@ -94,7 +104,6 @@ jobs:
94104
- npm run build -- --report
95105

96106
- stage: test
97-
node_js: lts/*
98107
name: nuxt-server-side-rendering
99108
script:
100109
- cd ${root}/nuxt-server-side-rendering

ecma-script-parcel/package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "ecma-script-parcel",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.html",
6+
"scripts": {
7+
"start": "forever ./node_modules/.bin/parcel src/index.html",
8+
"logs": "forever logs -f 0",
9+
"stop": "forever stopall --killTree"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"@types/vue": "2.0.0",
16+
"forever": "1.0.0",
17+
"parcel-bundler": "1.12.4"
18+
}
19+
}

ecma-script-parcel/src/index.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Vue Parcel</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
8+
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
9+
<link rel="stylesheet" href="./style.css">
10+
</head>
11+
<body>
12+
<section class="section" id="app" @click="increment">
13+
<div class="container">
14+
<h1 class="title">
15+
Hello World
16+
</h1>
17+
<p class="subtitle">
18+
Counter <strong>{{ counter }}</strong>
19+
</p>
20+
</div>
21+
</section>
22+
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
23+
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/vuex/dist/vuex.min.js"></script>
25+
<script src="./script.js"></script>
26+
</body>
27+
</html>

ecma-script-parcel/src/script.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
(function main() {
3+
new Vue({
4+
el: '#app',
5+
data: function _data() {
6+
return {
7+
counter: 0,
8+
};
9+
},
10+
methods: {
11+
increment: function _increment() {
12+
this.counter++;
13+
},
14+
},
15+
});
16+
})();

ecma-script-parcel/src/style.css

Whitespace-only changes.

0 commit comments

Comments
 (0)