File tree 4 files changed +5
-64
lines changed
4 files changed +5
-64
lines changed Original file line number Diff line number Diff line change 1
- # OneNotePicker-JS
2
- A JavaScript UI component that allows a user to choose one of their Notebook Sections
3
- For example, this is consumed in https://github.com/OneNoteDev/WebClipper
4
-
5
- ## Setup
6
- ### 1. Install npm -- https://nodejs.org/en/download/
7
-
8
- ### 2. Install gulp globally:
9
- ``` sh
10
- $ npm install --global gulp
11
- ```
12
- (Note: on windows, you also need to add "%appdata%\npm" to your PATH)
13
-
14
- ### 3. Install the OneNotePicker packages
15
- From the root of this project, run:
16
- ``` sh
17
- $ npm install
18
- ```
19
-
20
- ### 4. Setup the other dependencies
21
- From the root of this project, run:
22
- ``` sh
23
- $ gulp setup
24
- ```
25
-
26
- ### 5. Build and Test
27
- Now just run:
28
- ``` sh
29
- $ gulp
30
- ```
31
-
32
- ## Congratulations!
33
- At this point you should see the tests passing, and see the packaged code in the ` target ` folder
34
-
35
-
36
- ### Other Gulp shortcuts
37
- #### Gulp clean
38
- ``` sh
39
- $ gulp clean
40
- ```
41
- Removes all of the generated files from ` build ` , and uninstalls anything done in ` setup `
42
-
43
- #### Gulp setup
44
- ``` sh
45
- $ gulp setup
46
- ```
47
- Installs the d.ts files and links the non-published npm packages
48
-
49
- #### Gulp build
50
- ``` sh
51
- $ gulp build
52
- ```
53
- (Note: this is currently the default command when you run ` gulp ` )
54
- The command you will use the most often when making code changes:
55
- - Compiles LESS and TypeScript into /build
56
- - Bundles the JavaScript modules together into /bundle
57
- - Exports all the needed files to /target
58
-
59
- #### Gulp runTests
60
- ``` sh
61
- $ gulp runTests
62
- ```
63
- Run all of the unit tests on the command line
1
+ # Notes
2
+ * ` dir ` tag must be specified on body for this library to work
Original file line number Diff line number Diff line change 43
43
"postcss-import" : " ^10.0.0" ,
44
44
"postcss-loader" : " ^2.0.5" ,
45
45
"postcss-reporter" : " ^3.0.0" ,
46
+ "postcss-rtl" : " ^0.5.9" ,
46
47
"postcss-url" : " ^6.1.0" ,
47
48
"react-addons-test-utils" : " ^15.5.1" ,
48
49
"react-dev-utils" : " ^0.5.2" ,
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ module.exports = {
4
4
'postcss-cssnext' : {
5
5
browsers : [ 'last 2 versions' , '> 5%' ] ,
6
6
} ,
7
+ 'postcss-rtl' : { }
7
8
} ,
8
9
} ;
Original file line number Diff line number Diff line change 6
6
< link rel ="stylesheet " href ="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/4.1.0/css/fabric.min.css ">
7
7
< link rel ="stylesheet " href ="dist/onenotepicker.css ">
8
8
</ head >
9
- < body style ="min-height:100% ">
9
+ < body style ="min-height:100% " dir =" ltr " >
10
10
< div id ="oneNotePicker " style ="width:350px;height:350px;margin:50px;overflow-y:scroll "> </ div >
11
11
< script src ="dist/sample.js "> </ script >
12
12
</ body >
You can’t perform that action at this time.
0 commit comments