Giter Site home page Giter Site logo

s-n-d-p / webclipper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onenotedev/webclipper

0.0 1.0 0.0 70.14 MB

The OneNote Web Clipper extension

Home Page: https://www.onenote.com/clipper

License: MIT License

JavaScript 18.07% HTML 0.21% TypeScript 79.74% Less 1.98%

webclipper's Introduction

WebClipper

Setup

(Note: on windows, you also need to add "%appdata%\npm" to your PATH)

2. Install the WebClipper packages

From the root of this project, run:

$ npm install

3. Build and Test

The default command to build and test:

$ npm run build
or
$ npm run build -- --<arg>
  • Compiles LESS and TypeScript into /build
  • Bundles the JavaScript modules together into /build/bundles
  • Exports all the needed files to /target

4. Running in chrome

Google instructions

  1. In chrome, open chrome://extensions/
  2. Enable developer mode (upper right toggle)
  3. Click on "load unpacked" and select the target/chrome folder
  4. On subsequent builds, you don't have to go through this flow again. Simply refreshing the page should update the add-in

4. Running in edge

Microsoft instructions

  1. In edge, go to edge://extensions
  2. Enable developer mode (bottom left toggle)
  3. Restart edge
  4. Click on top right "...", then Extensions
  5. Click on "Load unpacked" and select the target\edge\OneNoteWebClipper\edgeextension\manifest\extension
  6. On subsequent builds, you need to go through steps (4) and (5) again

5. Looking at console output

Set the "enable_console_logging" local storage entry to true

6. Shipping an update to the store

Every store is different and you'll have to look at our internal guide to understand how to ship an update. In general, shipping in chrome/edge is easy and shipping in FF/Safari is hard. We don't ship any updates to IE anymore.

Edge

Instructions here

  1. Build locally npm run build:prod
  2. Run npm run pack-edge. The results will be in /OneNoteWebClipper/EdgeExtension
  3. The file you will upload is the target/edge/OneNoteWebClipper/edgeextension/package/edgeExtension.appx file. You can also test by uploading the target/edge/onenotewebclipper/edgeextension/manifest/extension folder locally in edge
  4. Now follow our internal instructions to update the package.

Congratulations!

At this point you should see the tests passing, and see the packaged code in the target folder

Other useful commands

Clean

$ npm run clean

Removes all of the generated files from build

webclipper's People

Contributors

leakymemory avatar mttwc avatar janehazen avatar iconix avatar jogonzal avatar vishaalk avatar manu8996 avatar dependabot[bot] avatar manusing8 avatar sugupta427 avatar varaizad avatar vadobre avatar susinh avatar larsendaniel avatar dhruvm7 avatar anbiniyar avatar s-n-d-p avatar anbinm-msft avatar ksboora avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.