Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit cf3877d

Browse files
author
Irfan Maulana
committed
fix all failed build
1 parent ce4a012 commit cf3877d

21 files changed

+19269
-95
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ indent_size = 2
77
end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10+
quote_type = single

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ typings/
6161
.next
6262

6363
dist/
64+
.cache

build.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const shell = require('shelljs');
2+
3+
// run build webpack
4+
shell.cd('webpack');
5+
shell.exec('yarn install && yarn run build');
6+
7+
// run build rollup
8+
shell.cd('../rollup');
9+
shell.exec('yarn install && yarn run build');
10+
11+
// run build poi
12+
shell.cd('../poi');
13+
shell.exec('yarn install && yarn run build');
14+
15+
// run build parcel
16+
shell.cd('../parcel');
17+
shell.exec('yarn install && yarn run build');

package.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "setup-vue-without-vue-cli",
3+
"description": "How to create skeleton project in Vue.js from basic without Vue-CLI",
4+
"version": "0.0.1",
5+
"license": "MIT",
6+
"author": "Irfan Maulana (https://github.com/mazipan/)",
7+
"private": false,
8+
"scripts": {
9+
"build": "node build.js"
10+
},
11+
"homepage": "https://github.com/mazipan/setup-vue-without-vue-cli/",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/mazipan/setup-vue-without-vue-cli.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/mazipan/setup-vue-without-vue-cli/issues"
18+
},
19+
"dependencies": {
20+
"shelljs": "^0.8.2"
21+
},
22+
"devDependencies": {}
23+
}

parcel/.eslintrc.js

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
module.exports = {
2-
"env": {
3-
"browser": true,
4-
"commonjs": true,
5-
"es6": true,
6-
"jest": true
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es6: true,
6+
jest: true
77
},
8-
"extends": [
9-
"eslint:recommended",
10-
"plugin:vue/recommended"
11-
],
12-
"parserOptions": {
13-
"ecmaVersion": 2018,
14-
"sourceType": "module"
8+
extends: ['eslint:recommended', 'plugin:vue/recommended'],
9+
parserOptions: {
10+
ecmaVersion: 2018,
11+
sourceType: 'module'
1512
},
16-
"rules": {
17-
"indent": [ "error", 2 ],
18-
"linebreak-style": [ "error", "unix" ],
19-
"quotes": [ "error", "single" ],
20-
"semi": [ "error", "never" ],
21-
"no-console": "off"
13+
rules: {
14+
indent: ['error', 2],
15+
'linebreak-style': ['error', 'unix'],
16+
quotes: ['error', 'single'],
17+
semi: ['error', 'never'],
18+
'no-console': 'off'
2219
},
23-
"overrides": {
24-
"files": [ "**/*.js", "**/*.vue" ]
20+
overrides: {
21+
files: ['**/*.js', '**/*.vue']
2522
}
26-
};
23+
};

parcel/src/index.html renamed to parcel/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515

1616
<div id="app"></div>
1717

18-
<script src="./index.js"></script>
18+
<script src="./src/index.js"></script>
1919
</body>
2020
</html>

parcel/package.json

+9-20
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"author": "Irfan Maulana (https://github.com/mazipan/)",
77
"private": false,
88
"scripts": {
9-
"dev": "cross-env NODE_ENV=development ./node_modules/.bin/parcel",
10-
"build": "cross-env NODE_ENV=production ./node_modules/.bin/parcel build",
9+
"dev": "cross-env NODE_ENV=development ./node_modules/.bin/parcel index.html",
10+
"build": "rimraf dist && cross-env NODE_ENV=production ./node_modules/.bin/parcel build index.html",
1111
"lint": "./node_modules/.bin/eslint --ext .js,.vue src test/*.js --fix --no-ignore"
1212
},
1313
"homepage": "https://github.com/mazipan/setup-vue-without-vue-cli/",
@@ -19,34 +19,23 @@
1919
"url": "https://github.com/mazipan/setup-vue-without-vue-cli/issues"
2020
},
2121
"dependencies": {
22-
"vue": "^2.5.17"
22+
"vue": "^2.5.17",
23+
"vue-hot-reload-api": "^2.3.1"
2324
},
2425
"devDependencies": {
25-
"@vue/component-compiler-utils": "",
2626
"@babel/core": "^7.1.2",
2727
"@babel/preset-env": "^7.1.0",
28-
"autoprefixer": "^9.1.5",
28+
"@vue/component-compiler-utils": "2.2.0",
2929
"babel-core": "7.0.0-bridge.0",
3030
"cross-env": "^5.2.0",
3131
"css-loader": "^1.0.0",
3232
"es6-promise": "^4.2.5",
33-
"eslint": "^5.6.1",
33+
"eslint": "^5.7.0",
3434
"eslint-plugin-vue": "4.7.1",
35-
"file-loader": "^2.0.0",
36-
"html-webpack-plugin": "^3.2.0",
37-
"mini-css-extract-plugin": "^0.4.3",
38-
"node-sass": "^4.9.3",
39-
"optimize-css-assets-webpack-plugin": "^5.0.1",
40-
"parcel-bundler": "",
41-
"parcel-plugin-vue": "",
42-
"parcel-plugin-eslint": "",
35+
"node-sass": "^4.9.4",
36+
"parcel-bundler": "1.10.3",
4337
"rimraf": "^2.6.2",
4438
"sass-loader": "^7.1.0",
45-
"vue-loader": "^15.4.2",
46-
"vue-template-compiler": "^2.5.17",
47-
"webpack": "^4.20.2",
48-
"webpack-bundle-analyzer": "^3.0.2",
49-
"webpack-cli": "^3.1.2",
50-
"webpack-dev-server": "^3.1.9"
39+
"vue-template-compiler": "^2.5.17"
5140
}
5241
}

parcel/src/App.vue

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
2-
<div id="app" class="app">
2+
<div id="app"
3+
class="app">
34

45
<h1>Welcome to Vue</h1>
56
<h2>{{ message }}</h2>
@@ -12,13 +13,13 @@
1213

1314
<script>
1415
export default {
15-
name: 'app',
16+
name: 'App',
1617
data() {
1718
return {
1819
message: 'Hello World!!!'
19-
};
20+
}
2021
}
21-
};
22+
}
2223
</script>
2324

2425
<style lang="scss">

parcel/src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Vue from 'vue';
2-
import App from './App.vue';
1+
import Vue from 'vue'
2+
import App from './App.vue'
33

44
/* global process */
55
if (process.env.NODE_ENV !== 'production') {
6-
Vue.config.devtools = true;
6+
Vue.config.devtools = true
77
}
88

99
new Vue({
1010
el: '#app',
1111
render: h => h(App)
12-
});
12+
})

0 commit comments

Comments
 (0)