Skip to content

Commit 3d7d030

Browse files
authored
Merge pull request #24 from VanishMax/rollup-builds
Reinit application with Rollup-based architecture
2 parents d1d38e3 + feb4603 commit 3d7d030

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+7387
-6112
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
ecmaVersion: 2020,
1515
},
1616
plugins: ['@typescript-eslint/eslint-plugin'],
17+
ignorePatterns: ['.github', '.idea', '.vscode', 'node_modules', 'dist', 'docs'],
1718
rules: {
1819
// ES options
1920
semi: [2, 'always'],
@@ -22,7 +23,7 @@ module.exports = {
2223
'max-len': 0,
2324
'no-plusplus': 0,
2425
camelcase: 0,
25-
'no-console': ['warn', { 'allow': ['warn', 'error'] }],
26+
'no-console': ['warn', { allow: ['warn', 'error'] }],
2627
'space-before-function-paren': 0,
2728
'jsx-quotes': 0,
2829
'no-class-assign': 0,
@@ -64,7 +65,7 @@ module.exports = {
6465

6566
// Typescript options
6667
'@typescript-eslint/no-explicit-any': 0,
67-
'@typescript-eslint/ban-ts-ignore': 0,
68+
'@typescript-eslint/ban-ts-comment': 0,
6869
'@typescript-eslint/member-delimiter-style': ['error', {
6970
multiline: {
7071
delimiter: 'comma',

.github/workflows/unit-tests.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unit tests
2+
on: push
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- name: Use Node.js 12
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 12
14+
registry-url: https://registry.npmjs.org/
15+
16+
- name: Install modules
17+
run: npm install
18+
19+
- name: Run unit tests
20+
run: npm test

.npmignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
docs
2-
dist/demo.html
3-
src/docs
4-
src/main.ts
1+
/demo
2+
/docs
3+
src/demo-config.js
54
node_modules
65
.eslintrc.js
76
.vercel
7+
vercel.json
88
.git
99
.idea
1010
.DS_Store
11-
1211
__tests__

babel.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
const devPresets = ['@vue/babel-preset-app'];
2+
const buildPresets = ['@babel/preset-env', '@babel/preset-typescript'];
3+
14
module.exports = {
2-
presets: [
3-
'@vue/cli-plugin-babel/preset',
4-
],
5+
presets: (process.env.NODE_ENV === 'development' ? devPresets : buildPresets),
6+
plugins: ['@babel/plugin-proposal-class-properties'],
57
};

demo/app.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Vue from 'vue';
2+
import {iui} from '@/main';
3+
import tailwindConfig from '@/demo-config';
4+
import App from './app.vue';
5+
import router from './router';
6+
7+
Vue.config.productionTip = false;
8+
Vue.use(iui, tailwindConfig);
9+
10+
// Documentation entry of the app
11+
new Vue({
12+
router,
13+
render: (h) => h(App),
14+
}).$mount('#app');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
22
<div id="app">
3-
<router-view/>
3+
<router-view />
44
</div>
55
</template>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<script lang="ts">
1111
import Vue from 'vue';
12-
import Button from '@/lib/components/Button';
12+
import Button from '../../src/components/Button';
1313
1414
export default Vue.extend({
1515
name: 'Counter',
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<script lang="ts">
1010
import Vue from 'vue';
11-
import Button from '@/lib/components/Button';
11+
import Button from '../../src/components/Button';
1212
1313
export default Vue.extend({
1414
name: 'Buttons',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
<script lang="ts">
3333
import Vue from 'vue';
34-
import Checkbox from '@/lib/components/Checkbox';
35-
import CheckboxGroup from '@/lib/components/CheckboxGroup';
34+
import Checkbox from '../../src/components/Checkbox';
35+
import CheckboxGroup from '../../src/components/CheckboxGroup';
3636
3737
export default Vue.extend({
3838
name: 'Checkboxes',

0 commit comments

Comments
 (0)