diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..850aec8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.vscode/ +node_modules/ +dist/ +npm-debug.log +shelljs* +package-lock.json \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..ac9c95a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +#!groovy + +node('EJ2Angularlatest') { + try { + deleteDir() + + stage('Import') { + git url: 'http://github.com/essential-studio/ej2-groovy-scripts.git', branch: 'master', credentialsId: env.GithubCredentialID; + shared = load 'src/shared.groovy' + } + + stage('Checkout') { + checkout scm + shared.getProjectDetails() + shared.gitlabCommitStatus('running') + } + + stage('Install') { + sh 'npm install' + } + + stage('Build') { + sh 'gulp hide-license && npm run build && gulp finished' + } + + stage('Publish') { + shared.publish() + } + + shared.gitlabCommitStatus('success') + + deleteDir() + } + catch(Exception e) { + shared.throwError(e) + deleteDir() + error('Build Failed') + } +} \ No newline at end of file diff --git a/README.md b/README.md index 1409a7b..671a3fa 100644 --- a/README.md +++ b/README.md @@ -4,22 +4,28 @@ This expense tracker demo application showcases using several Essential JS 2 com a real-world application scenario. You can further explore the source code of this application and use it as a reference for integrating Essential JS 2 components into your applications. -## Deployment +## Installation -### Install +To install the application dependencies, use the following command: -To install all dependent packages, use the below command - -``` +```sh npm install ``` -### Run +## Build the application -To run the sample, use the below command +To Build the application, use the below command, +```sh +npm run build ``` -gulp serve + +## Run the application + +To run the sample in the browser with live reload, use the following command: + +```sh +npm run start ``` ## Demo diff --git a/config.json b/config.json index 85e0c68..461faa3 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,5 @@ { + "productOwner": "Satheeskumar S", "sasslint": ["./styles/**/*.scss"], "tslint": ["./src/**/*.ts", "!./src/common/common.data.ts"], "styleDependency": ["ej2"], diff --git a/gulpfile.js b/gulpfile.js index 16928e9..9d2eb84 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,80 +1 @@ -var fs = require('fs'); -var gulp = require('gulp'); -var webpack = require('webpack'); -var webpackGulp = require('webpack-stream'); - -/** - * Compile script files - */ -gulp.task('scripts', function (done) { - var ts = require('gulp-typescript'); - var tsProject = ts.createProject('tsconfig.json', { typescript: require('typescript') }); - var tsResult = gulp.src(['./src/**/*.ts', './spec/**/*.ts'], { base: '.' }) - .pipe(ts(tsProject)); - tsResult.js - .pipe(gulp.dest('./')) - .on('end', function () { - done(); - }); -}); - -/** - * Compile scss files - */ -gulp.task('styles', function () { - var sass = require('gulp-sass'); - return gulp.src(['./styles/**/*.scss'], { base: './' }) - .pipe(sass({ - outputStyle: 'expanded', - includePaths: './node_modules/@syncfusion/' - })) - .pipe(gulp.dest('.')); -}); - -/** - * Bundle all module using webpack - */ -gulp.task('bundle', function () { - var webpackConfig = require(fs.realpathSync('./webpack.config.js')); - return gulp.src('') - .pipe(webpackGulp(webpackConfig, webpack)) - .pipe(gulp.dest('.')); -}); - -/** - * Build ts and scss files - */ -gulp.task('build', function (done) { - var runSequence = require('run-sequence'); - runSequence('scripts', 'styles', 'bundle', done); -}); - -/** - * Run test for samplebrowser - */ -gulp.task('test', function (done) { - var karma = require('karma'); - new karma.Server({ - configFile: __dirname + '/karma.conf.js', - singleRun: true, - browsers: ['ChromeHeadless'], - browserNoActivityTimeout: 30000 - }, function (e) { - done(e === 0 ? null : 'karma exited with status ' + e); - }).start(); -}); - -/** - * Load the samples - */ -gulp.task('serve', ['build'], function (done) { - var browserSync = require('browser-sync'); - var bs = browserSync.create('Essential JS 2'); - var options = { - server: { - baseDir: './' - }, - ui: false - }; - bs.init(options, done); -}); \ No newline at end of file +require('@syncfusion/ej2-showcase-helper'); diff --git a/index.html b/index.html index 383e8f4..5088c93 100644 --- a/index.html +++ b/index.html @@ -18,9 +18,7 @@ - - - + @@ -59,7 +57,7 @@

Nicholas Delacruz

- Cash Wallet + Cash Wallet $ 0
@@ -83,7 +81,6 @@
-