Skip to content

Commit 76c41ac

Browse files
authored
Merge pull request #11 from kumaresan-subramani/master
v17.1.47 is released
2 parents 7e2ab8c + 4919d01 commit 76c41ac

File tree

3,903 files changed

+459684
-59725
lines changed

Some content is hidden

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

3,903 files changed

+459684
-59725
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,42 @@
1-
.npmrc
2-
.vscode/
3-
node_modules/
4-
spec/**/*.js
5-
spec/**/*.map
6-
src/**/*.js
7-
aot/**/*.js
8-
*ngfactory.ts
9-
*metadata.json
10-
*ngsummary.json
11-
*d.ts
12-
*.map
13-
*.ngstyle.ts
14-
src/**/*.map
15-
coverage/
16-
api/
17-
dist/main.bundle.js
18-
test-report/
19-
src/**/*-plnkr.json
20-
!src/common/typings.d.ts
21-
!src/common/plnk-template/system.config.js
22-
samples/*
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db
40+
41+
# dynamic files
42+
/src/source

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

Jenkinsfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!groovy
2+
3+
node('EJ2Samples') {
4+
try {
5+
deleteDir()
6+
7+
stage('Import') {
8+
git url: 'https://gitlab.syncfusion.com/essential-studio/ej2-groovy-scripts.git', branch: 'master', credentialsId: env.JENKINS_CREDENTIAL_ID
9+
shared = load 'src/shared.groovy'
10+
}
11+
12+
stage('Checkout') {
13+
checkout scm
14+
shared.getProjectDetails()
15+
shared.gitlabCommitStatus('running')
16+
}
17+
18+
stage('Install') {
19+
shared.install()
20+
}
21+
22+
stage('Build') {
23+
sh 'npm run build'
24+
}
25+
26+
stage('Publish') {
27+
shared.publish()
28+
}
29+
30+
shared.gitlabCommitStatus('success')
31+
32+
deleteDir()
33+
}
34+
catch(Exception e) {
35+
shared.throwError(e)
36+
deleteDir()
37+
}
38+
}

angular.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ej2-angular-samples": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"targets": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "output",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/favicon.ico",
23+
"src/assets",
24+
"src/styles",
25+
"src/source"
26+
],
27+
"styles": [],
28+
"scripts": []
29+
},
30+
"configurations": {
31+
"production": {
32+
"fileReplacements": [{
33+
"replace": "src/environments/environment.ts",
34+
"with": "src/environments/environment.prod.ts"
35+
}],
36+
"optimization": true,
37+
"outputHashing": "all",
38+
"sourceMap": false,
39+
"extractCss": true,
40+
"namedChunks": false,
41+
"aot": true,
42+
"extractLicenses": true,
43+
"vendorChunk": false,
44+
"buildOptimizer": true
45+
}
46+
}
47+
},
48+
"serve": {
49+
"builder": "@angular-devkit/build-angular:dev-server",
50+
"options": {
51+
"browserTarget": "ej2-angular-samples:build"
52+
},
53+
"configurations": {
54+
"production": {
55+
"browserTarget": "ej2-angular-samples:build:production"
56+
}
57+
}
58+
},
59+
"extract-i18n": {
60+
"builder": "@angular-devkit/build-angular:extract-i18n",
61+
"options": {
62+
"browserTarget": "ej2-angular-samples:build"
63+
}
64+
},
65+
"test": {
66+
"builder": "@angular-devkit/build-angular:karma",
67+
"options": {
68+
"main": "src/test.ts",
69+
"polyfills": "src/polyfills.ts",
70+
"tsConfig": "src/tsconfig.spec.json",
71+
"karmaConfig": "src/karma.conf.js",
72+
"styles": [
73+
"src/styles.css"
74+
],
75+
"scripts": [],
76+
"assets": [
77+
"src/favicon.ico",
78+
"src/assets"
79+
]
80+
}
81+
},
82+
"lint": {
83+
"builder": "@angular-devkit/build-angular:tslint",
84+
"options": {
85+
"tsConfig": [
86+
"src/tsconfig.app.json",
87+
"src/tsconfig.spec.json"
88+
],
89+
"exclude": [
90+
"**/node_modules/**"
91+
]
92+
}
93+
}
94+
}
95+
}
96+
},
97+
"defaultProject": "ej2-angular-samples"
98+
}

config.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"typedoc": ["/source/**/*.ts", "!/source/*.d.ts"],
3+
"tslint": ["/source/**/*.ts", "!/source/**/*-model.d.ts", "!/source/**/**/*-builder.d.ts"],
4+
"ts": ["/source/**/*.ts", "!./node_modules/**/*.ts"],
5+
"styleDependency": ["ej2"],
6+
"github": ["/source/**/*.{css,ts,html,json}", "!/source/**/*.{d.ts,ngfactory.ts,ngstyle.ts,ngsummary.json}", "./styles/images{,/**}", "./styles/{index.css,highlight.css}", "./styles/*.scss", "./dist/zone.min.js", "/source/**/images{,/**}", "/source/common/cldr-data{,/**}", "./index.html", "./favicon.ico", "package.json", "tsconfig-aot.json", "webpack.config.js", "license"],
7+
"publishSamples": ["./output/**/*.*"],
8+
"customNames": [
9+
"listview",
10+
"html",
11+
"ajax",
12+
"api",
13+
"custom",
14+
"code",
15+
"blog",
16+
"embedly",
17+
"inline",
18+
"toolbar",
19+
"popup",
20+
"swipeable",
21+
"image",
22+
"checkbox",
23+
"dialog",
24+
"draggable",
25+
"textboxes",
26+
"uploader",
27+
"preload",
28+
"virtualization",
29+
"maskedtextbox",
30+
"numerictextbox",
31+
"treeview",
32+
"heatmap",
33+
"json",
34+
"tooltip",
35+
"async-pipe",
36+
"drilldown",
37+
"sparkline",
38+
"econmics",
39+
"treemap",
40+
"gauge",
41+
"datasource",
42+
"timeline",
43+
"fishbone",
44+
"venn",
45+
"bpmn",
46+
"pdfviewer"
47+
]
48+
}

dist/zone.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

error.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1> 404 - Not Found </h1>

gulpfile.js

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,55 @@
1-
'use strict';
1+
var fs = require('fs');
2+
var glob = require('glob');
3+
var gulp = require("gulp");
4+
var shelljs = global.shelljs = global.shelljs || require('shelljs');
25

3-
var gulp = require('gulp');
6+
gulp.task('copy-source', function () {
7+
var localeJson = glob.sync(__dirname + '/src/app/**/*', {
8+
silent: true,
9+
ignore: ['/src/app/common/**/*.*', '/src/app/common']
10+
});
11+
if (localeJson.length) {
12+
for (var i = 0; i < localeJson.length; i++) {
13+
if (localeJson[i].indexOf('/common') == -1) {
14+
console.log(localeJson[i])
15+
shelljs.cp('-R', localeJson[i], localeJson[i].replace('app', 'source'));
16+
}
17+
}
18+
}
19+
});
20+
21+
gulp.task('build', function (done) {
22+
shelljs.exec('npm run build:prod', function (exitCode, error) {
23+
console.log(error);
24+
done(exitCode);
25+
})
26+
// runSequence('create-locale');
27+
});
428

5-
/**
6-
* Compile styles
7-
*/
8-
gulp.task('styles', function() {
9-
var sass = require('gulp-sass');
10-
return gulp.src(['./styles/**/*.scss'], { base: './' })
11-
.pipe(sass({
12-
outputStyle: 'expanded',
13-
includePaths: './node_modules/@syncfusion/'
14-
}))
15-
.pipe(gulp.dest('.'));
29+
gulp.task('serve', ['copy-source', 'styles-all'], function () {
30+
shelljs.exec('npm run start');
1631
});
1732

18-
gulp.task('bundle', function(done) {
19-
var webpack = require('webpack');
20-
var webpackConfig = require('./webpack.config.js');
21-
webpack(webpackConfig, function(err) {
22-
if (err) {
23-
console.log(err);
24-
process.exit(1);
25-
}
26-
done();
27-
});
33+
34+
gulp.task('clear-all', function () {
35+
return gulp.src(['src/**/*.js.map', 'src/**/*.json', 'src/**/*.js', 'src/**/*.d.ts', 'src/**/*.ngfactory.ts', 'src/**/*.ngstyle.ts']).pipe(clean({
36+
force: true
37+
}))
2838
});
2939

30-
/**
31-
* Run the samples
32-
*/
33-
gulp.task('serve', function(done) {
34-
var browserSync = require('browser-sync');
35-
var bs = browserSync.create('Essential JS 2 for Angular');
36-
var options = {
37-
server: {
38-
baseDir: './'
39-
},
40-
ui: false
41-
};
42-
bs.init(options, done);
43-
});
40+
gulp.task('move', function (done) {
41+
shelljs.cp('-rf', './OpenNewSamples/*', './output');
42+
var mainBundle = fs.readFileSync('./output/main.js', 'utf8');
43+
mainBundle = mainBundle.replace(/\(\/assets/g, '(./assets');
44+
fs.writeFileSync('./output/main.js', mainBundle, 'utf8');
45+
done();
46+
});
47+
48+
gulp.task('styles-replace', function (done) {
49+
var nos = glob.sync('node_modules/@syncfusion/ej2/*.css');
50+
for (var j = 0; j < nos.length; j++) {
51+
var htmlfile = fs.readFileSync(nos[j], 'utf8');
52+
fs.writeFileSync('./src/styles/' + nos[j].split('/')[3], htmlfile, 'utf8');
53+
}
54+
done();
55+
});

0 commit comments

Comments
 (0)