Seed project for Essential JS 2 http://www.syncfusion.com/products/essential-js2
Перейти к файлу
ajithr 6d386dcdd6
Merge pull request #2 from kumaresan-subramani/master
feature(EJ2-17384): updated uglify plugin and version updated for web…
2018-10-31 12:53:17 +05:30
e2e config(EJ2-1850): Removed unwanted files 2017-06-20 17:02:02 +05:30
src Moved the webpack configuration to webpack.config.js 2018-01-09 17:49:11 +05:30
.gitignore config(EJ2-1850): Removed unwanted files 2017-06-20 17:02:02 +05:30
README.md documentation(EJ2-2565): Updated readme.md content 2017-06-29 09:50:28 +05:30
gulpfile.js Moved the webpack configuration to webpack.config.js 2018-01-09 17:49:11 +05:30
license feature(EJ2-1850): Seed project updated 2017-06-19 17:32:36 +05:30
package.json feature(EJ2-17384): updated uglify plugin and version updated for weback and typescript 2018-10-31 12:21:01 +05:30
tsconfig.json Resolved the compilation failure 2018-08-09 17:52:48 +05:30
webpack.config.js feature(EJ2-17384): updated uglify plugin and version updated for weback and typescript 2018-10-31 12:21:01 +05:30

README.md

Essential JS 2 Typescript Seed

This seed project is a skeleton application used to create Essential JS 2 web application.

The seed contains Essential JS 2 button component for preview and all common settings are preconfigured.

Getting Started

To get started you need to clone the ej2-typescript-seed repository and navigate to ej2-typescript-seed location.

git clone https://github.com/syncfusion/ej2-typescript-seed.git
cd ej2-typescript-seed

Installing

We can get all the Essential JS 2 components in a single npm package ej2.

We already configure the required packages in the package.json file.

You can run the below command to install all dependent packages related to this seed project.

npm install

Testing

This application is preconfigured with End-to-End testing and the test case is written in Jasmine.

We run the test scripts with Protractor end-to-end test runner. The test case file can be found in the e2e folder.

Protractor can interact with our web application and verify the test scripts.

We have to install WebDriver and also need to ensure it is updated. Open a separate terminal and run the below npm script.

npm run update-webdriver

Open another terminal and run the below npm script. It will start web server to serve our application.

npm run serve

Once the web server is up and running, we can run the end-to-end tests using the below npm script

npm run test

Note: Since Protractor is using the Selenium Standalone Server, the Java Development Kit (JDK) need to be installed in your local machine.

If JDK is not installed in your local machine, you can download it from here.

Running

The application is configured with browser-sync, so it will serve the web application in your default browser.

We used webpack to bundle the source file, before running the application in browser.

You can use the below npm script to run the web application.

npm run start

Resources

You can also refer the below resources to know more details about Essential JS 2 components.