amotify 0.1.6 → 0.1.7
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/package.json +1 -1
- package/bundler.ts +0 -68
- package/tsconfig.json +0 -101
package/package.json
CHANGED
package/bundler.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import path from 'path'
|
|
2
|
-
import esbuild from 'esbuild'
|
|
3
|
-
import { sassPlugin,postcssModules } from 'esbuild-sass-plugin'
|
|
4
|
-
|
|
5
|
-
let project = {
|
|
6
|
-
name: 'amotify',
|
|
7
|
-
ver: 'v0.1.1',
|
|
8
|
-
author: 'mingoo, LLC.',
|
|
9
|
-
details: 'https://mingoo.co.jp/'
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let jsBanner = `/**
|
|
13
|
-
* @license amotify
|
|
14
|
-
* ${ project.name } ${ project.ver }
|
|
15
|
-
* ${ project.details }
|
|
16
|
-
|
|
17
|
-
* Copyright (c) ${ project.author }
|
|
18
|
-
* Released under the MIT license
|
|
19
|
-
* ${ project.details }
|
|
20
|
-
|
|
21
|
-
* Latest updated at: ${ new Date().toLocaleDateString() }
|
|
22
|
-
*/
|
|
23
|
-
`
|
|
24
|
-
|
|
25
|
-
esbuild.build( {
|
|
26
|
-
define: {
|
|
27
|
-
// 'process.env.NODE_ENV': '"production"'
|
|
28
|
-
},
|
|
29
|
-
bundle: true,
|
|
30
|
-
minify: true,
|
|
31
|
-
target: [ "ES6" ],
|
|
32
|
-
platform: 'node',
|
|
33
|
-
format: 'esm',
|
|
34
|
-
entryPoints: [
|
|
35
|
-
'./@src/index.tsx',
|
|
36
|
-
'./@src/atoms/index.tsx',
|
|
37
|
-
'./@src/atoms/Box/index.tsx',
|
|
38
|
-
],
|
|
39
|
-
outbase: './@src',
|
|
40
|
-
// outfile: './dist/amotify.min.js',
|
|
41
|
-
outdir: './dist',
|
|
42
|
-
external: [
|
|
43
|
-
"./node_modules/*"
|
|
44
|
-
],
|
|
45
|
-
plugins: [
|
|
46
|
-
sassPlugin( {
|
|
47
|
-
type: 'css',
|
|
48
|
-
filter: /\.module\.scss$/,
|
|
49
|
-
importMapper: ( path ) => {
|
|
50
|
-
let resolvedPath = path
|
|
51
|
-
.replace( /@props/,__dirname + '/@src/@styles/props.scss' )
|
|
52
|
-
.replace( /@mixin/,__dirname + '/@src/@styles/mixin.scss' )
|
|
53
|
-
return resolvedPath
|
|
54
|
-
},
|
|
55
|
-
transform: postcssModules( {
|
|
56
|
-
|
|
57
|
-
} )
|
|
58
|
-
} ),
|
|
59
|
-
sassPlugin( {
|
|
60
|
-
type: 'css'
|
|
61
|
-
} )
|
|
62
|
-
],
|
|
63
|
-
banner: {
|
|
64
|
-
js: jsBanner
|
|
65
|
-
},
|
|
66
|
-
} )
|
|
67
|
-
|
|
68
|
-
// npm publish --access=public
|
package/tsconfig.json
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
4
|
-
"dom",
|
|
5
|
-
"dom.iterable"
|
|
6
|
-
],
|
|
7
|
-
"jsx": "react",
|
|
8
|
-
"target": "ES2016",
|
|
9
|
-
"module": "commonjs",
|
|
10
|
-
"baseUrl": "./",
|
|
11
|
-
"paths": {
|
|
12
|
-
"@declaration": [
|
|
13
|
-
"@src/@declaration/_"
|
|
14
|
-
],
|
|
15
|
-
"@config": [
|
|
16
|
-
"@src/@middleware/_"
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
"strict": true,
|
|
20
|
-
"skipLibCheck": true,
|
|
21
|
-
"forceConsistentCasingInFileNames": true,
|
|
22
|
-
"downlevelIteration": true,
|
|
23
|
-
"allowJs": true,
|
|
24
|
-
"declaration": true,
|
|
25
|
-
"sourceMap": false,
|
|
26
|
-
"outDir": "./dist",
|
|
27
|
-
"noImplicitAny": true,
|
|
28
|
-
"noImplicitThis": true,
|
|
29
|
-
"noImplicitReturns": true,
|
|
30
|
-
"strictNullChecks": true,
|
|
31
|
-
"esModuleInterop": true,
|
|
32
|
-
"noEmitOnError": false,
|
|
33
|
-
"noEmit": false
|
|
34
|
-
},
|
|
35
|
-
"exclude": [
|
|
36
|
-
"node_modules",
|
|
37
|
-
"dist"
|
|
38
|
-
],
|
|
39
|
-
"include": [
|
|
40
|
-
"@src/**/*"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
// {
|
|
46
|
-
// "compilerOptions": {
|
|
47
|
-
// "lib": [
|
|
48
|
-
// "dom",
|
|
49
|
-
// "dom.iterable"
|
|
50
|
-
// ],
|
|
51
|
-
// "jsx": "react",
|
|
52
|
-
// "target": "ES2016",
|
|
53
|
-
// "module": "commonjs",
|
|
54
|
-
// "baseUrl": "./",
|
|
55
|
-
// "paths": {
|
|
56
|
-
// "@declaration": [
|
|
57
|
-
// "@src/_"
|
|
58
|
-
// ],
|
|
59
|
-
// "@global": [
|
|
60
|
-
// "@src/@global"
|
|
61
|
-
// ],
|
|
62
|
-
// "@atoms": [
|
|
63
|
-
// "@src/@atoms"
|
|
64
|
-
// ],
|
|
65
|
-
// "@mols": [
|
|
66
|
-
// "@src/@molecules"
|
|
67
|
-
// ],
|
|
68
|
-
// "@orgs": [
|
|
69
|
-
// "@src/@organisms"
|
|
70
|
-
// ],
|
|
71
|
-
// "@temps": [
|
|
72
|
-
// "@src/@templates"
|
|
73
|
-
// ],
|
|
74
|
-
// "@fn": [
|
|
75
|
-
// "@src/@functions"
|
|
76
|
-
// ],
|
|
77
|
-
// },
|
|
78
|
-
// "strict": true,
|
|
79
|
-
// "skipLibCheck": true,
|
|
80
|
-
// "forceConsistentCasingInFileNames": true,
|
|
81
|
-
// "downlevelIteration": true,
|
|
82
|
-
// "allowJs": true,
|
|
83
|
-
// "declaration": true,
|
|
84
|
-
// "sourceMap": false,
|
|
85
|
-
// "outDir": "./dist",
|
|
86
|
-
// "noImplicitAny": true,
|
|
87
|
-
// "noImplicitThis": true,
|
|
88
|
-
// "noImplicitReturns": true,
|
|
89
|
-
// "strictNullChecks": true,
|
|
90
|
-
// "esModuleInterop": true,
|
|
91
|
-
// "noEmitOnError": false,
|
|
92
|
-
// "noEmit": false
|
|
93
|
-
// },
|
|
94
|
-
// "exclude": [
|
|
95
|
-
// "node_modules",
|
|
96
|
-
// "dist"
|
|
97
|
-
// ],
|
|
98
|
-
// "include": [
|
|
99
|
-
// "@src/**/*"
|
|
100
|
-
// ]
|
|
101
|
-
// }
|