libreccm-legacy/tools-ng/tinymce/plugins/ccm-cms-images/node_modules/ts-loader/examples/webpack1-gulp-react-flux-ba...
baka 50ec8b6c4e [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core.
git-svn-id: https://svn.libreccm.org/ccm/trunk@5740 8810af33-2d31-482b-a856-94f89814c4df
2018-11-21 10:20:00 +00:00
..
gulp [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
src [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
test [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
.npmignore [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
LICENSE [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
README.md [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
gulpFile.js [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
karma.conf.js [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
package.json [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
tsconfig.json [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00
webpack.config.js [3056] Image plugin now in new directory. Also temporarly removes the toolbar button because its not working anyways. Running npm run build inside the plugin root will now compile the plugin into ccm-core. 2018-11-21 10:20:00 +00:00

README.md

TypeScript, Babel, React, and Karma Sample

Getting started

You'll need node / npm installed. To get up and running just enter:

npm install
npm run serve

This will:

  1. Download the npm packages you need (including the type definitions from DefinitelyTyped)
  2. Compile the code and serve it up at http://localhost:8080

Now you need dev tools. There's a world of choice out there; there's Atom, there's VS Code, there's Sublime. There's even something called Visual Studio. It's all your choice really.

For myself I've been using Atom combined with the mighty atom-typescript package. I advise you to give it a go. You won't look back.

I want to have an ASP.Net project and use Visual Studio + IIS Express to serve this instead

If you drop this code into an empty Visual Studio ASP.Net project should should be good to go. You'll need this section in your web.config to ensure Visual Studio serves from the dist directory:

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Map all requests to 'dist' directory" stopProcessing="true">
          <match url="^(.*)$" />
          <action type="Rewrite" url="/dist/{R:1}" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

And rather than running npm run serve you'll want to use npm run watch. (This builds / watches your code / runs tests etc but does not spin up a web server.)

Finally you'll want to set the following TypeScript options for your project

  • ECMAScript Version: ECMAScript 6
  • JSX compilation in TSX files: Preserve