Repository navigation
Expand file tree
/
Copy pathimport.sc
More file actions
50 lines (42 loc) · 2.69 KB
/
Copy pathimport.sc
File metadata and controls
50 lines (42 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
* Usage: x run import.sc *
* x mix svg-action svg-alert svg-av svg-communication svg-content svg-device svg-editor svg-file svg-hardware svg-image svg-maps svg-navigation svg-places svg-social svg-toggle *
{{ const libs = {
'@servicestack/client/servicestack-client.min.js': 'https://unpkg.com/@servicestack/client/dist/servicestack-client.min.js',
'@servicestack/vue/servicestack-vue.min.js': 'https://unpkg.com/@servicestack/vue/dist/servicestack-vue.umd.js',
'@servicestack/react/servicestack-react.min.js': 'https://unpkg.com/@servicestack/react/dist/servicestack-react.min.js',
'vue/vue.min.js': 'https://unpkg.com/vue/dist/vue.min.js',
'vue-class-component/vue-class-component.min.js': 'https://unpkg.com/vue-class-component/dist/vue-class-component.min.js',
'vue-property-decorator/vue-property-decorator.min.js': 'https://unpkg.com/vue-property-decorator',
'vue-router/vue-router.min.js': 'https://unpkg.com/vue-router/dist/vue-router.min.js',
'vuex/vuex.min.js': 'https://unpkg.com/vuex/dist/vuex.min.js',
'portal-vue/portal-vue.min.js': 'https://unpkg.com/portal-vue/dist/portal-vue.umd.min.js',
'bootstrap-vue/bootstrap-vue.min.js': 'https://unpkg.com/bootstrap-vue/dist/bootstrap-vue.min.js',
'react/react.production.min.js':'https://unpkg.com/react/umd/react.production.min.js',
'react-dom/react-dom.production.min.js':'https://unpkg.com/react-dom/umd/react-dom.production.min.js',
'react-router/react-router.min.js':'https://unpkg.com/react-router/umd/react-router.production.min.js',
'react-router-dom/react-router-dom.min.js':'https://unpkg.com/react-router-dom/umd/react-router-dom.production.min.js',
'mobx/mobx.min.js': 'https://unpkg.com/mobx/dist/mobx.umd.production.min.js',
'redux/redux.min.js': 'https://unpkg.com/redux/dist/redux.min.js',
'react-redux/react-redux.min.js': 'https://unpkg.com/react-redux/dist/react-redux.min.js',
'bootstrap/bootstrap.min.js': 'https://unpkg.com/bootstrap/dist/js/bootstrap.min.js',
'popper/popper.min.js':'https://cdn.jsdelivr.net/npm/popper.js/dist/umd/popper.min.js',
'jquery/jquery.min.js': 'https://unpkg.com/jquery/dist/jquery.min.js',
}
}}
#each libs
it.Value |> urlContentsWithCache() |> to => js
let path = `lib/js/${it.Key}`
`writing file ${path}...`
path.writeFile(js) |> end
/each
{{ css = {
'bootstrap/bootstrap.css': 'https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css',
'litewind/litewind.css': 'https://raw.githubusercontent.com/mythz/site/main/css/litewind.css',
}
}}
#each css
it.Value |> urlContentsWithCache() |> to => js
let path = `lib/css/${it.Key}`
`writing file ${path}...`
path.writeFile(js) |> end
/each