-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdev-scripts.txt
97 lines (76 loc) · 2.15 KB
/
dev-scripts.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
----------------------------------------------------------------------------
[ Sass ] -------------
Installing SASS
npm install node-sass --save-dev
-effects-
package.json >
"scripts": {
"compile:sass": "node-sass src/lib/scss/main.scss src/lib/dist/react-windows-ui.min.css --output-style compressed",
},
--compile--
npm run compile:sass
npm run compile:sass-rtl
----------------------------------------------------------------------------
[ GitHub Pages ] ------------
Installing gh-pages
npm install gh-pages --save-dev
-effects-
package.json >
"homepage": "https://virtualvivek.github.io/react-windows-ui/",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
},
--compile--
npm run deploy
----------------------------------------------------------------------------
[ Babel ] --------------
Installing Babel
npm install --save-dev @babel/core @babel/cli @babel/preset-env
npm i --save-dev babel-preset-minify
-effect-
package.json >
"build:production": "rm -rf dist && SET NODE_ENV=production && babel src/lib/src --out-dir src/lib/dist --copy-files",
[ File Added ] > babel.config.js
----------------------------------------------------------------------------
#### Compile Production ####
[ Open Git Bash Terminal ( Choose from dropdown in VS Code ) ]
npm run build:production
----------------------------------------------------------------------------
===========================
PUBLISHING ./lib
===========================
build:production
|
README.md (at ./lib)
|
package.json (at ./lib)
|
Login
|
cd src/lib/ > publish
=============================
react-windows-ui-boilerplace
=============================
Updating ./src
|
README.md
|
Release @Latest
============================
react-windows-ui
============================
package.json
|
README.md
|
Release @Latest
-----------------------------
Testing CRA Template Locally
=============================
cd ./react-windows-ui/src/cra-template
npx create-react-app my-app --template file:./react-windows-ui/src/cra-template
------------------------------------
Search & Updating Data in VSCode
------------------------------------
excluding = src/demo/v4.2.0/**