This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
340 changed files
with
47,156 additions
and
44,438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# http://editorconfig.org | ||
|
||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- "8.5.0" | ||
|
||
addons: | ||
chrome: stable | ||
|
||
git: | ||
depth: 1 | ||
|
||
before_install: | ||
- export CHROME_BIN=chromium-browser | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
install: | ||
- npm install | ||
|
||
script: | ||
- npm run pretest | ||
- npm run test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { AppPage } from './app.po'; | ||
|
||
describe('ngx-ueditor App', () => { | ||
let page: AppPage; | ||
|
||
beforeEach(() => { | ||
page = new AppPage(); | ||
}); | ||
|
||
it('should display welcome message', () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('Welcome to app!'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { browser, by, element } from 'protractor'; | ||
|
||
export class AppPage { | ||
navigateTo() { | ||
return browser.get('/'); | ||
} | ||
|
||
getParagraphText() { | ||
return element(by.css('app-root h1')).getText(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../out-tsc/e2e", | ||
"baseUrl": "./", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"types": [ | ||
"jasmine", | ||
"jasminewd2", | ||
"node" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
const gulp = require('gulp'); | ||
const rollup = require('gulp-rollup'); | ||
const rename = require('gulp-rename'); | ||
const replace = require('gulp-replace'); | ||
const less = require('gulp-less'); | ||
const bump = require('gulp-bump'); | ||
const inline_recources = require('./scripts/inline-resources'); | ||
// @ts-ignore | ||
const VERSION = require('./package.json').version; | ||
|
||
const paths = { | ||
build: './.ng_build', | ||
lib: './.lib' | ||
}; | ||
|
||
gulp.task('copy-sources', copySources); | ||
gulp.task('inline-resources', copyResources); | ||
// @ts-ignore | ||
gulp.task('bundle', bundleUmd); | ||
gulp.task('bump', bumpVersions); | ||
|
||
function bumpVersions() { | ||
gulp.src([ './package.json'], {base: './'}) | ||
.pipe(bump({ | ||
version: VERSION | ||
})) | ||
.pipe(gulp.dest('./')); | ||
} | ||
function copySources() { | ||
gulp.src('./lib/**/*') | ||
.pipe(gulp.dest(paths.build)) | ||
.on('end', replaceLessWithCSS) | ||
; | ||
} | ||
|
||
function replaceLessWithCSS() { | ||
gulp.src(`${paths.build}/**/*.ts`) | ||
.pipe(replace('.less', '.css')) | ||
.pipe(gulp.dest(paths.build)) | ||
.on('end', compileLess); | ||
} | ||
|
||
function compileLess() { | ||
gulp.src([ | ||
`${paths.build}/**/*.less` | ||
]) | ||
.pipe(less()) | ||
.pipe(gulp.dest(paths.build)); | ||
} | ||
|
||
function copyResources() { | ||
gulp.src([ | ||
`./LICENSE`, | ||
`./README.md`, | ||
`./rollup.config.js`, | ||
`./package.json`, | ||
`${paths.build}/**/*.html`, | ||
`${paths.build}/**/*.css`, | ||
`${paths.build}/**/*.less` | ||
]) | ||
.pipe(gulp.dest(paths.lib)) | ||
.on('end', () => inline_recources(paths.lib)); | ||
} | ||
|
||
function bundleUmd() { | ||
bundle(`${paths.lib}/`); | ||
} | ||
|
||
function bundle(path) { | ||
const config = require(path + 'rollup.config.js'); | ||
gulp.src(path + `**/*.js`) | ||
.pipe(rollup(Object.assign({}, config, { | ||
name: config.name, | ||
input: `${path}index.js` | ||
}))) | ||
.pipe(rename(config.output)) | ||
.pipe(gulp.dest(`${path}bundles`)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.