Skip to content

Commit db58ffc

Browse files
authored
Merge pull request #98 from OneNoteDev/feature/move-to-react
Feature/move to react
2 parents 57c1220 + 69ca0e8 commit db58ffc

File tree

107 files changed

+3648
-6179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3648
-6179
lines changed

Diff for: .editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
insert_final_newline = true
3+
end_of_line = lf
4+
5+
[*.{js,ts,tsx,sass,scss}]
6+
indent_style = tab
7+
indent_size = 4

Diff for: .gitignore

+21-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
.vs
2-
build
3-
bundles
4-
node_modules
5-
target/modules
6-
target/tests
7-
typings
8-
debug.log
9-
*.user
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
package-lock.json
6+
7+
# testing
8+
/coverage
9+
10+
# production
11+
/dist
12+
13+
# misc
14+
.DS_Store
15+
.env
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
20+
# IDE Specific Ignores
21+
.idea

Diff for: .vscode/settings.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
{
33
"editor.formatOnType": true,
44
"editor.insertSpaces": false,
5-
"editor.renderWhitespace": true,
5+
"editor.renderWhitespace": "boundary",
6+
"editor.tabSize": 4,
67
"files.exclude": {
78
"**/.git": true,
89
"**/.DS_Store": true,
9-
"build/": true,
10-
"target/": true,
11-
"node_modules/": true,
12-
"src/definitions": true
10+
"node_modules/": true
1311
}
14-
}
12+
}

Diff for: OneNotePicker-JS.csproj

-34
This file was deleted.

Diff for: README.md

+2-63
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,2 @@
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

Diff for: dtsBundlePlugin.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const dts = require('dts-bundle');
2+
3+
class DtsBundlePlugin {
4+
constructor(options) {
5+
this.options = options;
6+
}
7+
8+
apply(compiler) {
9+
compiler.plugin('done', () => {
10+
dts.bundle(this.options);
11+
});
12+
}
13+
}
14+
15+
module.exports = DtsBundlePlugin;

0 commit comments

Comments
 (0)