Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit 7c0b498

Browse files
feat: migrate to pnpm 😱 (#193)
* feat: migrate to pnpm * feat: add gitignore
1 parent 2f5e6e7 commit 7c0b498

Some content is hidden

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

78 files changed

+12330
-10280
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.DS_Store
22
node_modules
3-
/dist
4-
/lib-out/*.js
5-
/lib-out/*.ts
3+
dist
64

75
# local env files
86
.env.local
@@ -12,6 +10,8 @@ node_modules
1210
npm-debug.log*
1311
yarn-debug.log*
1412
yarn-error.log*
13+
pnpm-debug.log*
14+
pnpm-error.log*
1515

1616
# Editor directories and files
1717
.idea
@@ -21,3 +21,7 @@ yarn-error.log*
2121
*.njsproj
2222
*.sln
2323
*.sw?
24+
25+
.rts2_cache_cjs
26+
.rts2_cache_es
27+
.rts2_cache_umd

.travis.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
language: node_js
2-
node_js: '8'
2+
node_js: '12'
3+
34
branches:
45
only:
56
- master
6-
- /^greenkeeper/.*$/
7+
78
cache:
8-
yarn: true
99
directories:
1010
- node_modules
11+
12+
before_install:
13+
- npm install -g pnpm
14+
1115
install:
12-
- yarn install
16+
- pnpm install
17+
1318
script:
14-
- yarn build:demo
15-
# only for test the build process
16-
- yarn build:lib:tsc
17-
- yarn check:size
18-
# temporary hide
19-
# - yarn test
19+
- pnpm run build:demo
20+
- pnpm run build:lib
21+
- pnpm run bundlesize
22+
# - pnpm run test
23+
2024
# after_script:
2125
# - npm install -g codecov
2226
# - codecov
27+
2328
deploy:
2429
provider: pages
2530
skip-cleanup: true
2631
github-token: $GITHUB_TOKEN
2732
keep-history: true
28-
local-dir: dist
33+
local-dir: packages/demo/dist
2934
verbose: true
3035
on:
3136
branch: master

README.md

Lines changed: 15 additions & 25 deletions

check-size.js renamed to bundlesize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function readDirs (dirname, onDir, onError) {
2727
}
2828

2929
setTimeout(() => {
30-
readDirs(path.resolve('./lib-out/'), async (filepath, filename) => {
30+
readDirs(path.resolve('./packages/vue-currency-filter/dist/'), async (filepath, filename) => {
3131
try {
3232
console.log(chalk.greenBright(`> ${filename}: ${bytes(gzipSize.fileSync(filepath))}`))
3333
} catch (err) {

lib-out/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 18 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,23 @@
11
{
2-
"name": "vue-currency-filter",
3-
"description": "🍒 Lightweight vue currency filter based on accounting.js",
4-
"version": "4.0.3",
5-
"license": "MIT",
6-
"private": false,
2+
"name": "@vue-currency-filter/monorepo",
3+
"description": "🍒 Lightweight vue currency filter based on accounting.js",
4+
"version": "5.0.0",
5+
"license": "MIT",
6+
"author": "Irfan Maulana (https://github.com/mazipan/)",
7+
"homepage": "https://mazipan.github.io/vue-currency-filter/",
78
"scripts": {
8-
"dev": "vue-cli-service serve",
9-
"serve": "vue-cli-service serve",
10-
"prepare": "yarn build:lib:tsc",
11-
"build:demo": "vue-cli-service build",
12-
"build:lib": "vue-cli-service build --dest lib-out --target lib --name VueCurrencyFilter ./src/lib/VueCurrencyFilter.ts",
13-
"build:lib:tsc": "tsc ./src/lib/VueCurrencyFilter.ts -m CommonJS --outDir ./lib-out",
14-
"check:size": "node ./check-size.js",
15-
"lint": "vue-cli-service lint --fix"
16-
},
17-
"lint-staged": {
18-
"*.{js,vue}": [
19-
"yarn lint",
20-
"git add"
21-
]
22-
},
23-
"husky": {
24-
"hooks": {
25-
"pre-commit": "lint-staged"
26-
}
27-
},
28-
"author": "Irfan Maulana (https://github.com/mazipan/)",
29-
"homepage": "https://mazipan.github.io/vue-currency-filter/",
30-
"main": "lib-out/VueCurrencyFilter.js",
31-
"module": "lib-out/VueCurrencyFilter.js",
32-
"unpkg": "lib-out/VueCurrencyFilter.js",
33-
"jsdelivr": "lib-out/VueCurrencyFilter.js",
34-
"typings": "types/index.d.ts",
35-
"files": [
36-
"lib-out",
37-
"nuxt",
38-
"types"
39-
],
9+
"test": "echo \"Error: no test specified\" && exit 0",
10+
"build:lib": "pnpm run build --filter vue-currency-filter",
11+
"build:demo": "pnpm run build --filter @vue-currency-filter/demo",
12+
"bundlesize": "node ./bundlesize.js"
13+
},
14+
"devDependencies": {
15+
"bytes": "3.1.0",
16+
"chalk": "3.0.0",
17+
"gzip-size": "5.1.1",
18+
"husky": "3.1.0",
19+
"lint-staged": "9.5.0"
20+
},
4021
"keywords": [
4122
"vue 2 currency",
4223
"vue currency",
@@ -49,52 +30,5 @@
4930
},
5031
"bugs": {
5132
"url": "https://github.com/mazipan/vue-currency-filter/issues"
52-
},
53-
"peerDependencies": {
54-
"vue": "2.6.11"
55-
},
56-
"dependencies": {
57-
},
58-
"devDependencies": {
59-
"@types/node": "12.12.22",
60-
"@typescript-eslint/eslint-plugin": "2.18.0",
61-
"@typescript-eslint/parser": "2.18.0",
62-
"@vue/cli-plugin-babel": "4.1.2",
63-
"@vue/cli-plugin-eslint": "4.1.2",
64-
"@vue/cli-plugin-pwa": "4.1.2",
65-
"@vue/cli-plugin-router": "4.1.2",
66-
"@vue/cli-plugin-typescript": "4.1.2",
67-
"@vue/cli-plugin-vuex": "4.1.2",
68-
"@vue/cli-service": "4.1.2",
69-
"@vue/eslint-config-standard": "5.1.0",
70-
"@vue/eslint-config-typescript": "5.0.1",
71-
"babel-eslint": "10.0.3",
72-
"bulma-dracula": "1.0.3",
73-
"bytes": "3.1.0",
74-
"core-js": "3.6.4",
75-
"chalk": "3.0.0",
76-
"eslint": "6.8.0",
77-
"eslint-plugin-import": "2.20.1",
78-
"eslint-plugin-node": "11.0.0",
79-
"eslint-plugin-promise": "4.2.1",
80-
"eslint-plugin-standard": "4.0.1",
81-
"eslint-plugin-vue": "6.1.2",
82-
"gzip-size": "5.1.1",
83-
"husky": "3.1.0",
84-
"lint-staged": "10.0.7",
85-
"node-sass": "4.13.1",
86-
"prismjs": "1.19.0",
87-
"register-service-worker": "1.6.2",
88-
"sass-loader": "8.0.2",
89-
"tsc": "latest",
90-
"typescript": "3.7.5",
91-
"vue-class-component": "7.2.2",
92-
"vue-google-adsense": "1.8.0",
93-
"vue-prism-component": "1.1.1",
94-
"vue-property-decorator": "8.3.0",
95-
"vue-router": "3.1.5",
96-
"vue-script2": "2.1.0",
97-
"vue-template-compiler": "2.6.11",
98-
"vuex": "3.1.2"
9933
}
10034
}
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/cli-plugin-babel/preset'
3+
'@vue/cli-plugin-babel/preset',
44
]
55
}

packages/demo/package.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@vue-currency-filter/demo",
3+
"description": "🍒 Lightweight vue currency filter based on accounting.js",
4+
"version": "5.0.0",
5+
"license": "MIT",
6+
"author": "Irfan Maulana (https://github.com/mazipan/)",
7+
"homepage": "https://mazipan.github.io/vue-currency-filter/",
8+
"scripts": {
9+
"test": "echo \"Error: no test specified\" && exit 1",
10+
"dev": "vue-cli-service serve",
11+
"serve": "vue-cli-service serve",
12+
"build": "vue-cli-service build",
13+
"lint": "vue-cli-service lint --fix"
14+
},
15+
"devDependencies": {
16+
"vue-currency-filter": "file:../vue-currency-filter",
17+
"@typescript-eslint/eslint-plugin": "2.13.0",
18+
"@typescript-eslint/parser": "2.13.0",
19+
"@vue/cli-plugin-babel": "4.1.1",
20+
"@vue/cli-plugin-eslint": "4.1.1",
21+
"@vue/cli-plugin-pwa": "4.1.1",
22+
"@vue/cli-plugin-router": "4.1.1",
23+
"@vue/cli-plugin-typescript": "4.1.1",
24+
"@vue/cli-plugin-vuex": "4.1.1",
25+
"@vue/cli-service": "4.1.1",
26+
"@vue/eslint-config-standard": "5.0.1",
27+
"@vue/eslint-config-typescript": "5.0.1",
28+
"babel-eslint": "10.0.3",
29+
"babel-loader": "^8.1.0",
30+
"bulma-dracula": "1.0.3",
31+
"core-js": "3.6.1",
32+
"eslint": "6.8.0",
33+
"eslint-plugin-import": "2.19.1",
34+
"eslint-plugin-node": "11.0.0",
35+
"eslint-plugin-promise": "4.2.1",
36+
"eslint-plugin-standard": "4.0.1",
37+
"eslint-plugin-vue": "6.1.0",
38+
"node-sass": "4.13.0",
39+
"prismjs": "1.17.1",
40+
"register-service-worker": "1.6.2",
41+
"sass-loader": "8.0.0",
42+
"typescript": "3.7.4",
43+
"vue": "2.6.11",
44+
"vue-class-component": "7.1.0",
45+
"vue-google-adsense": "1.8.0",
46+
"vue-prism-component": "1.1.1",
47+
"vue-property-decorator": "8.3.0",
48+
"vue-router": "3.1.3",
49+
"vue-script2": "2.1.0",
50+
"vue-template-compiler": "2.6.11",
51+
"vuex": "3.1.2"
52+
}
53+
}

0 commit comments

Comments
 (0)