Skip to content

Commit 242de7c

Browse files
author
pipeline
committed
config(EJ2-2129): Updated the samples package name
0 parents  commit 242de7c

File tree

272 files changed

+45329
-0
lines changed

Some content is hidden

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

272 files changed

+45329
-0
lines changed

ReadMe.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
3+
## Installing
4+
5+
To install all dependent packages, use the below command
6+
7+
```
8+
npm install
9+
```
10+
11+
## Building
12+
13+
To compile the source files, use the below command
14+
15+
```
16+
npm run build
17+
```
18+
19+
## Testing
20+
21+
To test the source files, use the below command
22+
23+
```
24+
npm run test
25+
```
26+
27+
## Running
28+
29+
To run the samples, use the below command
30+
31+
```
32+
npm run serve
33+
```

favicon.ico

6.42 KB
Binary file not shown.

gulpfile.js

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
'use strict';
2+
3+
var fs = require('fs');
4+
var gulp = require('gulp');
5+
var webpack = require('webpack');
6+
var webpackGulp = require('webpack-stream');
7+
8+
/**
9+
* Compile script files
10+
*/
11+
gulp.task('scripts', function(done) {
12+
var ts = require('gulp-typescript');
13+
var tsProject = ts.createProject('tsconfig.json', { typescript: require('typescript') });
14+
var tsResult = gulp.src(['./src/**/*.ts', './spec/**/*.ts'], { base: '.' })
15+
.pipe(tsProject());
16+
tsResult.js
17+
.pipe(gulp.dest('./'))
18+
.on('end', function() {
19+
done();
20+
});
21+
});
22+
23+
/**
24+
* Compile scss files
25+
*/
26+
gulp.task('styles', function() {
27+
var sass = require('gulp-sass');
28+
return gulp.src(['./styles/**/*.scss'], { base: './' })
29+
.pipe(sass({
30+
outputStyle: 'expanded',
31+
includePaths: './node_modules/@syncfusion/'
32+
}))
33+
.pipe(gulp.dest('.'));
34+
});
35+
36+
/**
37+
* Bundle all module using webpack
38+
*/
39+
gulp.task('bundle', function() {
40+
var webpackConfig = require(fs.realpathSync('./webpack.config.js'));
41+
return gulp.src('')
42+
.pipe(webpackGulp(webpackConfig, webpack))
43+
.pipe(gulp.dest('.'));
44+
});
45+
46+
/**
47+
* Bundle showcase using webpack
48+
*/
49+
gulp.task('bundle-showcase', function() {
50+
var webpackConfig = require(fs.realpathSync('./src/showcase/expense/webpack.config.js'));
51+
return gulp.src('')
52+
.pipe(webpackGulp(webpackConfig, webpack))
53+
.pipe(gulp.dest('./src/showcase/expense/'));
54+
});
55+
56+
/**
57+
* Build ts and scss files
58+
*/
59+
gulp.task('build', function(done) {
60+
var runSequence = require('run-sequence');
61+
runSequence('scripts', 'styles', 'bundle', 'bundle-showcase', done);
62+
});
63+
64+
/**
65+
* Run test for samplebrowser
66+
*/
67+
gulp.task('test', function(done) {
68+
var karma = require('karma');
69+
new karma.Server({
70+
configFile: __dirname + '/karma.conf.js',
71+
singleRun: true,
72+
browsers: ['Chrome'],
73+
browserNoActivityTimeout: 30000
74+
}, function(e) {
75+
done(e === 0 ? null : 'karma exited with status ' + e);
76+
}).start();
77+
});
78+
79+
/**
80+
* Load the samples
81+
*/
82+
gulp.task('serve', ['build'], function (done) {
83+
var browserSync = require('browser-sync');
84+
var bs = browserSync.create('Essential JS 2');
85+
var options = {
86+
server: {
87+
baseDir: './'
88+
},
89+
ui: false
90+
};
91+
bs.init(options, done);
92+
});

index.html

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Essential JS 2 (Preview)</title>
6+
<meta charset="utf-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
8+
<meta name="description" content="Essential JS 2 (Preview)" />
9+
<meta name="author" content="Syncfusion" />
10+
<link rel="shortcut icon" href="favicon.ico" />
11+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
12+
<link href="src/common/lib/highlightjs/styles/default.css" rel="stylesheet" />
13+
<link href="styles/material.css" rel="stylesheet" />
14+
<link href="styles/index.css" rel="stylesheet" />
15+
<script src="src/common.min.js" type="text/javascript"></script>
16+
</head>
17+
18+
<body>
19+
<div class="sample-browser">
20+
<div class="sb-loading">
21+
<svg class="circular" height="40" width="40">
22+
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="6" stroke-miterlimit="10" />
23+
</svg>
24+
</div>
25+
<div class="sb-header" role="banner">
26+
<div class="sb-title">
27+
<a href="index.html">
28+
<div class="sb-logo" title="Essential JS 2 (Preview)"></div>
29+
</a>
30+
</div>
31+
<div class="header-right"></div>
32+
</div>
33+
<div class="sb-content" role="main">
34+
<div id="left-panel" class="left-panel">
35+
<div class="left-fluid">
36+
<div class="list-search"></div>
37+
<div class="left-tree-head">
38+
<div id="tree-back">
39+
<span class="e-icons e-icon-back" id="back-btn-icon" style="display:none;"></span>
40+
<span class="e-text" id="sidebar-title">ShowCase</span>
41+
</div>
42+
</div>
43+
<div id="control-list"> </div>
44+
</div>
45+
</div>
46+
<div class="control-panel">
47+
<div class="sample-nav">
48+
<div class="container-fluid">
49+
<div class="row">
50+
<div class="slide-nav" aria-controls="left-panel" role="navigation">
51+
<div id="slide-nav" class="e-slide-nav e-icons" aria-label="all controls navigation"></div>
52+
</div>
53+
<div id="sample-head">
54+
<div class="sample-name"></div>
55+
</div>
56+
<div id="switch" class='switcher hidden e-bigger'>
57+
<button id="mouse" class="active" title="Default control sizes, optimized for use with mouse">Mouse</button>
58+
<div class="switch-splittor"></div>
59+
<button id="touch" title="Increased padding for actionable items to accommodate user touches">Touch</button>
60+
</div>
61+
<div class='nav-btn-group'>
62+
<div class='nav-btn'>
63+
<button id="prev-sample" class="btn btn-default e-icon-prev e-icons" aria-label="previous sample"></button>
64+
</div>
65+
<div class='nav-btn'>
66+
<button id="next-sample" class="btn btn-default e-icon-next e-icons" aria-label="next sample"></button>
67+
</div>
68+
</div>
69+
</div>
70+
</div>
71+
</div>
72+
<div id="control-container">
73+
<div class="control-fluid">
74+
<div class="container-fluid">
75+
76+
<div id="control-content"></div>
77+
</div>
78+
</div>
79+
<div id="source-panel" class="hidden">
80+
<div id="source-tab">
81+
<ul class='nav nav-tabs' role='tablist'>
82+
<li class="active" id='hcode' role='presentation'><a id='htab' role='tab' aria-controls='html-tab' aria-selected='true'>Markup</a></li>
83+
<li id='tcode' role='presentation'><a id='ttab' role='tab' aria-controls='ts-tab'>Code</a></li>
84+
</ul>
85+
<div id="html-tab" role="tabpanel" class="lang-tab">
86+
<div id="html-tab-scroll" class="source-cnt" tabindex="1">
87+
<div id="html-source" class="xml src"></div>
88+
</div>
89+
90+
</div>
91+
<div id="ts-tab" role="tabpanel" aria-hidden="true" class="lang-tab">
92+
<div class="source-cnt" tabindex="1">
93+
<div id="ts-source" class="javascript src"></div>
94+
</div>
95+
</div>
96+
</div>
97+
</div>
98+
<div class='footer' role="contentinfo">
99+
<div class="footer-left">
100+
<span>Copyright © 2001-2017 Syncfusion Inc.</span>
101+
</div>
102+
<div class="footer-right">
103+
<a href="//www.syncfusion.com" target="_blank">
104+
<div class="footer-logo"></div>
105+
</a>
106+
</div>
107+
</div>
108+
</div>
109+
</div>
110+
</div>
111+
</div>
112+
113+
<script src="src/common/index.min.js" type="text/javascript"></script>
114+
</body>
115+
116+
</html>

karma.conf.js

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// Karma configuration
2+
// Generated on Tue Apr 26 2016 09:56:05 GMT+0530 (India Standard Time)
3+
4+
module.exports = function (config) {
5+
config.set({
6+
7+
// base path that will be used to resolve all patterns (eg. files, exclude)
8+
basePath: '',
9+
10+
11+
// frameworks to use
12+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13+
frameworks: ['jasmine-ajax', 'jasmine', 'requirejs'],
14+
15+
proxies: {
16+
'/src/': '/base/src/',
17+
'/src/common': '/base/src/common',
18+
'/node_modules/': '/base/node_modules/',
19+
'/styles/': '/base/styles/',
20+
'/showcase.html': '/base/showcase.html'
21+
},
22+
23+
// list of files / patterns to load in the browser
24+
files: [
25+
"test-main.js",
26+
{ pattern: "src/**/*.*", included: false },
27+
{ pattern: "styles/**/*.*", included: false },
28+
{ pattern: "src/common.min.js", included: true },
29+
{ pattern: "spec/**/*.spec.js", included: false },
30+
{ pattern: "node_modules/@syncfusion/ej2-base/**/*.js", included: false },
31+
{ pattern: "node_modules/bootstrap/dist/css/bootstrap.min.css", included: false },
32+
{ pattern: 'node_modules/es6-promise/dist/es6-promise.js', included: false },
33+
{ pattern: "404.html", included: false },
34+
{ pattern: "styles/index.css", included: true },
35+
{ pattern: "styles/material.css", included: false },
36+
{ pattern: "index.html", included: false },
37+
{ pattern: "showcase.html", included: false },
38+
],
39+
40+
41+
// list of files to exclude
42+
exclude: [
43+
],
44+
45+
46+
// preprocess matching files before serving them to the browser
47+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
48+
preprocessors: {},
49+
50+
51+
// test results reporter to use
52+
// possible values: 'dots', 'progress'
53+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
54+
reporters: ['dots', 'html'],
55+
56+
// the default html configuration
57+
htmlReporter: {
58+
outputFile: "test-report/units.html",
59+
pageTitle: "Unit Tests",
60+
subPageTitle: "Asampleprojectdescription"
61+
},
62+
63+
// web server port
64+
port: 9876,
65+
66+
67+
// enable / disable colors in the output (reporters and logs)
68+
colors: true,
69+
70+
71+
// level of logging
72+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
73+
logLevel: config.LOG_INFO,
74+
75+
76+
// enable / disable watching file and executing tests whenever any file changes
77+
autoWatch: true,
78+
79+
80+
// start these browsers
81+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
82+
browsers: ['PhantomJS', 'Chrome', 'Firefox'],
83+
84+
85+
// Continuous Integration mode
86+
// if true, Karma captures browsers, runs the tests and exits
87+
singleRun: false,
88+
89+
// Concurrency level
90+
// how many browser should be started simultaneous
91+
concurrency: Infinity,
92+
93+
94+
coverageReporter: {
95+
type: "html",
96+
check: {
97+
each: {
98+
statements: 90,
99+
branches: 90,
100+
functions: 100,
101+
lines: 90
102+
}
103+
}
104+
}
105+
})
106+
}

license

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2+
3+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4+
5+
Customers who do not qualify for the community license can contact [email protected] for commercial licensing options.
6+
7+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8+
9+
The Syncfusion license that contains the terms and conditions can be found at
10+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf

0 commit comments

Comments
 (0)