forked from wemersonjanuario/ext-allshared
-
Notifications
You must be signed in to change notification settings - Fork 0
/
other
75 lines (37 loc) · 1.18 KB
/
other
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
------------------
Open the package.json file in the editor.
In the package.json file under 'scripts', add the following:
```sh
"http": "npx http-server dist/ng{bundle} -g -o",
```
note: replace 'ng{bundle}' with actual project name
???????
### copy demo from npm package
```sh
cp -R ./node_modules/@sencha/ext-angular-grid/demo/src ./
cp -R ./node_modules/@sencha/ext-angular-grid/demo/assets ./src
```
?????
### run a production build
```sh
npm run build
npm run http
```
the ExtAngular application will load in a browser - the application is a simple ext{bundle}
----------------
#### steps to build npm package
```sh
cd ~/_git/sencha/ext-allshared/generators/grid
npm install
npm run packagr; cp -R demo/ dist/demo/; cd dist; npm publish -force
```
#### steps for local npm build
```sh
npm pack (used to build a local zip package)
cp -R ./sencha-ext-angular-grid-7.0.0.tgz ../../../../ext-angular/packages/
cp -R ./sencha-ext-angular-grid-7.0.0.tgz /Volumes/BOOTCAMP/aaPlayground/
cd /Volumes/BOOTCAMP/aaPlayground/
npm install ../sencha-ext-angular-grid-7.0.0.tgz
(results in...)
"@sencha/ext-angular-grid": "file:../sencha-ext-angular-grid-7.0.0.tgz",
```