svelte-tel-input 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +0 -1
- package/.github/workflows/release.yml +6 -7
- package/CHANGELOG.md +9 -9
- package/README.md +1 -1
- package/docker-compose.yml +0 -2
- package/package.json +3 -13
- package/scripts/changelog-github-custom.cjs +0 -6
- package/scripts/changelog-github-custom.ts +1 -1
- package/svelte.config.js +1 -7
- package/.storybook/main.cjs +0 -38
- package/.storybook/preview-head.html +0 -1
- package/.storybook/preview.cjs +0 -39
package/.eslintignore
CHANGED
|
@@ -24,13 +24,6 @@ jobs:
|
|
|
24
24
|
- name: Install dependencies
|
|
25
25
|
run: npm install --frozen-lockfile
|
|
26
26
|
|
|
27
|
-
- name: Packaging
|
|
28
|
-
run: |
|
|
29
|
-
npm run package
|
|
30
|
-
# ls -l package
|
|
31
|
-
# cd package
|
|
32
|
-
# npm publish
|
|
33
|
-
|
|
34
27
|
- name: Creating .npmrc
|
|
35
28
|
run: |
|
|
36
29
|
cat << EOF > "$HOME/.npmrc"
|
|
@@ -39,6 +32,12 @@ jobs:
|
|
|
39
32
|
env:
|
|
40
33
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
41
34
|
|
|
35
|
+
- name: Packaging
|
|
36
|
+
run: |
|
|
37
|
+
npm run package
|
|
38
|
+
ls -l package
|
|
39
|
+
cd package
|
|
40
|
+
|
|
42
41
|
- name: Create Release Pull Request or Publish to npm
|
|
43
42
|
id: changesets
|
|
44
43
|
uses: changesets/action@v1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
# svelte-tel-input
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
4
|
-
### Minor Changes
|
|
3
|
+
## 0.2.0
|
|
5
4
|
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- remove unused packages, cleanup, fix ci ([#19](https://github.com/gyurielf/svelte-tel-input/pull/19))
|
|
7
8
|
|
|
8
|
-
-
|
|
9
|
+
* fix: another CI fix ([#20](https://github.com/gyurielf/svelte-tel-input/pull/20))
|
|
9
10
|
|
|
11
|
+
## 0.1.0
|
|
10
12
|
|
|
11
|
-
###
|
|
13
|
+
### Minor Changes
|
|
12
14
|
|
|
15
|
+
- test_1
|
|
13
16
|
|
|
17
|
+
### Patch Changes
|
|
14
18
|
|
|
15
19
|
- szo
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- test 2
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
* test 2
|
|
22
22
|
|
|
23
23
|
- test3
|
package/README.md
CHANGED
package/docker-compose.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-tel-input",
|
|
3
3
|
"description": "svelte-tel-input",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/gyurielf/svelte-tel-input.git"
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "svelte-kit build",
|
|
17
|
-
"commitmsg": "commitlint -e $GIT_PARAMS",
|
|
18
17
|
"dev": "svelte-kit dev",
|
|
19
18
|
"eslint": "eslint --ext .js,.ts,.svelte .",
|
|
20
19
|
"eslint:fix": "eslint --fix",
|
|
@@ -26,10 +25,8 @@
|
|
|
26
25
|
"prettier:fix": "prettier --write --plugin-search-dir=. .",
|
|
27
26
|
"prepare": "husky install",
|
|
28
27
|
"preview": "svelte-kit preview",
|
|
29
|
-
"release": "npm
|
|
30
|
-
"svelte-check": "svelte-check --ignore 'dist,build,coverage,.
|
|
31
|
-
"storybook": "start-storybook -p 6006",
|
|
32
|
-
"build-storybook": "build-storybook",
|
|
28
|
+
"release": "npm publish",
|
|
29
|
+
"svelte-check": "svelte-check --ignore 'dist,build,coverage,.svelte-kit,package' --threshold warning --fail-on-warnings",
|
|
33
30
|
"test": "jest",
|
|
34
31
|
"test:watch": "jest --watch",
|
|
35
32
|
"ts": "tsc --noEmit",
|
|
@@ -44,12 +41,6 @@
|
|
|
44
41
|
"@changesets/cli": "^2.19.0",
|
|
45
42
|
"@changesets/get-github-info": "^0.5.0",
|
|
46
43
|
"@changesets/types": "^4.0.2",
|
|
47
|
-
"@storybook/addon-a11y": "^6.4.13",
|
|
48
|
-
"@storybook/addon-actions": "^6.4.13",
|
|
49
|
-
"@storybook/addon-essentials": "^6.4.13",
|
|
50
|
-
"@storybook/addon-links": "^6.4.13",
|
|
51
|
-
"@storybook/addon-svelte-csf": "^1.1.0",
|
|
52
|
-
"@storybook/svelte": "^6.4.13",
|
|
53
44
|
"@sveltejs/adapter-static": "^1.0.0-next.26",
|
|
54
45
|
"@sveltejs/kit": "^1.0.0-next.229",
|
|
55
46
|
"@testing-library/jest-dom": "^5.16.1",
|
|
@@ -77,7 +68,6 @@
|
|
|
77
68
|
"prettier-plugin-svelte": "^2.6.0",
|
|
78
69
|
"standard-changelog": "^2.0.27",
|
|
79
70
|
"standard-version": "^9.3.2",
|
|
80
|
-
"storybook-dark-mode": "^1.0.8",
|
|
81
71
|
"svelte": "^3.46.2",
|
|
82
72
|
"svelte-check": "^2.3.0",
|
|
83
73
|
"svelte-inview": "^2.1.1",
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// taken from https://raw.githubusercontent.com/sveltejs/vite-plugin-svelte/master/scripts/changelog-github-custom.js
|
|
2
|
-
// based on https://github.com/atlassian/changesets/blob/main/packages/changelog-github/src/index.ts
|
|
3
|
-
// modifications to improve readability:
|
|
4
|
-
// - removed thanks notes. We're thanking contributors in the PRs or acknowledge their work in different ways
|
|
5
|
-
// - moved issue links to end of first line
|
|
6
|
-
|
|
7
1
|
const { config } = require('dotenv');
|
|
8
2
|
const { getInfo, getInfoFromPullRequest } = require('@changesets/get-github-info');
|
|
9
3
|
|
package/svelte.config.js
CHANGED
|
@@ -18,13 +18,7 @@ export default {
|
|
|
18
18
|
return mm.all(filepath, ['!**/_*.scss', '!**/*.test.*']);
|
|
19
19
|
},
|
|
20
20
|
files: (filepath) => {
|
|
21
|
-
return mm.all(filepath, [
|
|
22
|
-
'!**/.*',
|
|
23
|
-
'!**/*.test.*',
|
|
24
|
-
'!**/*.stories.*',
|
|
25
|
-
'!**/Storybook/Style.svelte',
|
|
26
|
-
'!**/*.sh'
|
|
27
|
-
]);
|
|
21
|
+
return mm.all(filepath, ['!**/.*', '!**/*.test.*', '!**/*.sh']);
|
|
28
22
|
}
|
|
29
23
|
},
|
|
30
24
|
adapter: staticAdapter(),
|
package/.storybook/main.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const sveltePreprocess = require('svelte-preprocess');
|
|
2
|
-
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const autoprefixer = require('autoprefixer');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx|mdx|svelte)'],
|
|
8
|
-
addons: [
|
|
9
|
-
'@storybook/addon-links',
|
|
10
|
-
'@storybook/addon-essentials',
|
|
11
|
-
'@storybook/addon-svelte-csf',
|
|
12
|
-
'storybook-dark-mode',
|
|
13
|
-
'@storybook/addon-a11y'
|
|
14
|
-
],
|
|
15
|
-
svelteOptions: {
|
|
16
|
-
preprocess: [
|
|
17
|
-
sveltePreprocess({
|
|
18
|
-
postcss: {
|
|
19
|
-
plugins: [autoprefixer]
|
|
20
|
-
},
|
|
21
|
-
scss: {
|
|
22
|
-
// Should replaced to tailwind..
|
|
23
|
-
// prependData: `@import 'src/lib/styles/init/all.scss';`,
|
|
24
|
-
outputStyle: 'compressed'
|
|
25
|
-
}
|
|
26
|
-
})
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
webpackFinal: async (config) => {
|
|
30
|
-
config.resolve.plugins.push(
|
|
31
|
-
new TsconfigPathsPlugin({
|
|
32
|
-
configFile: path.resolve(__dirname, '../tsconfig.json')
|
|
33
|
-
})
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
return config;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!--gitlab_visual_review-->
|
package/.storybook/preview.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { themes } from '@storybook/theming';
|
|
2
|
-
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
|
|
3
|
-
|
|
4
|
-
export const parameters = {
|
|
5
|
-
darkMode: {
|
|
6
|
-
// Override the default dark theme
|
|
7
|
-
dark: { ...themes.dark, appBg: 'black' },
|
|
8
|
-
// Override the default light theme
|
|
9
|
-
light: { ...themes.normal, appBg: 'white' },
|
|
10
|
-
classTarget: 'html',
|
|
11
|
-
stylePreview: true,
|
|
12
|
-
darkClass: 'dark',
|
|
13
|
-
lightClass: 'light'
|
|
14
|
-
},
|
|
15
|
-
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
16
|
-
controls: {
|
|
17
|
-
matchers: {
|
|
18
|
-
color: /(background|color)$/i,
|
|
19
|
-
date: /Date$/
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
backgrounds: {
|
|
23
|
-
default: '',
|
|
24
|
-
values: [
|
|
25
|
-
{
|
|
26
|
-
name: 'Light',
|
|
27
|
-
value: '#f5f6fa'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'Dark',
|
|
31
|
-
value: '#1b2431'
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
target: 'html'
|
|
35
|
-
},
|
|
36
|
-
viewport: {
|
|
37
|
-
viewports: INITIAL_VIEWPORTS
|
|
38
|
-
}
|
|
39
|
-
};
|